PartialLumpedVolume

Lumped volume with mass and energy balance

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (10)

energyDynamics

Value: system.energyDynamics

Type: Dynamics

Description: Formulation of energy balance

massDynamics

Value: system.massDynamics

Type: Dynamics

Description: Formulation of mass balance

substanceDynamics

Value: massDynamics

Type: Dynamics

Description: Formulation of substance balance

traceDynamics

Value: massDynamics

Type: Dynamics

Description: Formulation of trace substance balance

p_start

Value: system.p_start

Type: AbsolutePressure (Pa)

Description: Start value of pressure

use_T_start

Value: true

Type: Boolean

Description: = true, use T_start, otherwise h_start

T_start

Value: if use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start)

Type: Temperature (K)

Description: Start value of temperature

h_start

Value: if use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_default

Type: SpecificEnthalpy (J/kg)

Description: Start value of specific enthalpy

X_start

Value: Medium.X_default

Type: MassFraction[Medium.nX] (kg/kg)

Description: Start value of mass fractions m_i/m

C_start

Value: Medium.C_default

Type: ExtraProperty[Medium.nC]

Description: Start value of trace substances

Inputs (1)

fluidVolume

Type: Volume (m³)

Description: Volume

Components (2)

system

Type: System

Description: System properties

medium

Type: BaseProperties

Extended by (4)

TeeJunctionVolume

Modelica.Fluid.Fittings

Splitting/joining component with static balances for a dynamic control volume

PartialPump

Modelica.Fluid.Machines.BaseClasses

Base model for centrifugal pumps

PartialLumpedVessel

Modelica.Fluid.Vessels.BaseClasses

Lumped volume with a vector of fluid ports and replaceable heat transfer model

TankWithTopPorts

Modelica.Fluid.Examples.AST_BatchPlant.BaseClasses

Tank with inlet/outlet ports and with inlet ports at the top