setSmoothState

Smooth transition function between state_a and state_b

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)