modelSink_T

Model of a sink with temperature for reverse flow 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 sink that takes as an input the medium properties temperature, mass fractions (if Medium.nXi > 0) and trace substances (if Medium.nC > 0). These properties are used during reverse flow.

For a system of components with the connectors of the Buildings.Fluid.FMI package, this component is required to set the medium properties for the reverse flow.

If the parameter use_p_in is set to true, then the model has an output connector p. This can be used to obtain the pressure of the sink, which may be needed to iteratively solve for the mass flow rate.

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.RealInputT_inPrescribed boundary temperature
Modelica.Blocks.Interfaces.RealInputX_w_inPrescribed boundary composition
Modelica.Blocks.Interfaces.RealInput[Medium.nC]C_inPrescribed boundary composition
Interfaces.InletinletFluid port
Buildings.Fluid.FMI.Interfaces.PressureOutputpPressure

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 and water. See #1050.
  • April 29, 2015, by Michael Wetter:
    Redesigned to conditionally remove the pressure connector if use_p_in=false.
  • April 29, 2015, by Michael Wetter:
    Added pressure output signal which is needed to solve for algebraic loops.
  • April 15, 2015 by Michael Wetter:
    Changed connector variable to be temperature instead of specific enthalpy.
  • November 8, 2014, by Michael Wetter:
    First implementation.