modelHeaterFan_noReverseFlow

Heater and fan in series, model configured to not 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. The model is identical with Buildings.Fluid.FMI.Validation.HeaterFan except that reverse flow is not allowed due to the parameter allowFlowReversal=false. Consequently, the connectors for the fluid properties for the reverse flow are removed, and the blocks on the right hand side of the model Buildings.Fluid.FMI.Validation.HeaterFan have been deleted.

Parameters

TypeNameDefaultDescription
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (inlet -> outlet)
Booleanuse_p_infalse= true to use a pressure from connector, false to output Medium.p_default
Modelica.Units.SI.MassFlowRatem_flow_nominalQ_flow_nominal/1000/10Nominal mass flow rate
Modelica.Units.SI.PressureDifferencedp_nominal2000Pressure
Modelica.Units.SI.HeatFlowRateQ_flow_nominal1000Heat flow rate at u=1, positive for heating

Components

TypeNameDefaultDescription
ExportContainers.Examples.FMUs.FanfloMacFlow machine with pressure raise as an input
ExportContainers.Examples.FMUs.HeaterCooler_uheaHeater
Modelica.Blocks.Sources.ConstantdpPressure raise of fan
Modelica.Blocks.Sources.ConstantuHeaControl signal for heater
Source_TsouSource for mass flow rate and pressure
Modelica.Blocks.Sources.Constantm_flowMass flow rate
Modelica.Blocks.Sources.ConstantpInInlet pressure
Modelica.Blocks.Sources.ConstantTInInlet temperature
Modelica.Blocks.Sources.ConstantX_w_inInlet mass fraction
Modelica.Blocks.Sources.Constant[Medium.nC]CTrace substances for forward flow

Contents

NameDescription
MediumMedium 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.