modelDynamicPipeInitialization

Steady-state initialization of a dynamic pipe

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The simulation shall start in steady-state (see system.energyDynamics on the Assumptions tab). This requires the solution of an equation system with complex non-linear expressions for the pipe wall friction and compressible valve characteristics.

The test is further complicated with an specific enthalpy of 2000 kJ/kg at 100 bar, which is in the two phase region.

The steady-state initial values are checked with an assertion.

Components

TypeNameDefaultDescription
Modelica.Fluid.Sources.FixedBoundarysource
Modelica.Fluid.Pipes.DynamicPipepipe
Modelica.Fluid.Valves.ValveCompressiblevalve
Modelica.Fluid.Sources.FixedBoundarysink
Modelica.Blocks.Sources.Rampramp
Modelica.Fluid.Systemsystem
SI.MassFlowRatem_flow_initial