blockHeater_T

Declaration of an FMU that exports an ideal heater or cooler with prescribed outlet temperature

Extends from Buildings.Fluid.FMI.ExportContainers.ReplaceableTwoPort (Container to export thermofluid flow models with two ports as an FMU).

Information

This example demonstrates how to export an FMU with a heater that takes as an input signal the leaving fluid temperature. The FMU has an instance of Buildings.Fluid.HeatExchangers.PrescribedOutlet.

Parameters

TypeNameDefaultDescription
Booleanuse_p_in (from PartialTwoPort)true= true to use a pressure from connector, false to output Medium.p_default
Modelica.Units.SI.HeatFlowRateQMax_flowModelica.Constants.infMaximum heat flow rate for heating (positive)
Modelica.Units.SI.HeatFlowRateQMin_flow-Modelica.Constants.infMaximum heat flow rate for cooling (negative)
Modelica.Units.SI.MassFlowRatem_flow_nominal0.01Nominal mass flow rate
Modelica.Units.SI.PressureDifferencedp_nominal0Pressure
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= true to allow flow reversal, false restricts to design direction (inlet -> outlet)

Connectors

TypeNameDefaultDescription
Interfaces.Inletinlet (from PartialTwoPort)Fluid inlet
Interfaces.Outletoutlet (from PartialTwoPort)Fluid outlet
Modelica.Blocks.Interfaces.RealInputTSetSet point temperature of the fluid that leaves port_b
Modelica.Blocks.Interfaces.RealOutputQ_flowHeat added to the fluid (if flow is from port_a to port_b)

Components

TypeNameDefaultDescription
Buildings.Fluid.Interfaces.PartialTwoPortcom (from ReplaceableTwoPort)
Modelica.Blocks.Sources.RealExpressiondpCom (from ReplaceableTwoPort)Pressure drop of the component

Revisions

  • May 8, 2017, by Michael Wetter:
    Updated heater model.
    This is for Buildings, #763.
  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • November 20, 2014 by Michael Wetter:
    First implementation.