modelPrescribedOutlet

Model that demonstrates the ideal heater/cooler model for a prescribed outlet temperature, configured as steady-state

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Model that demonstrates the use of an ideal heater and an ideal cooler.

The heater model has a capacity of Q_flow_max = 1.0e4 Watts and the cooler model has a capacitiy of Q_flow_min = -1000 Watts. Hence, both only track their set point of the outlet temperature during certain times. There is also a heater and cooler with unlimited capacity.

At t=1000 second, the flow reverses its direction.

Each flow leg has the same mass flow rate. There are three mass flow sources as using one source only would yield a nonlinear system of equations that needs to be solved to determine the mass flow rate distribution.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow_nominal0.1Nominal mass flow rate

Components

TypeNameDefaultDescription
Buildings.Fluid.Sources.Boundary_pTsinSink
Buildings.Fluid.HeatExchangers.PrescribedOutletheaHigPowSteady-state model of the heater with high capacity
Buildings.Fluid.Sensors.TemperatureTwoPortheaHigPowOutTemperature sensor
Modelica.Blocks.Sources.TimeTableTSetHeatSetpoint heating
Buildings.Fluid.Sensors.TemperatureTwoPortcooLimPowOutTemperature sensor
Buildings.Fluid.HeatExchangers.PrescribedOutletcooLimPowSteady-state model of the cooler with limited capacity
Modelica.Blocks.Sources.TimeTableTSetCoolSetpoint cooling
Buildings.Fluid.HeatExchangers.PrescribedOutletheaCooUnlSteady-state model of the heater or cooler with unlimited capacity
Modelica.Blocks.Sources.TimeTableTSetCoolHeatSetpoint cooling
Buildings.Fluid.Sensors.TemperatureTwoPortheaCooUnlOutTemperature sensor
Modelica.Blocks.Sources.Rampm_flowMass flow rate
Buildings.Fluid.Sensors.TemperatureTwoPortheaHigPowInTemperature sensor
Buildings.Fluid.Sensors.TemperatureTwoPortcooLimPowInTemperature sensor
Buildings.Fluid.Sensors.TemperatureTwoPortheaCooUnlInTemperature sensor
Sources.MassFlowSource_Tsou1Flow source
Sources.MassFlowSource_Tsou2Flow source
Sources.MassFlowSource_Tsou3Flow source

Contents

NameDescription
Medium

Revisions

  • October 21, 2014, by Michael Wetter:
    Revised example to test reverse flow and zero flow transition.
  • March 19, 2014, by Christoph Nytsch-Geusen:
    First implementation.