modelPrescribedOutletState

Test model for prescribed outlet 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 an almost unlimited positive capacity (Q_flow_nominal = 1.0e10 Watts), and hence its outlet temperature always reaches the set point temperatures.

The cooler model has a limited negative capacitiy (Q_flow_nominal = 1000 Watts), and hence its outlet temperature reaches only a limited value corresponding to its maximum negative capacity.

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.

The heater and cooler models have the parameter show_T set to true to allow inspecting the temperatures at their ports.

Parameters

TypeNameDefaultDescription
Modelica.SIunits.MassFlowRatem_flow_nominal0.1Nominal mass flow rate

Components

TypeNameDefaultDescription
Annex60.Fluid.Sources.Boundary_pTsinSink
Annex60.Fluid.Interfaces.PrescribedOutletStateheaHigPowSteady-state model of the heater with high capacity
Modelica.Blocks.Sources.TimeTableTSetHeatSetpoint heating
Annex60.Fluid.Interfaces.PrescribedOutletStatecooLimPowSteady-state model of the cooler with limited capacity
Modelica.Blocks.Sources.TimeTableTSetCoolSetpoint cooling
Annex60.Fluid.Interfaces.PrescribedOutletStateheaCooUnlSteady-state model of the heater or cooler with unlimited capacity
Modelica.Blocks.Sources.TimeTableTSetCoolHeatSetpoint cooling
Modelica.Blocks.Sources.Rampm_flowMass flow rate
Annex60.Fluid.Sources.MassFlowSource_Tsou1Flow source
Annex60.Fluid.Sources.MassFlowSource_Tsou2Flow source
Annex60.Fluid.Sources.MassFlowSource_Tsou3Flow source

Contents

NameDescription
Medium

Revisions

  • November 11, 2014, by Michael Wetter:
    First implementation.