Define fixed or prescribed boundary conditions
Package Sources contains generic sources for fluid connectors to define fixed or prescribed ambient conditions.
Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).
Name | Description |
---|---|
FixedBoundary | Boundary source component |
Boundary_pT | Boundary with prescribed pressure, temperature, composition and trace substances |
Boundary_ph | Boundary with prescribed pressure, specific enthalpy, composition and trace substances |
MassFlowSource_T | Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances |
MassFlowSource_h | Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances |
BaseClasses | Base classes used in the Sources package (only of interest to build new component models) |
Boundary source component
Model FixedBoundary defines constant values for boundary conditions:
Note, that boundary temperature, density, specific enthalpy, mass fractions and trace substances have only an effect if the mass flow is from the Boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary pressure, do not have an effect.
Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Name | Description |
---|---|
replaceable package Medium | Medium model within the source |
Boundary pressure or boundary density | |
use_p | Select p or d |
p | Boundary pressure [Pa] |
d | Boundary density [kg/m3] |
Boundary temperature or boundary specific enthalpy | |
use_T | Select T or h |
T | Boundary temperature [K] |
h | Boundary specific enthalpy [J/kg] |
Only for multi-substance flow | |
X[Medium.nX] | Boundary mass fractions m_i/m [kg/kg] |
Only for trace-substance flow | |
C[Medium.nC] | Boundary trace substances |
Name | Description |
---|---|
ports[nPorts] |
Boundary with prescribed pressure, temperature, composition and trace substances
Defines prescribed values for boundary conditions:
If use_p_in
is false (default option), the p
parameter
is used as boundary pressure, and the p_in
input connector is disabled; if use_p_in
is true, then the p
parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the temperature, composition and trace substances.
Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary pressure, do not have an effect.
Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Name | Description |
---|---|
replaceable package Medium | Medium model within the source |
use_p_in | Get the pressure from the input connector |
use_T_in | Get the temperature from the input connector |
use_X_in | Get the composition from the input connector |
use_C_in | Get the trace substances from the input connector |
p | Fixed value of pressure [Pa] |
T | Fixed value of temperature [K] |
X[Medium.nX] | Fixed value of composition [kg/kg] |
C[Medium.nC] | Fixed values of trace substances |
Name | Description |
---|---|
ports[nPorts] | |
p_in | Prescribed boundary pressure [Pa] |
T_in | Prescribed boundary temperature [K] |
X_in[Medium.nX] | Prescribed boundary composition [1] |
C_in[Medium.nC] | Prescribed boundary trace substances |
Boundary with prescribed pressure, specific enthalpy, composition and trace substances
Defines prescribed values for boundary conditions:
If use_p_in
is false (default option), the p
parameter
is used as boundary pressure, and the p_in
input connector is disabled; if use_p_in
is true, then the p
parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the specific enthalpy and composition
Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary pressure, do not have an effect.
Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Name | Description |
---|---|
replaceable package Medium | Medium model within the source |
use_p_in | Get the pressure from the input connector |
use_h_in | Get the specific enthalpy from the input connector |
use_X_in | Get the composition from the input connector |
use_C_in | Get the trace substances from the input connector |
p | Fixed value of pressure [Pa] |
h | Fixed value of specific enthalpy [J/kg] |
X[Medium.nX] | Fixed value of composition [kg/kg] |
C[Medium.nC] | Fixed values of trace substances |
Name | Description |
---|---|
ports[nPorts] | |
p_in | Prescribed boundary pressure [Pa] |
h_in | Prescribed boundary specific enthalpy [J/kg] |
X_in[Medium.nX] | Prescribed boundary composition [1] |
C_in[Medium.nC] | Prescribed boundary trace substances |
Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances
Models an ideal flow source, with prescribed values of flow rate, temperature, composition and trace substances:
If use_m_flow_in
is false (default option), the m_flow
parameter
is used as boundary pressure, and the m_flow_in
input connector is disabled; if use_m_flow_in
is true, then the m_flow
parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the temperature and composition
Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary flow rate, do not have an effect.
Extends from Sources.BaseClasses.PartialFlowSource (Partial component source with one fluid connector).
Name | Description |
---|---|
replaceable package Medium | Medium model within the source |
use_m_flow_in | Get the mass flow rate from the input connector |
use_T_in | Get the temperature from the input connector |
use_X_in | Get the composition from the input connector |
use_C_in | Get the trace substances from the input connector |
m_flow | Fixed mass flow rate going out of the fluid port [kg/s] |
T | Fixed value of temperature [K] |
X[Medium.nX] | Fixed value of composition [kg/kg] |
C[Medium.nC] | Fixed values of trace substances |
Name | Description |
---|---|
ports[nPorts] | |
m_flow_in | Prescribed mass flow rate [kg/s] |
T_in | Prescribed fluid temperature [K] |
X_in[Medium.nX] | Prescribed fluid composition [1] |
C_in[Medium.nC] | Prescribed boundary trace substances |
Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances
Models an ideal flow source, with prescribed values of flow rate, temperature and composition:
If use_m_flow_in
is false (default option), the m_flow
parameter
is used as boundary pressure, and the m_flow_in
input connector is disabled; if use_m_flow_in
is true, then the m_flow
parameter is ignored, and the value provided by the input connector is used instead.
The same thing goes for the temperature and composition
Note, that boundary temperature, mass fractions and trace substances have only an effect if the mass flow is from the boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary flow rate, do not have an effect.
Extends from Sources.BaseClasses.PartialFlowSource (Partial component source with one fluid connector).
Name | Description |
---|---|
replaceable package Medium | Medium model within the source |
use_m_flow_in | Get the mass flow rate from the input connector |
use_h_in | Get the specific enthalpy from the input connector |
use_X_in | Get the composition from the input connector |
use_C_in | Get the trace substances from the input connector |
m_flow | Fixed mass flow rate going out of the fluid port [kg/s] |
h | Fixed value of specific enthalpy [J/kg] |
X[Medium.nX] | Fixed value of composition [kg/kg] |
C[Medium.nC] | Fixed values of trace substances |
Name | Description |
---|---|
ports[nPorts] | |
m_flow_in | Prescribed mass flow rate [kg/s] |
h_in | Prescribed fluid specific enthalpy [J/kg] |
X_in[Medium.nX] | Prescribed fluid composition [1] |
C_in[Medium.nC] | Prescribed boundary trace substances |