modelMassFlowSource_T

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

Extends from IBPSA.Fluid.Sources.BaseClasses.PartialSource_m_flow (Partial source with prescribed flow rate), IBPSA.Fluid.Sources.BaseClasses.PartialSource_T (Boundary with prescribed temperature), IBPSA.Fluid.Sources.BaseClasses.PartialSource_Xi_C (Partial component source with parameter definitions for Xi and C).

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 applies to the temperature T, composition Xi or X and trace substances C.

Options

Instead of using Xi_in (the independent composition fractions), the advanced tab provides an option for setting all composition fractions using X_in. use_X_in and use_Xi_in cannot be used at the same time.

Parameter verifyInputs can be set to true to enable a check that verifies the validity of the used temperature and pressures. This removes the corresponding overhead from the model, which is a substantial part of the overhead of this model. See #882 for more information.

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
Advanced
BooleanverifyInputs (from PartialSource)falseSet to true to stop the simulation with an error if the medium temperature is outside its allowable range
Booleanuse_X_in (from PartialSource_Xi_C)falseGet the composition (all fractions) from the input connector
Conditional inputs
Booleanuse_m_flow_in (from PartialSource_m_flow)falseGet the mass flow rate from the input connector
Booleanuse_T_in (from PartialSource_T)falseGet the temperature from the input connector
Booleanuse_Xi_in (from PartialSource_Xi_C)falseGet the composition (independent fractions) from the input connector
Booleanuse_C_in (from PartialSource_Xi_C)falseGet the trace substances from the input connector
Fixed inputs
Modelica.SIunits.MassFlowRatem_flow (from PartialSource_m_flow)0Fixed mass flow rate going out of the fluid port
Medium.TemperatureT (from PartialSource_T)Medium.T_defaultFixed value of temperature
Medium.MassFraction[Medium.nX]X (from PartialSource_Xi_C)Medium.X_defaultFixed value of composition
Medium.ExtraProperty[Medium.nC]C (from PartialSource_Xi_C)fill(0, Medium.nC)Fixed values of trace substances

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts]ports (from PartialSource)
Modelica.Blocks.Interfaces.RealInputm_flow_in (from PartialSource_m_flow)Prescribed mass flow rate
Modelica.Blocks.Interfaces.RealInputT_in (from PartialSource_T)Prescribed boundary temperature
Modelica.Blocks.Interfaces.RealInput[Medium.nX]X_in (from PartialSource_Xi_C)Prescribed boundary composition
Modelica.Blocks.Interfaces.RealInput[Medium.nXi]Xi_in (from PartialSource_Xi_C)Prescribed boundary composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_in (from PartialSource_Xi_C)Prescribed boundary trace substances

Revisions

  • February 2nd, 2018 by Filip Jorissen
    Made medium conditional and refactored inputs. See #882.
  • April 18, 2017, by Filip Jorissen:
    Changed checkBoundary implementation such that it is run as an initial equation when it depends on parameters only. See #728.
  • January 26, 2016, by Michael Wetter:
    Added unit and quantity attributes.
  • September 29, 2009, by Michael Wetter:
    First implementation.