| | 4432 | replaceable partial function setState_pT |
| | 4433 | "Return thermodynamic state as function of p and T" |
| | 4434 | extends Modelica.Icons.Function; |
| | 4435 | input AbsolutePressure p "Pressure"; |
| | 4436 | input Temperature T "Temperature"; |
| | 4437 | output ThermodynamicState state; |
| | 4438 | algorithm |
| | 4439 | state := setState_pTX(p,T,fill(0,0)); |
| | 4440 | end setState_pT; |
| | 4441 | |
| | 4442 | replaceable partial function setState_ph |
| | 4443 | "Return thermodynamic state as function of p and h" |
| | 4444 | extends Modelica.Icons.Function; |
| | 4445 | input AbsolutePressure p "Pressure"; |
| | 4446 | input SpecificEnthalpy h "Specific enthalpy"; |
| | 4447 | output ThermodynamicState state; |
| | 4448 | algorithm |
| | 4449 | state := setState_phX(p,h,fill(0, 0)); |
| | 4450 | end setState_ph; |
| | 4451 | |
| | 4452 | replaceable partial function setState_ps |
| | 4453 | "Return thermodynamic state as function of p and s" |
| | 4454 | extends Modelica.Icons.Function; |
| | 4455 | input AbsolutePressure p "Pressure"; |
| | 4456 | input SpecificEntropy s "Specific entropy"; |
| | 4457 | output ThermodynamicState state; |
| | 4458 | algorithm |
| | 4459 | state := setState_psX(p,s,fill(0,0)); |
| | 4460 | end setState_ps; |
| | 4461 | |
| | 4462 | replaceable partial function setState_dT |
| | 4463 | "Return thermodynamic state as function of d and T" |
| | 4464 | extends Modelica.Icons.Function; |
| | 4465 | input Density d "density"; |
| | 4466 | input Temperature T "Temperature"; |
| | 4467 | output ThermodynamicState state; |
| | 4468 | algorithm |
| | 4469 | state := setState_dTX(d,T,fill(0,0)); |
| | 4470 | end setState_dT; |
| | 4471 | |
| | 5001 | |
| | 5002 | redeclare replaceable partial function setState_pT |
| | 5003 | "Return thermodynamic state as function of p and T" |
| | 5004 | extends Modelica.Icons.Function; |
| | 5005 | input AbsolutePressure p "Pressure"; |
| | 5006 | input Temperature T "Temperature"; |
| | 5007 | input FixedPhase phase=0 |
| | 5008 | "2 for two-phase, 1 for one-phase, 0 if not known"; |
| | 5009 | output ThermodynamicState state; |
| | 5010 | algorithm |
| | 5011 | state := setState_pTX(p,T,fill(0,0),phase); |
| | 5012 | end setState_pT; |
| | 5013 | |
| | 5014 | redeclare replaceable partial function setState_ph |
| | 5015 | "Return thermodynamic state as function of p and h" |
| | 5016 | extends Modelica.Icons.Function; |
| | 5017 | input AbsolutePressure p "Pressure"; |
| | 5018 | input SpecificEnthalpy h "Specific enthalpy"; |
| | 5019 | input FixedPhase phase=0 |
| | 5020 | "2 for two-phase, 1 for one-phase, 0 if not known"; |
| | 5021 | output ThermodynamicState state; |
| | 5022 | algorithm |
| | 5023 | state := setState_phX(p,h,fill(0, 0),phase); |
| | 5024 | end setState_ph; |
| | 5025 | |
| | 5026 | redeclare replaceable partial function setState_ps |
| | 5027 | "Return thermodynamic state as function of p and s" |
| | 5028 | extends Modelica.Icons.Function; |
| | 5029 | input AbsolutePressure p "Pressure"; |
| | 5030 | input SpecificEntropy s "Specific entropy"; |
| | 5031 | input FixedPhase phase=0 |
| | 5032 | "2 for two-phase, 1 for one-phase, 0 if not known"; |
| | 5033 | output ThermodynamicState state; |
| | 5034 | algorithm |
| | 5035 | state := setState_psX(p,s,fill(0,0),phase); |
| | 5036 | end setState_ps; |
| | 5037 | |
| | 5038 | redeclare replaceable partial function setState_dT |
| | 5039 | "Return thermodynamic state as function of d and T" |
| | 5040 | extends Modelica.Icons.Function; |
| | 5041 | input Density d "density"; |
| | 5042 | input Temperature T "Temperature"; |
| | 5043 | input FixedPhase phase=0 |
| | 5044 | "2 for two-phase, 1 for one-phase, 0 if not known"; |
| | 5045 | output ThermodynamicState state; |
| | 5046 | algorithm |
| | 5047 | state := setState_dTX(d,T,fill(0,0),phase); |
| | 5048 | end setState_dT; |