modelHeaterFan
Heater and fan in series, model configured to allow flow reversal
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example demonstrates how to configure a model with a heater
and a fan that causes a pressure rise in the air stream.
Note that the mass flow rate and the absolute pressure are
set by the component sou.
Therefore, the fan simply increases the pressure of the medium,
and it also computes how much power is needed for this pressure rise,
which is an input to the fan model.
For a model with that computes the mass flow rate based on the pressure drop, see Buildings.Fluid.FMI.Validation.HeaterFanPressureDriven.
For this example, the models are not exported as FMUs. However, the thermofluid flow models are wrapped using input/output blocks.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | Q_flow_nominal/1000/10 | Nominal mass flow rate |
| Modelica.Units.SI.PressureDifference | dp_nominal | 2000 | Pressure |
| Modelica.Units.SI.HeatFlowRate | Q_flow_nominal | 1000 | Heat flow rate at u=1, positive for heating |
| Boolean | use_p_in | true | = true to use a pressure from connector, false to output Medium.p_default |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ExportContainers.Examples.FMUs.Fan | floMac | Flow machine with pressure raise as an input | |
| ExportContainers.Examples.FMUs.HeaterCooler_u | hea | Heater | |
| Modelica.Blocks.Sources.Constant | dp | Pressure raise of fan | |
| Modelica.Blocks.Sources.Constant | uHea | Control signal for heater | |
| Source_T | sou | Source for mass flow rate and pressure | |
| Sink_T | sin | Sink for flow rate, and source for backflow properties | |
| Modelica.Blocks.Sources.Constant | m_flow | Mass flow rate | |
| Modelica.Blocks.Sources.Constant | pIn | Inlet pressure | |
| Modelica.Blocks.Sources.Constant | TIn | Inlet temperature | |
| Modelica.Blocks.Sources.Constant | X_w_in | Inlet mass fraction | |
| Modelica.Blocks.Sources.Constant | TBac | Temperature of backward flow | |
| Modelica.Blocks.Sources.Constant | X_w_bac | Moisture mass fraction for back flow | |
| Modelica.Blocks.Sources.Constant[Medium.nC] | CBac | Trace substances for back flow | |
| Modelica.Blocks.Sources.Constant[Medium.nC] | C | Trace substances for forward flow |
Contents
| Name | Description |
|---|---|
| Medium model |
Revisions
-
January 22, 2016, by Michael Wetter:
Corrected type declaration of pressure difference. This is for #404. -
November 8, 2014, by Michael Wetter:
First implementation.