modelPartialLumpedVolume

Lumped volume with mass and energy balance

Information

Interface and base class for an ideally mixed fluid volume with the ability to store mass and energy. The following boundary flow and source terms are part of the energy balance and must be specified in an extending class:

  • Qb_flow, e.g., convective or latent heat flow rate across segment boundary, and
  • Wb_flow, work term, e.g., p*der(fluidVolume) if the volume is not constant.

The component volume fluidVolume is an input that needs to be set in the extending class to complete the model.

Further source terms must be defined by an extending class for fluid flow across the segment boundary:

  • Hb_flow, enthalpy flow,
  • mb_flow, mass flow,
  • mbXi_flow, substance mass flow, and
  • mbC_flow, trace substance mass flow.

Parameters

TypeNameDefaultDescription
Assumptions › Dynamics
Types.DynamicsenergyDynamicssystem.energyDynamicsFormulation of energy balance
Types.DynamicsmassDynamicssystem.massDynamicsFormulation of mass balance
Types.DynamicssubstanceDynamicsmassDynamicsFormulation of substance balance
Types.DynamicstraceDynamicsmassDynamicsFormulation of trace substance balance
Initialization
Medium.AbsolutePressurep_startsystem.p_startStart value of pressure
Booleanuse_T_starttrue= true, use T_start, otherwise h_start
Medium.TemperatureT_startif use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start)Start value of temperature
Medium.SpecificEnthalpyh_startif use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_defaultStart value of specific enthalpy
Medium.MassFraction[Medium.nX]X_startMedium.X_defaultStart value of mass fractions m_i/m
Medium.ExtraProperty[Medium.nC]C_startMedium.C_defaultStart value of trace substances

Components

TypeNameDefaultDescription
Modelica.Fluid.SystemsystemSystem properties
SI.VolumefluidVolumeVolume
Medium.BasePropertiesmedium
SI.EnergyUInternal energy of fluid
SI.MassmMass of fluid
SI.MassmXiMasses of independent components in the fluid
SI.MassmCMasses of trace substances in the fluid
Medium.ExtraProperty[Medium.nC]CTrace substance mixture content
SI.MassFlowRatemb_flowMass flows across boundaries
SI.MassFlowRatembXi_flowSubstance mass flows across boundaries
Medium.ExtraPropertyFlowRatembC_flowTrace substance mass flows across boundaries
SI.EnthalpyFlowRateHb_flowEnthalpy flow across boundaries or energy source/sink
SI.HeatFlowRateQb_flowHeat flow across boundaries or energy source/sink
SI.PowerWb_flowWork flow across boundaries or source term

Contents

NameDescription
MediumMedium in the component