WOLFRAM SYSTEMMODELER

setState_phX

Return thermodynamic state of water as function of p, h, and optional region

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.Water.WaterIF97_base.setState_phX"]
Out[1]:=

Syntax

state = setState_phX(p, h, X, phase, region)

Inputs (5)

p

Type: AbsolutePressure (Pa)

Description: Pressure

h

Type: SpecificEnthalpy (J/kg)

Description: Specific enthalpy

X

Default Value: reference_X

Type: MassFraction[:] (kg/kg)

Description: Mass fractions

phase

Default Value: 0

Type: FixedPhase

Description: 2 for two-phase, 1 for one-phase, 0 if not known

region

Default Value: Region

Type: Integer

Description: If 0, region is unknown, otherwise known and this input

Outputs (1)

state

Type: ThermodynamicState

Description: Thermodynamic state record