Examples for detailed dry air and moist air medium models
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
| Name | Description |
|---|---|
| Example 1 for dry air | |
| Example 2 for dry air | |
| Example for moist air | |
| Example 1 for moist air | |
| Example 2 for moist air | |
| Solve h = h_pT(p, T), s = s_pT(p, T) for T, if h or s is given | |
| 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.DryAir1Example 1 for dry air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Utilities.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 |
Modelica.Media.Examples.ReferenceAir.DryAir2Example 2 for dry air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Utilities.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 |
Modelica.Media.Examples.ReferenceAir.MoistAirExample for moist air
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] |
Modelica.Media.Examples.ReferenceAir.MoistAir1Example 1 for moist air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Utilities.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 |
Modelica.Media.Examples.ReferenceAir.MoistAir2Example 2 for moist air
Extends from Modelica.Icons.Example (Icon for runnable examples), Modelica.Media.Examples.Utilities.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 |
Modelica.Media.Examples.ReferenceAir.Inverse_sh_TSolve 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] |
Modelica.Media.Examples.ReferenceAir.Inverse_sh_TXSolve 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] |