Modelica.Media.Examples.ReferenceAir

Examples for detailed dry air and moist air medium models

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Modelica.Media.Examples.ReferenceAir.DryAir1 DryAir1 Example 1 for dry air
Modelica.Media.Examples.ReferenceAir.DryAir2 DryAir2 Example 2 for dry air
Modelica.Media.Examples.ReferenceAir.MoistAir MoistAir Ideal gas flue gas model
Modelica.Media.Examples.ReferenceAir.MoistAir1 MoistAir1 Example 1 for moist air
Modelica.Media.Examples.ReferenceAir.MoistAir2 MoistAir2 Example 2 for moist air
Modelica.Media.Examples.ReferenceAir.Inverse_sh_T Inverse_sh_T Solve h = h_pT(p, T), s = s_pT(p, T) for T, if h or s is given
Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX Inverse_sh_TX Solve h = h_pTX(p, T, X), s = s_pTX(p, T, X) for T, if h or s is given

Modelica.Media.Examples.ReferenceAir.DryAir1 Modelica.Media.Examples.ReferenceAir.DryAir1

Example 1 for dry air

Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel (Basic test model to test a medium).

Parameters

NameDescription
replaceable package MediumMedium model
p_startInitial value of pressure [Pa]
T_startInitial value of temperature [K]
h_startInitial value of specific enthalpy [J/kg]
X_start[Medium.nX]Initial value of mass fractions

Connectors

NameDescription
replaceable package MediumMedium model

Modelica.Media.Examples.ReferenceAir.DryAir2 Modelica.Media.Examples.ReferenceAir.DryAir2

Example 2 for dry air

Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel2 (Slightly larger test model to test a medium).

Parameters

NameDescription
replaceable package MediumMedium model
p_startInitial value of pressure [Pa]
T_startInitial value of temperature [K]
h_startInitial value of specific enthalpy [J/kg]
X_start[Medium.nX]Initial value of mass fractions

Connectors

NameDescription
replaceable package MediumMedium model

Modelica.Media.Examples.ReferenceAir.MoistAir Modelica.Media.Examples.ReferenceAir.MoistAir

Ideal gas flue gas model

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
T_startInitial guess value for temperature [K]
p_startInitial guess value for pressure [Pa]
MMx[2]Vector of molar masses (consisting of dry air and of steam) [kg/mol]

Modelica.Media.Examples.ReferenceAir.MoistAir1 Modelica.Media.Examples.ReferenceAir.MoistAir1

Example 1 for moist air

Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel (Basic test model to test a medium).

Parameters

NameDescription
replaceable package MediumMedium model
p_startInitial value of pressure [Pa]
T_startInitial value of temperature [K]
h_startInitial value of specific enthalpy [J/kg]
X_start[Medium.nX]Initial value of mass fractions

Connectors

NameDescription
replaceable package MediumMedium model

Modelica.Media.Examples.ReferenceAir.MoistAir2 Modelica.Media.Examples.ReferenceAir.MoistAir2

Example 2 for moist air

Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel2 (Slightly larger test model to test a medium).

Parameters

NameDescription
replaceable package MediumMedium model
p_startInitial value of pressure [Pa]
T_startInitial value of temperature [K]
h_startInitial value of specific enthalpy [J/kg]
X_start[Medium.nX]Initial value of mass fractions

Connectors

NameDescription
replaceable package MediumMedium model

Modelica.Media.Examples.ReferenceAir.Inverse_sh_T Modelica.Media.Examples.ReferenceAir.Inverse_sh_T

Solve h = h_pT(p, T), s = s_pT(p, T) for T, if h or s is given

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
T_minVary temperature linearly from T_min (time=0) up to T_max (time=1) [K]
T_maxVary temperature linearly from T_min (time=0) up to T_max (time=1) [K]
pFixed pressure in model [Pa]

Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX

Solve h = h_pTX(p, T, X), s = s_pTX(p, T, X) for T, if h or s is given

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
T_minVary temperature linearly from T_min (time=0) up to T_max (time=1) [K]
T_maxVary temperature linearly from T_min (time=0) up to T_max (time=1) [K]
pFixed pressure in model [Pa]
X[:]Mass fraction vector [1]
Automatically generated Tue Apr 05 09:36:53 2016.