modelSource_T

Model of a boundary with mass flow rate, pressure and temperature as an input that can be exported as an FMU

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Model of a source that takes as an input the mass flow rate, pressure and the medium properties temperature, mass fractions (if Medium.nXi > 0) and trace substances (if Medium.nC > 0).

For a system of components with the connectors of the Buildings.Fluid.FMI package, this component is required to set the pressure and the mass flow rate of the system.

Parameters

TypeNameDefaultDescription
Booleanuse_p_intrue= true to use a pressure from connector, false to output Medium.p_default
Assumptions
BooleanallowFlowReversaltrue= true to allow flow reversal, false restricts to design direction (inlet -> outlet)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputm_flow_inPrescribed mass flow source
Buildings.Fluid.FMI.Interfaces.PressureInputp_inPrescribed boundary pressure
Modelica.Blocks.Interfaces.RealInputT_inPrescribed boundary temperature
Modelica.Blocks.Interfaces.RealInputX_w_inPrescribed boundary composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_inPrescribed boundary composition
Interfaces.OutletoutletFluid port

Contents

NameDescription
MediumMedium in the component

Revisions

  • March 18, 2024, by Michael Wetter:
    Added causality.
    See IBPSA, #1853.
  • January 18, 2019, by Jianjun Hu:
    Limited the media choice to moist air only. See #1050.
  • October 15, 2016, by Michael Wetter:
    Removed redundant connection.
  • April 29, 2015, by Michael Wetter:
    Redesigned to conditionally remove the pressure connector if use_p_in=false.
  • April 15, 2015 by Michael Wetter:
    Changed connector variable to be temperature instead of specific enthalpy.
  • November 8, 2014, by Michael Wetter:
    First implementation.