modelPrescribedOutletState
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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.MassFlowRate | m_flow_nominal | 0.1 | Nominal mass flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Annex60.Fluid.Sources.Boundary_pT | sin | Sink | |
| Annex60.Fluid.Interfaces.PrescribedOutletState | heaHigPow | Steady-state model of the heater with high capacity | |
| Modelica.Blocks.Sources.TimeTable | TSetHeat | Setpoint heating | |
| Annex60.Fluid.Interfaces.PrescribedOutletState | cooLimPow | Steady-state model of the cooler with limited capacity | |
| Modelica.Blocks.Sources.TimeTable | TSetCool | Setpoint cooling | |
| Annex60.Fluid.Interfaces.PrescribedOutletState | heaCooUnl | Steady-state model of the heater or cooler with unlimited capacity | |
| Modelica.Blocks.Sources.TimeTable | TSetCoolHeat | Setpoint cooling | |
| Modelica.Blocks.Sources.Ramp | m_flow | Mass flow rate | |
| Annex60.Fluid.Sources.MassFlowSource_T | sou1 | Flow source | |
| Annex60.Fluid.Sources.MassFlowSource_T | sou2 | Flow source | |
| Annex60.Fluid.Sources.MassFlowSource_T | sou3 | Flow source |
Contents
| Name | Description |
|---|---|
Revisions
-
November 11, 2014, by Michael Wetter:
First implementation.