modelInitJunction

Imposes constant values upstream (p) and/or downstream (Mdot and h) at the beginning of the simulation to reduce initialization issues

Parameters

TypeNameDefaultDescription
BooleannoeventfalseAvoids generating events during the transition
Modelica.SIunits.Timetinit10Start time of the transition to the real boundary
Modelica.SIunits.Timeduration5Duration of the transition
Downstream
Booleanconst_downstreamfalseSet to true to impose the boundary conditions during initialization (thus discarding the real ones)
BooleanUse_pTtrueUse p and T to defined the initial inlet enthalpy
Modelica.SIunits.MassFlowRateMdot_ex_init0.2Initial inlet mass flow
Modelica.SIunits.SpecificEnthalpyh_ex_init2E5Initial inlet enthalpy
Modelica.SIunits.TemperatureT_ex_init273.15 + 25Initial inlet temperature
Modelica.SIunits.Pressurep_ex_init1E5Initial inlet pressure (used to calculate the downstream enthalpy
Upstream
Booleanconst_upstreamfalseSet to true to impose the boundary conditions during initialization (thus discarding the real ones)
Modelica.SIunits.Pressurep_su_init1E5Initial inlet pressure

Connectors

TypeNameDefaultDescription
ThermoCycle.Interfaces.Fluid.FlangeAinlet
ThermoCycle.Interfaces.Fluid.FlangeBoutlet

Components

TypeNameDefaultDescription
ThermoCycle.Functions.Initinit_h
ThermoCycle.Functions.Initinit_mdot
ThermoCycle.Functions.Initinit_p

Contents

NameDescription
Medium