modelPartialVolumeM

Partial volume with one inlet and M outlet

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

This is the partial parent class for unidirectional volumes with M outlets. It is partial and missing the number if inputs, as well as a equations for its volume or medium pressure and one for the volume change work performed.

Conceptually a volume is a sink and a source. It therefore defines the level of inertial pressure r in a closed loop and acts as a loop breaker.

Volumes implement a damping term on the change of the stored mass to dampen out fast, otherwise undamped oscillations that appear when connecting volumes directly to other volumes or other boundaries (source, sink, boundary_fore, boundary_rear). With the damping term these oscillations will be still very fast, but dampened out, so a stiff solver might be able to handle them well. Damping is enabled by default and can be disabled by setting Advanced.k_volume_damping=0.

Due to stability reasons, mass-flows in the wrong direction (fluid entering the outlet or exiting the inlet) is considered to have the enthalpy and mass-fractions of the medium in the volume. This results in a stable steady-state solution, since this method effectiveley removes the parts of the energy and mass-fraction differential equations, that are associated with mass-flows.

Per default the Volume has the two states energy and mass (U_med and M) and one state for each mass, as well as one state for each substance of the fluid (except the first one). These will be enforced to be states of the simulation, which can result in nonlinear systems of size one or two, but works very reliable. To get rid of these systems the modeler can enable the flag 'usePreferredMediumStates' in the 'Advanced' tab. Then the volume uses the states preferred by the medium object, rather then the default ones, which can improve the nonlinear systems most of the time, but also might lead to larger nonlinear systems (e.g. in the Test 'VolumesDirectCoupling').

considerInertance

The parameter considerInertance is currently not included in the model; see Idealized.UsersGuide.InertanceNeglect.

enableFreeInlet

The parameter enableFreeInlet is currently not included in the model; see PartialVolume.

Parameters

TypeNameDefaultDescription
IntegerM_outlets1Number if outlets
BooleanuseHeatportfalse=true, if heatPort is enabled
SI.AreaA1Heat transfer area
SI.CoefficientOfHeatTransferU200Thermal transmittance
Initialization › Pressure
Booleaninitialize_pressuretrue=true, if pressure is initialized
Medium.AbsolutePressurep_startMedium.p_defaultInitial pressure set value
Initialization › Temperature
Booleaninitialize_energytrue= true, if internal energy is initialized
Medium.TemperatureT_startMedium.T_defaultInitial Temperature set value
Initialization › Mass fractions
Booleaninitialize_Xitrue=true, if mass fractions are iinitialized
Medium.MassFraction[Medium.nXi]Xi_0Medium.X_default[1:Medium.nXi]Initial mass fractions set values
Initialization › Specific enthalpy
Booleanuse_hstartfalse=true, if internal energy is initialized with specific enthalpy
Medium.SpecificEnthalpyh_startMedium.h_defaultInitial specific enthalpy set value
Advanced
Utilities.Units.InertanceLdropOfCommons.LInertance of inlet/outlet
SI.MassFlowRatem_flow_assert-dropOfCommons.m_flow_regAssertion threshold for negative massflow
BooleanusePreferredMediumStatesfalse=true, if preferred medium states are used
Advanced › Damping
Realk_volume_dampingdropOfCommons.k_volume_dampingDamping factor multiplicator

Components

TypeNameDefaultDescription
Interfaces.Inletinlet
Interfaces.Outlet[M_outlets]outlet
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort
Medium.BasePropertiesmedium
SI.VolumeVVolume
SI.MassMV*medium.dMass
SI.Mass[Medium.nXi]MXiM*medium.XiMasses of species
SI.EnergyU_medM*medium.uInternal energy
SI.HeatFlowRateQ_flowHeat flow rate
SI.PowerW_vVolumenänderungsarbeitsstrom (work due to change of volume)

Contents

NameDescription
MediumMedium model