modelVolumeMix

Volume of fixed size, closed to the ambient, with N_fore fore ports and N_rear rear ports

Extends from Internal.PartialVolumeN (Partial volume with N_fore fore ports and N_rear rear ports).

Information

A volume with N_fore fores and N_rear rears.

Conceptually a Volume is a Sink and a Source. It therefore defines the level of inertial pressure r in a closed loop and serves as a loop breaker.

This mixing volume doesn't approximate mixing like a junction, but rather does it without approximation.

Since there is no formula to compute density_derp_h for this volume, an upper bound has to be set in the parameter density_derp_h_set. Alternativeley the derivative can be taken from the media model for all the media that implement the corresponding formula by setting density_derp_h_from_media=true (default:false).

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
IntegerN_rear (from PartialVolumeN)1Number if rear ports
IntegerN_fore (from PartialVolumeN)1Number if fore ports
BooleanuseHeatport (from PartialVolumeN)false=true, if heatport is enabled
SI.AreaA (from PartialVolumeN)1Heat transfer area
SI.CoefficientOfHeatTransferU (from PartialVolumeN)200Thermal transmittance
SI.VolumeV_par0.001Volume
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Initialization › Pressure
Booleaninitialize_pressure (from PartialVolumeN)true=true, if pressure is initialized
Medium.AbsolutePressurep_start (from PartialVolumeN)Medium.p_defaultInitial pressure set value
Initialization › Temperature
Booleaninitialize_energy (from PartialVolumeN)true= true, if internal energy is initialized
Medium.TemperatureT_start (from PartialVolumeN)Medium.T_defaultInitial Temperature set value
Initialization › Mass fractions
Booleaninitialize_Xi (from PartialVolumeN)true=true, if mass fractions are iinitialized
Medium.MassFraction[Medium.nXi]Xi_0 (from PartialVolumeN)Medium.X_default[1:Medium.nXi]Initial mass fractions set values
Initialization › Specific enthalpy
Booleanuse_hstart (from PartialVolumeN)false=true, if internal energy is initialized with specific enthalpy
Medium.SpecificEnthalpyh_start (from PartialVolumeN)Medium.h_defaultInitial specific enthalpy set value
Advanced
Utilities.Units.InertanceL (from PartialVolumeN)dropOfCommons.LInertance of rear/fore ports
SI.MassFlowRatem_flow_reg (from PartialVolumeN)dropOfCommons.m_flow_regRegularization threshold of mass flow rate
BooleanusePreferredMediumStates (from PartialVolumeN)false=true, if preferred medium states are used
Advanced › Damping
Realk_volume_damping (from PartialVolumeN)dropOfCommons.k_volume_dampingDamping factor multiplicator
Booleandensity_derp_h_from_mediafalse= true, if the derivative of density by pressure at const specific enthalpy is calculated from media model (only available for some media models)
Medium.DerDensityByPressuredensity_derp_h_set1e-6Derivative of density by pressure at const specific enthalpy set value (e.g approx. 1e-5 for air, 1e-7 for water)

Connectors

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialVolumeN)
Interfaces.Rear[N_rear]rear (from PartialVolumeN)
Interfaces.Fore[N_fore]fore (from PartialVolumeN)

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialVolumeN)
SI.VolumeV (from PartialVolumeN)Volume
SI.MassM (from PartialVolumeN)V*medium.dMass
SI.Mass[Medium.nXi]MXi (from PartialVolumeN)M*medium.XiMasses of species
SI.EnergyU_med (from PartialVolumeN)M*medium.uInertal energy
SI.HeatFlowRateQ_flow (from PartialVolumeN)Heat flow rate
SI.PowerW_v (from PartialVolumeN)Work due to change in volume (Volumenänderungsarbeit)