modelClosedSystemInit

Component for the steady-state initialization of closed systems

Information

This component can be used for the steady-state initialization of closed-system where all components have steady-state initial conditions. Without this component such systems would give rise to undetermined initial conditions, i.e., the amount of fluid and the initial pressures in the system would be unspecified.

Connect the component to one point of the system. If initEquationFromInput = false, the system is initialized with pressure equal to pstart at the connection point.

It is possible to use a generic initial equation instead of p = pstart, e.g., to set the initial charge of a refrigeration circuit, by setting initEquationFromInput = true and connecting to the input the output of a Modelica.Blocks.Sources.RealExpression component, containing the residual of the initial equation. In this case, if useHomotopy = true, the simplified initial equation is (p - pstart)/pstart = 0. To ensure a smooth homotopy transformation, it is recommended to write the residual in normalized form, i.e., with values have the order of magnitude of one, as for the simplified equation.

Parameters

TypeNameDefaultDescription
Medium.AbsolutePressurepstartStart value of pressure
BooleanuseHomotopyUse homotopy for residual-based initialization
Medium.MassFlowRatew_bInitial balance flow rate eventually equal to zero
External inputs
BooleaninitEquationFromInputfalseGet initial condition residual from input connector

Connectors

TypeNameDefaultDescription
FlangeBflange
Modelica.Blocks.Interfaces.RealInputinitEquationResidualResidual of initial equation

Components

TypeNameDefaultDescription
ThermoPower.SystemsystemSystem wide properties

Contents

NameDescription
Medium