- Index
- » Programming
- » Modelica Language
- » setState initialization
Page Start Prev 1 Next End
setState initialization
setState initialization
Dec-23-11 19:59:34
Hi guys,
I'm creating my own fluid models like valves pipes ect, I noticed that in the standard library they use BaseProperties to calculate the state while I'd like to use the setState approach; my doubt is about initialization: how should I do it?
In the BaseProperties apporach the write
Medium.BaseProperties gas(p(start=p0),T(start=T),Xi(start=Xnom[1:Medium.nXi]));
should I write
Medium.ThermodynamicState gas=Medium.setState_pTX(p0,T,Xnom) ?
Than you very much!
Regards
Jacopo
Page Start Prev 1 Next End
- Index
- » Programming
- » Modelica Language
- » setState initialization
There are 0 guests and 0 other users also viewing this topic