WOLFRAM SYSTEM MODELER

setSmoothState

Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b

Wolfram Language

In[1]:=
SystemModel["Modelica.Media.Interfaces.PartialSimpleMedium.setSmoothState"]
Out[1]:=

Syntax

state = setSmoothState(x, state_a, state_b, x_small)

Inputs (4)

x

Type: Real

Description: m_flow or dp

state_a

Type: ThermodynamicState

Description: Thermodynamic state if x > 0

state_b

Type: ThermodynamicState

Description: Thermodynamic state if x < 0

x_small

Type: Real

Description: Smooth transition in the region -x_small < x < x_small

Outputs (1)

state

Type: ThermodynamicState

Description: Smooth thermodynamic state for all x (continuous and differentiable)