modelSystemTF

Fluid 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
Modelica.SIunits.AbsolutePressurep_ambient101325Default ambient pressure
Modelica.SIunits.TemperatureT_ambient293.15Default ambient temperature
Modelica.SIunits.AccelerationgModelica.Constants.g_nConstant gravity acceleration
Advanced
BooleanallowFlowReversaltrue= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced › Dynamics
DynamicsenergyDynamicsDynamics.DynamicFreeInitialFormulation of energy balances
DynamicsmassDynamicsenergyDynamicsFormulation of mass balances
DynamicssubstanceDynamicsmassDynamicsFormulation of substance balances
DynamicstraceDynamicsmassDynamicsFormulation of trace substance balances
DynamicsmomentumDynamicsDynamics.SteadyStateFormulation of momentum balances
Initialization › Start Value: Absolute Pressure
SI.AbsolutePressurep_startMedium.p_defaultPressure
Initialization › Start Value: Temperature
Booleanuse_T_starttrueUse T_start if true, otherwise h_start
SI.TemperatureT_startMedium.T_defaultTemperature
Initialization › Start Value: Specific Enthalpy
SI.SpecificEnthalpyh_startMedium.specificEnthalpy_pTX(p_start, T_start, X_start)Specific enthalpy
Initialization › Start Value: Species Mass Fraction
SI.MassFraction[Medium.nX]X_startMedium.X_defaultMass fraction
Initialization › Start Value: Trace Substances
SIadd.ExtraProperty[Medium.nC]C_startfill(0, Medium.nC)Mass-Specific value
Initialization › Start Value: Mass Flow Rate
SI.MassFlowRatem_flow_start0Mass flow rate
Visualization
BooleanshowNametrue
BooleanshowDesignFlowDirectiontrue
Visualization › Color Coding
BooleanshowColorsfalseToggle dynamic color display

Components

TypeNameDefaultDescription
Modelica.SIunits.Accelerationg_nModelica.Constants.g_nConstant gravity acceleration
Realval_min293.15val <= val_min is mapped to colorMap[1,:]
Realval_max373.15val >= val_max is mapped to colorMap[end,:]

Contents

NameDescription
Medium