WOLFRAM SYSTEM MODELER

setState_phX

Set state for pressure and specific enthalpy (X not used since single substance)

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.R134a.R134a_ph.setState_phX"]
Out[1]:=

Information

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)));

Syntax

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

Inputs (4)

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

Outputs (1)

state

Type: ThermodynamicState

Description: Thermodynamic state record

Revisions

2020-01-20 Stefan Wischhusen: Converted into single line assignment for state record.