modelMassFlowSource_h

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

Extends from Modelica.Fluid.Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).

Information

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

  • Prescribed mass flow rate.
  • Prescribed specific enthalpy.
  • 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 applies to 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 flow rate, do not have an effect.

Parameters

TypeNameDefaultDescription
IntegernPorts (from PartialSource)0Number of ports
Booleanuse_m_flow_infalseGet the mass flow rate from the input connector
Booleanuse_h_infalseGet the specific enthalpy from the input connector
Booleanuse_X_infalseGet the composition from the input connector
Booleanuse_C_infalseGet the trace substances from the input connector
Modelica.SIunits.MassFlowRatem_flow0Fixed mass flow rate going out of the fluid port
Medium.SpecificEnthalpyhMedium.h_defaultFixed value of specific enthalpy
Medium.MassFraction[Medium.nX]XMedium.X_defaultFixed value of composition
Medium.ExtraProperty[Medium.nC]Cfill(0, Medium.nC)Fixed values of trace substances

Connectors

TypeNameDefaultDescription
Interfaces.FluidPorts_b[nPorts]ports (from PartialSource)
Modelica.Blocks.Interfaces.RealInputm_flow_inPrescribed mass flow rate
Modelica.Blocks.Interfaces.RealInputh_inPrescribed fluid specific enthalpy
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_inPrescribed fluid composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_inPrescribed boundary trace substances

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialSource)Medium in the source

Revisions

  • January 26, 2016, by Michael Wetter:
    Added unit and quantity attributes.
  • May 29, 2014, by Michael Wetter:
    Removed undesirable annotation Evaluate=true.
  • September 29, 2009, by Michael Wetter:
    First implementation. Implemenation is based on Modelica.Fluid.