modelInletToAirMoistAir
Validation model for inlet to Buildings.Media.Air conversion without trace substances
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example validates the conversion model Buildings.Fluid.FMI.Conversion.InletToAir . The medium used is Buildings.Media.Air without trace substances. The top model has no reverse flow, whereas the bottom model has reverse flow.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_p_in | false | = true to use a pressure from connector, false to output Medium.p_default |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Constant | m_flow | Mass flow rate | |
| Modelica.Blocks.Sources.Constant | T | Room temperature | |
| Buildings.Fluid.FMI.Conversion.InletToAir | conAir | Converter for air | |
| Source_T | sou | Source for mass flow rate and pressure | |
| Modelica.Blocks.Sources.Constant | pIn | Inlet pressure | |
| Modelica.Blocks.Sources.Constant | X_w_in | Inlet mass fraction | |
| Modelica.Blocks.Sources.Constant[Medium.nC] | C | Trace substances for forward flow | |
| Buildings.Fluid.FMI.Conversion.InletToAir | conAirRevFlo | Converter for air with reverse flow | |
| Source_T | souRev | Source for mass flow rate and pressure with reverse flow | |
| Modelica.Blocks.Sources.Constant | TRev | Temperature for reverse flow | |
| Modelica.Blocks.Sources.Constant | X_w | Mass flow fraction for reverse flow |
Contents
| Name | Description |
|---|---|
Revisions
-
June 29, 2016, by Michael Wetter:
Added validation test for reverse flow. -
April 28, 2016 by Thierry S. Nouidui:
First implementation.