
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
| Type | Name | Default | Description |
| SI.Volume | V | 1e-6 | Fixed size of junction volume |
| Initial pressure or initial density |
| Boolean | use_p_start | true | Select p_start or d_start |
| Medium.AbsolutePressure | p_start | 101325 | Initial pressure |
| Medium.Density | d_start | 1 | Initial density |
| Initial temperature or initial specific enthalpy |
| Boolean | use_T_start | true | Select T_start or h_start |
| Medium.Temperature | T_start | Modelica.Units.Conversions.from_degC(20) | Initial temperature |
| Medium.SpecificEnthalpy | h_start | 1.e4 | Initial specific enthalpy |
| Only for multi-substance flow |
| Medium.MassFraction[Medium.nX] | X_start | | Initial mass fractions m_i/m |
Components
| Type | Name | Default | Description |
| Medium.BaseProperties | medium | | |
| SI.Energy | U | | Internal energy of port volume |
| SI.Mass | m | | Mass of junction volume |
| SI.Mass[Medium.nXi] | mXi | | Independent substance masses of junction volume |
Contents
| Name | Description |
Medium | Medium model |