modelHeaterFanPressureDriven
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. The fan 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.
The component invBloCon at the bottom of the model sets up
an equality constraint on the pressure between the sink and the source.
It also outputs a signal for the mass flow rate. Hence, this component is
used to declare how to break the algebraic loop in this signal flow diagram.
For a model with prescribed mass flow rate, see
Buildings.Fluid.FMI.Validation.HeaterFan.
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 | Set to true, as this model computes the mass flow rate based on the pressure drop |
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 | |
| Modelica.Blocks.Math.InverseBlockConstraints | invBloCon | Block to set up residual function for nonlinear system of equation for pressure drop and mass flow rate |
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.