WOLFRAM SYSTEM MODELER
setState_phXSet state for pressure and specific enthalpy (X not used since single substance) |
SystemModel["Modelica.Media.R134a.R134a_ph.setState_phX"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This function should be used by default in order to calculate the thermodynamic state record used as input by many functions.
Example:
parameter Medium.AbsolutePressure p = 3e5; parameter Medium.SpecificEnthalpy h = 4.2e5; Medium.Density rho; equation rho = Medium.density(setState_phX(p, h, fill(0, Medium.nX)));
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 |
state |
Type: ThermodynamicState Description: Thermodynamic state record |
---|
2020-01-20 Stefan Wischhusen: Converted into single line assignment for state record.