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, andWb_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, andmbC_flow, trace substance mass flow.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions › Dynamics | |||
| Types.Dynamics | energyDynamics | system.energyDynamics | Formulation of energy balance |
| Types.Dynamics | massDynamics | system.massDynamics | Formulation of mass balance |
| Types.Dynamics | substanceDynamics | massDynamics | Formulation of substance balance |
| Types.Dynamics | traceDynamics | massDynamics | Formulation of trace substance balance |
| Initialization | |||
| Medium.AbsolutePressure | p_start | system.p_start | Start value of pressure |
| Boolean | use_T_start | true | = true, use T_start, otherwise h_start |
| Medium.Temperature | T_start | if use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start) | Start value of temperature |
| Medium.SpecificEnthalpy | h_start | if use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_default | Start value of specific enthalpy |
| Medium.MassFraction[Medium.nX] | X_start | Medium.X_default | Start value of mass fractions m_i/m |
| Medium.ExtraProperty[Medium.nC] | C_start | Medium.C_default | Start value of trace substances |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.System | system | System properties | |
| SI.Volume | fluidVolume | Volume | |
| Medium.BaseProperties | medium | ||
| SI.Energy | U | Internal energy of fluid | |
| SI.Mass | m | Mass of fluid | |
| SI.Mass | mXi | Masses of independent components in the fluid | |
| SI.Mass | mC | Masses of trace substances in the fluid | |
| Medium.ExtraProperty[Medium.nC] | C | Trace substance mixture content | |
| SI.MassFlowRate | mb_flow | Mass flows across boundaries | |
| SI.MassFlowRate | mbXi_flow | Substance mass flows across boundaries | |
| Medium.ExtraPropertyFlowRate | mbC_flow | Trace substance mass flows across boundaries | |
| SI.EnthalpyFlowRate | Hb_flow | Enthalpy flow across boundaries or energy source/sink | |
| SI.HeatFlowRate | Qb_flow | Heat flow across boundaries or energy source/sink | |
| SI.Power | Wb_flow | Work flow across boundaries or source term |
Contents
| Name | Description |
|---|---|
| Medium in the component |