modelSystem

System properties and default values (ambient, flow direction, initialization)

Information

A system component is needed in each fluid model to provide system-wide settings, such as ambient conditions and overall modeling assumptions. The system settings are propagated to the fluid models using the inner/outer mechanism.

A model should never directly use system parameters. Instead a local parameter should be declared, which uses the global setting as default. The only exceptions are:

  • the gravity system.g,
  • the global system.eps_m_flow, which is used to define a local m_flow_small for the local m_flow_nominal:
    m_flow_small = system.eps_m_flow*m_flow_nominal

The global system.m_flow_small and system.dp_small are classic parameters. They do not distinguish between laminar flow and regularization of zero flow. Absolute small values are error prone for models with local nominal values. Moreover dp_small can generally be obtained automatically. Consider using the new system.use_eps_Re = true (see Advanced tab).

Parameters

TypeNameDefaultDescription
Environment
SI.AbsolutePressurep_ambient101325Default ambient pressure
SI.TemperatureT_ambient293.15Default ambient temperature
SI.AccelerationgModelica.Constants.g_nConstant gravity acceleration
Assumptions
BooleanallowFlowReversaltrue= false to restrict to design flow direction (port_a -> port_b)
Assumptions › Dynamics
Modelica.Fluid.Types.DynamicsenergyDynamicsModelica.Fluid.Types.Dynamics.DynamicFreeInitialDefault formulation of energy balances
Modelica.Fluid.Types.DynamicsmassDynamicsenergyDynamicsDefault formulation of mass balances
Modelica.Fluid.Types.DynamicssubstanceDynamicsmassDynamicsDefault formulation of substance balances
Modelica.Fluid.Types.DynamicstraceDynamicsmassDynamicsDefault formulation of trace substance balances
Modelica.Fluid.Types.DynamicsmomentumDynamicsModelica.Fluid.Types.Dynamics.SteadyStateDefault formulation of momentum balances, if options available
Initialization
SI.MassFlowRatem_flow_start0Default start value for mass flow rates
SI.AbsolutePressurep_startp_ambientDefault start value for pressures
SI.TemperatureT_startT_ambientDefault start value for temperatures
Advanced
Booleanuse_eps_Refalse= true to determine turbulent region automatically using Reynolds number
SI.MassFlowRatem_flow_nominalif use_eps_Re then 1 else 1e2*m_flow_smallDefault nominal mass flow rate
Realeps_m_flow1e-4Regularization of zero flow for |m_flow| < eps_m_flow*m_flow_nominal
Advanced › Classic
SI.AbsolutePressuredp_small1Default small pressure drop for regularization of laminar and zero flow
SI.MassFlowRatem_flow_small1e-2Default small mass flow rate for regularization of laminar and zero flow

Contents

NameDescription
MediumMedium model for default start values