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
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Integer | N_rear (from PartialVolumeN) | 1 | Number if rear ports |
| Integer | N_fore (from PartialVolumeN) | 1 | Number if fore ports |
| Boolean | useHeatport (from PartialVolumeN) | false | =true, if heatport is enabled |
| SI.Area | A (from PartialVolumeN) | 1 | Heat transfer area |
| SI.CoefficientOfHeatTransfer | U (from PartialVolumeN) | 200 | Thermal transmittance |
| SI.Volume | V_par | 0.001 | Volume |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Initialization › Pressure | |||
| Boolean | initialize_pressure (from PartialVolumeN) | true | =true, if pressure is initialized |
| Medium.AbsolutePressure | p_start (from PartialVolumeN) | Medium.p_default | Initial pressure set value |
| Initialization › Temperature | |||
| Boolean | initialize_energy (from PartialVolumeN) | true | = true, if internal energy is initialized |
| Medium.Temperature | T_start (from PartialVolumeN) | Medium.T_default | Initial Temperature set value |
| Initialization › Mass fractions | |||
| Boolean | initialize_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 | |||
| Boolean | use_hstart (from PartialVolumeN) | false | =true, if internal energy is initialized with specific enthalpy |
| Medium.SpecificEnthalpy | h_start (from PartialVolumeN) | Medium.h_default | Initial specific enthalpy set value |
| Advanced | |||
| Utilities.Units.Inertance | L (from PartialVolumeN) | dropOfCommons.L | Inertance of rear/fore ports |
| SI.MassFlowRate | m_flow_reg (from PartialVolumeN) | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
| Boolean | usePreferredMediumStates (from PartialVolumeN) | false | =true, if preferred medium states are used |
| Advanced › Damping | |||
| Real | k_volume_damping (from PartialVolumeN) | dropOfCommons.k_volume_damping | Damping factor multiplicator |
| Boolean | density_derp_h_from_media | false | = true, if the derivative of density by pressure at const specific enthalpy is calculated from media model (only available for some media models) |
| Medium.DerDensityByPressure | density_derp_h_set | 1e-6 | Derivative of density by pressure at const specific enthalpy set value (e.g approx. 1e-5 for air, 1e-7 for water) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from PartialVolumeN) | ||
| Interfaces.Rear[N_rear] | rear (from PartialVolumeN) | ||
| Interfaces.Fore[N_fore] | fore (from PartialVolumeN) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialVolumeN) | ||
| SI.Volume | V (from PartialVolumeN) | Volume | |
| SI.Mass | M (from PartialVolumeN) | V*medium.d | Mass |
| SI.Mass[Medium.nXi] | MXi (from PartialVolumeN) | M*medium.Xi | Masses of species |
| SI.Energy | U_med (from PartialVolumeN) | M*medium.u | Inertal energy |
| SI.HeatFlowRate | Q_flow (from PartialVolumeN) | Heat flow rate | |
| SI.Power | W_v (from PartialVolumeN) | Work due to change in volume (Volumenänderungsarbeit) |