modelMassFlowSource_T

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

Extends from LibRAS.Sources.PartialFlowSource.

Information

Models an ideal flow source, with prescribed values of flow rate, temperature, composition and trace substances:

  • Prescribed mass flow rate.
  • Prescribed temperature.
  • Boundary composition (only for multi-substance or trace-substance flow).

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.

Parameters

TypeNameDefaultDescription
Booleanuse_m_flow_infalseGet the mass flow rate from the input connector
Booleanuse_T_infalseGet the temperature from the input connector
Booleanuse_X_infalseGet the composition from the input connector
Booleanuse_C_infalseGet the trace substances from the input connector
Booleanuse_C_S_infalseGet the trace substances from the input connector
Booleanuse_C_X_infalseGet the trace substances from the input connector
Medium.MassFlowRatem_flow0Fixed mass flow rate going out of the fluid port
Medium.TemperatureTMedium.T_defaultFixed value of temperature
Medium.MassFraction[Medium.nX]XMedium.X_defaultFixed value of composition
Medium.ExtraProperty[Medium.nC]Cfill(0, Medium.nC)Fixed values of trace substances
Medium.ExtraProperty[Medium.nC_S]C_Sfill(Modelica.Constants.eps, Medium.nC_S)Fixed values of dissolved substances
Medium.ExtraProperty[Medium.nC_X]C_Xfill(Modelica.Constants.eps, Medium.nC_X)Fixed values of particulate substances

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputm_flow_inPrescribed mass flow rate
Modelica.Blocks.Interfaces.RealInputT_inPrescribed fluid temperature
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_inPrescribed fluid composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_inPrescribed boundary trace substances
Modelica.Blocks.Interfaces.RealInput[Medium.nC_S]C_S_inPrescribed boundary trace substances
Modelica.Blocks.Interfaces.RealInput[Medium.nC_X]C_X_inPrescribed boundary trace substances