Functions, connectors and models needed for the media model tests
Information
Extends from Modelica.Icons.Library (This icon will be removed in future Modelica versions, use Package instead).
Package Content
Name |
Description |
FluidPort
|
Interface for quasi one-dimensional fluid flow in a piping network (incompressible or compressible, one or more phases, one or more substances) |
FluidPort_a
|
Fluid connector with filled icon |
FluidPort_b
|
Fluid connector with outlined icon |
PortVolume
|
Fixed volume associated with a port by the finite volume method |
FixedMassFlowRate
|
Ideal pump that produces a constant mass flow rate from a large reservoir at fixed temperature and mass fraction |
FixedAmbient
|
Ambient pressure, temperature and mass fraction source |
ShortPipe
|
Simple pressure loss in pipe |
PartialTestModel
|
Basic test model to test a medium |
PartialTestModel2
|
Slightly larger test model to test a medium |
Interface for quasi one-dimensional fluid flow in a piping network (incompressible or compressible, one or more phases, one or more substances)
Information
Parameters
Name | Description |
replaceable package Medium | Medium model |
Contents
Name | Description |
replaceable package Medium | Medium model |
p | Pressure in the connection point [Pa] |
m_flow | Mass flow rate from the connection point into the component [kg/s] |
h | Specific mixture enthalpy in the connection point [J/kg] |
H_flow | Enthalpy flow rate into the component (if m_flow > 0, H_flow = m_flow*h) [W] |
Xi[Medium.nXi] | Independent mixture mass fractions m_i/m in the connection point [kg/kg] |
mXi_flow[Medium.nXi] | Mass flow rates of the independent substances from the connection point into the component (if m_flow > 0, mX_flow = m_flow*X) [kg/s] |
C[Medium.nC] | Properties c_i/m in the connection point |
mC_flow[Medium.nC] | Flow rates of auxiliary properties from the connection point into the component (if m_flow > 0, mC_flow = m_flow*C) [kg/s] |
Fluid connector with filled icon
Information
Modelica.Media.Examples.Tests.Components.FluidPort_a
Extends from FluidPort (Interface for quasi one-dimensional fluid flow in a piping network (incompressible or compressible, one or more phases, one or more substances)).
Parameters
Name | Description |
replaceable package Medium | Medium model |
Contents
Name | Description |
p | Pressure in the connection point [Pa] |
m_flow | Mass flow rate from the connection point into the component [kg/s] |
h | Specific mixture enthalpy in the connection point [J/kg] |
H_flow | Enthalpy flow rate into the component (if m_flow > 0, H_flow = m_flow*h) [W] |
Xi[Medium.nXi] | Independent mixture mass fractions m_i/m in the connection point [kg/kg] |
mXi_flow[Medium.nXi] | Mass flow rates of the independent substances from the connection point into the component (if m_flow > 0, mX_flow = m_flow*X) [kg/s] |
C[Medium.nC] | Properties c_i/m in the connection point |
mC_flow[Medium.nC] | Flow rates of auxiliary properties from the connection point into the component (if m_flow > 0, mC_flow = m_flow*C) [kg/s] |
Fluid connector with outlined icon
Information
Extends from FluidPort (Interface for quasi one-dimensional fluid flow in a piping network (incompressible or compressible, one or more phases, one or more substances)).
Parameters
Name | Description |
replaceable package Medium | Medium model |
Contents
Name | Description |
p | Pressure in the connection point [Pa] |
m_flow | Mass flow rate from the connection point into the component [kg/s] |
h | Specific mixture enthalpy in the connection point [J/kg] |
H_flow | Enthalpy flow rate into the component (if m_flow > 0, H_flow = m_flow*h) [W] |
Xi[Medium.nXi] | Independent mixture mass fractions m_i/m in the connection point [kg/kg] |
mXi_flow[Medium.nXi] | Mass flow rates of the independent substances from the connection point into the component (if m_flow > 0, mX_flow = m_flow*X) [kg/s] |
C[Medium.nC] | Properties c_i/m in the connection point |
mC_flow[Medium.nC] | Flow rates of auxiliary properties from the connection point into the component (if m_flow > 0, mC_flow = m_flow*C) [kg/s] |
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
Name | Description |
replaceable package Medium | Medium model |
V | Fixed size of junction volume [m3] |
Initial pressure or initial density |
use_p_start | Select p_start or d_start |
p_start | Initial pressure [Pa] |
d_start | Initial density [kg/m3] |
Initial temperature or initial specific enthalpy |
use_T_start | Select T_start or h_start |
T_start | Initial temperature [K] |
h_start | Initial specific enthalpy [J/kg] |
Only for multi-substance flow |
X_start[Medium.nX] | Initial mass fractions m_i/m [kg/kg] |
Connectors
Name | Description |
replaceable package Medium | Medium model |
port | |
Ideal pump that produces a constant mass flow rate from a large reservoir at fixed temperature and mass fraction
Information
Parameters
Name | Description |
m_flow | Fixed mass flow rate from an infinite reservoir to the fluid port [kg/s] |
X_ambient[Medium.nX] | Ambient mass fractions m_i/m of reservoir [kg/kg] |
replaceable package Medium | Medium model |
Ambient temperature or ambient specific enthalpy |
use_T_ambient | Select T_ambient or h_ambient |
T_ambient | Ambient temperature [K] |
h_ambient | Ambient specific enthalpy [J/kg] |
Connectors
Name | Description |
replaceable package Medium | Medium model |
port | |
Ambient pressure, temperature and mass fraction source
Information
Model FixedAmbient_pt defines constant values for ambient conditions:
- Ambient pressure.
- Ambient temperature.
- Ambient mass fractions (only for multi-substance flow).
Note, that ambient temperature
and mass fractions have only an effect if the mass flow
is from the ambient into the port. If mass is flowing from
the port into the ambient, the ambient definitions,
with exception of ambient pressure, do not have an effect.
Parameters
Name | Description |
replaceable package Medium | Medium model |
Ambient pressure or ambient density |
use_p_ambient | Select p_ambient or d_ambient |
p_ambient | Ambient pressure [Pa] |
d_ambient | Ambient density [kg/m3] |
Ambient temperature or ambient specific enthalpy |
use_T_ambient | Select T_ambient or h_ambient |
T_ambient | Ambient temperature [K] |
h_ambient | Ambient specific enthalpy [J/kg] |
Only for multi-substance flow |
X_ambient[Medium.nX] | Ambient mass fractions m_i/m [kg/kg] |
Connectors
Name | Description |
replaceable package Medium | Medium model |
port | |
Simple pressure loss in pipe
Information
Model ShortPipe defines a simple pipe model
with pressure loss due to friction. It is assumed that
no mass or energy is stored in the pipe.
Parameters
Name | Description |
replaceable package Medium | Medium model |
dp_nominal | Nominal pressure drop [Pa] |
m_flow_nominal | Nominal mass flow rate at nominal pressure drop [kg/s] |
Connectors
Name | Description |
replaceable package Medium | Medium model |
port_a | |
port_b | |
Basic test model to test a medium
Information
Parameters
Name | Description |
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Connectors
Name | Description |
replaceable package Medium | Medium model |
Slightly larger test model to test a medium
Information
Parameters
Name | Description |
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Connectors
Name | Description |
replaceable package Medium | Medium model |
Automatically generated Tue Apr 05 09:36:53 2016.