Modelica.Fluid.Sources

Define fixed or prescribed boundary conditions

Information

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).

Package Content

Name Description
Modelica.Fluid.Sources.FixedBoundary FixedBoundary Boundary source component
Modelica.Fluid.Sources.Boundary_pT Boundary_pT Boundary with prescribed pressure, temperature, composition and trace substances
Modelica.Fluid.Sources.Boundary_ph Boundary_ph Boundary with prescribed pressure, specific enthalpy, composition and trace substances
Modelica.Fluid.Sources.MassFlowSource_T MassFlowSource_T Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances
Modelica.Fluid.Sources.MassFlowSource_h MassFlowSource_h Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances
Modelica.Fluid.Sources.BaseClasses BaseClasses Base classes used in the Sources package (only of interest to build new component models)

Modelica.Fluid.Sources.FixedBoundary Modelica.Fluid.Sources.FixedBoundary

Boundary source component

Information

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).

Parameters

NameDescription
replaceable package MediumMedium model within the source
Boundary pressure or boundary density
use_pSelect p or d
pBoundary pressure [Pa]
dBoundary density [kg/m3]
Boundary temperature or boundary specific enthalpy
use_TSelect T or h
TBoundary temperature [K]
hBoundary 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

Connectors

NameDescription
ports[nPorts] 

Modelica.Fluid.Sources.Boundary_pT Modelica.Fluid.Sources.Boundary_pT

Boundary with prescribed pressure, temperature, composition and trace substances

Information

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).

Parameters

NameDescription
replaceable package MediumMedium model within the source
use_p_inGet the pressure from the input connector
use_T_inGet the temperature from the input connector
use_X_inGet the composition from the input connector
use_C_inGet the trace substances from the input connector
pFixed value of pressure [Pa]
TFixed value of temperature [K]
X[Medium.nX]Fixed value of composition [kg/kg]
C[Medium.nC]Fixed values of trace substances

Connectors

NameDescription
ports[nPorts] 
p_inPrescribed boundary pressure [Pa]
T_inPrescribed boundary temperature [K]
X_in[Medium.nX]Prescribed boundary composition [1]
C_in[Medium.nC]Prescribed boundary trace substances

Modelica.Fluid.Sources.Boundary_ph Modelica.Fluid.Sources.Boundary_ph

Boundary with prescribed pressure, specific enthalpy, composition and trace substances

Information

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).

Parameters

NameDescription
replaceable package MediumMedium model within the source
use_p_inGet the pressure from the input connector
use_h_inGet the specific enthalpy from the input connector
use_X_inGet the composition from the input connector
use_C_inGet the trace substances from the input connector
pFixed value of pressure [Pa]
hFixed value of specific enthalpy [J/kg]
X[Medium.nX]Fixed value of composition [kg/kg]
C[Medium.nC]Fixed values of trace substances

Connectors

NameDescription
ports[nPorts] 
p_inPrescribed boundary pressure [Pa]
h_inPrescribed boundary specific enthalpy [J/kg]
X_in[Medium.nX]Prescribed boundary composition [1]
C_in[Medium.nC]Prescribed boundary trace substances

Modelica.Fluid.Sources.MassFlowSource_T Modelica.Fluid.Sources.MassFlowSource_T

Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances

Information

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).

Parameters

NameDescription
replaceable package MediumMedium model within the source
use_m_flow_inGet the mass flow rate from the input connector
use_T_inGet the temperature from the input connector
use_X_inGet the composition from the input connector
use_C_inGet the trace substances from the input connector
m_flowFixed mass flow rate going out of the fluid port [kg/s]
TFixed value of temperature [K]
X[Medium.nX]Fixed value of composition [kg/kg]
C[Medium.nC]Fixed values of trace substances

Connectors

NameDescription
ports[nPorts] 
m_flow_inPrescribed mass flow rate [kg/s]
T_inPrescribed fluid temperature [K]
X_in[Medium.nX]Prescribed fluid composition [1]
C_in[Medium.nC]Prescribed boundary trace substances

Modelica.Fluid.Sources.MassFlowSource_h Modelica.Fluid.Sources.MassFlowSource_h

Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances

Information

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).

Parameters

NameDescription
replaceable package MediumMedium model within the source
use_m_flow_inGet the mass flow rate from the input connector
use_h_inGet the specific enthalpy from the input connector
use_X_inGet the composition from the input connector
use_C_inGet the trace substances from the input connector
m_flowFixed mass flow rate going out of the fluid port [kg/s]
hFixed value of specific enthalpy [J/kg]
X[Medium.nX]Fixed value of composition [kg/kg]
C[Medium.nC]Fixed values of trace substances

Connectors

NameDescription
ports[nPorts] 
m_flow_inPrescribed mass flow rate [kg/s]
h_inPrescribed fluid specific enthalpy [J/kg]
X_in[Medium.nX]Prescribed fluid composition [1]
C_in[Medium.nC]Prescribed boundary trace substances
Automatically generated Thu Oct 1 16:07:58 2020.