Examples for detailed dry air and moist air medium models
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Name | Description |
---|---|
DryAir1 | Example 1 for dry air |
DryAir2 | Example 2 for dry air |
MoistAir | Ideal gas flue gas model |
MoistAir1 | Example 1 for moist air |
MoistAir2 | Example 2 for moist air |
Inverse_sh_T | Solve h = h_pT(p, T), s = s_pT(p, T) for T, if h or s is given |
Inverse_sh_TX | Solve h = h_pTX(p, T, X), s = s_pTX(p, T, X) for T, if h or s is given |
Example 1 for dry air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel (Basic test model to test a medium).
Name | Description |
---|---|
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Name | Description |
---|---|
replaceable package Medium | Medium model |
Example 2 for dry air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel2 (Slightly larger test model to test a medium).
Name | Description |
---|---|
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Name | Description |
---|---|
replaceable package Medium | Medium model |
Ideal gas flue gas model
Extends from Modelica.Icons.Example (Icon for runnable examples).
Name | Description |
---|---|
T_start | Initial guess value for temperature [K] |
p_start | Initial guess value for pressure [Pa] |
MMx[2] | Vector of molar masses (consisting of dry air and of steam) [kg/mol] |
Example 1 for moist air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel (Basic test model to test a medium).
Name | Description |
---|---|
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Name | Description |
---|---|
replaceable package Medium | Medium model |
Example 2 for moist air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Tests.Components.PartialTestModel2 (Slightly larger test model to test a medium).
Name | Description |
---|---|
replaceable package Medium | Medium model |
p_start | Initial value of pressure [Pa] |
T_start | Initial value of temperature [K] |
h_start | Initial value of specific enthalpy [J/kg] |
X_start[Medium.nX] | Initial value of mass fractions |
Name | Description |
---|---|
replaceable package Medium | Medium model |
Solve h = h_pT(p, T), s = s_pT(p, T) for T, if h or s is given
Extends from Modelica.Icons.Example (Icon for runnable examples).
Name | Description |
---|---|
T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
p | Fixed pressure in model [Pa] |
Solve h = h_pTX(p, T, X), s = s_pTX(p, T, X) for T, if h or s is given
Extends from Modelica.Icons.Example (Icon for runnable examples).
Name | Description |
---|---|
T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
p | Fixed pressure in model [Pa] |
X[:] | Mass fraction vector [1] |