modelPortVolume

Fixed volume associated with a port by the finite volume method

Information

This component models the volume of fixed size that is associated with the fluid port to which it is connected. This means that all medium properties inside the volume, are identical to the port medium properties. In particular, the specific enthalpy inside the volume (= medium.h) is always identical to the specific enthalpy in the port (port.h = medium.h). Usually, this model is used when discretizing a component according to the finite volume method into volumes in internal ports that only store energy and mass and into transport elements that just transport energy, mass and momentum between the internal ports without storing these quantities during the transport.

Parameters

TypeNameDefaultDescription
SI.VolumeV1e-6Fixed size of junction volume
Initial pressure or initial density
Booleanuse_p_starttrueSelect p_start or d_start
Medium.AbsolutePressurep_start101325Initial pressure
Medium.Densityd_start1Initial density
Initial temperature or initial specific enthalpy
Booleanuse_T_starttrueSelect T_start or h_start
Medium.TemperatureT_startModelica.Units.Conversions.from_degC(20)Initial temperature
Medium.SpecificEnthalpyh_start1.e4Initial specific enthalpy
Only for multi-substance flow
Medium.MassFraction[Medium.nX]X_startInitial mass fractions m_i/m

Connectors

TypeNameDefaultDescription
FluidPort_aport

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium
SI.EnergyUInternal energy of port volume
SI.MassmMass of junction volume
SI.Mass[Medium.nXi]mXiIndependent substance masses of junction volume

Contents

NameDescription
MediumMedium model