WOLFRAM SYSTEM MODELER

setState_ps

Return thermodynamic state from p and s

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.Interfaces.PartialTwoPhaseMedium.setState_ps"]
Out[1]:=

Syntax

state = setState_ps(p, s, phase)

Inputs (3)

p

Type: AbsolutePressure (Pa)

Description: Pressure

s

Type: SpecificEntropy (J/(kg⋅K))

Description: Specific entropy

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