Description: "Collection of models that illustrate model use and test models"

- Home > Modelica

## Buildings.Obsolete.Media.GasesConstantDensity.Examples

Collection of models that illustrate model use and test models

### Information

This package contains examples for the use of models that can be found in Buildings.Obsolete.Media.GasesConstantDensity.

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

### Package Content

Name | Description
--- | ---
MoistAirTemperatureEnthalpyInversion | Model to check computation of h(T) and its inverse
MoistAirUnsaturatedTemperatureEnthalpyInversion | Model to check computation of h(T) and its inverse
TestMoistAir |
TestMoistAirUnsaturated |
TestSimpleAir |

## Buildings.Obsolete.Media.GasesConstantDensity.Examples.MoistAirTemperatureEnthalpyInversion

Model to check computation of h(T) and its inverse

### Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion (Model to check computation of h(T) and its inverse).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package Medium | PartialCondensingGases |
Temperature | T0 | 273.15 + 20 | Temperature [K]

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package Medium |

### Modelica definition

model MoistAirTemperatureEnthalpyInversion "Model to check computation of h(T) and its inverse" extends Modelica.Icons.Example; extends Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion ( redeclare package Medium = Buildings.Obsolete.Media.GasesConstantDensity.MoistAir); end MoistAirTemperatureEnthalpyInversion;

## Buildings.Obsolete.Media.GasesConstantDensity.Examples.MoistAirUnsaturatedTemperatureEnthalpyInversion

Model to check computation of h(T) and its inverse

### Information

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion (Model to check computation of h(T) and its inverse).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package Medium | PartialCondensingGases |
Temperature | T0 | 273.15 + 20 | Temperature [K]

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package Medium |

### Modelica definition

model MoistAirUnsaturatedTemperatureEnthalpyInversion "Model to check computation of h(T) and its inverse" extends Modelica.Icons.Example; extends Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion ( redeclare package Medium = Buildings.Obsolete.Media.GasesConstantDensity.MoistAirUnsaturated); end MoistAirUnsaturatedTemperatureEnthalpyInversion;

## Buildings.Obsolete.Media.GasesConstantDensity.Examples.TestMoistAir

### Information

This is a simple test for the medium model. It uses the test model described in Modelica.Media.UsersGuide.MediumDefinition.TestOfMedium.

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package Medium | PartialMedium | Medium model
AbsolutePressure | p_start | Medium.p_default | Initial value of pressure [Pa]
Temperature | T_start | Medium.T_default | Initial value of temperature [K]
SpecificEnthalpy | h_start | Medium.h_default | Initial value of specific enthalpy [J/kg]
Real | X_start[Medium.nX] | Medium.X_default | Initial value of mass fractions

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package Medium | Medium model

### Modelica definition

model TestMoistAir extends Modelica.Icons.Example; extends Modelica.Media.Examples.Tests.Components.PartialTestModel( redeclare package Medium = Buildings.Obsolete.Media.GasesConstantDensity.MoistAir); end TestMoistAir;

## Buildings.Obsolete.Media.GasesConstantDensity.Examples.TestMoistAirUnsaturated

### Information

This is a simple test for the medium model. It uses the test model described in Modelica.Media.UsersGuide.MediumDefinition.TestOfMedium.

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package Medium | PartialMedium | Medium model
AbsolutePressure | p_start | Medium.p_default | Initial value of pressure [Pa]
Temperature | T_start | Medium.T_default | Initial value of temperature [K]
SpecificEnthalpy | h_start | Medium.h_default | Initial value of specific enthalpy [J/kg]
Real | X_start[Medium.nX] | Medium.X_default | Initial value of mass fractions

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package Medium | Medium model

### Modelica definition

model TestMoistAirUnsaturated extends Modelica.Icons.Example; extends Modelica.Media.Examples.Tests.Components.PartialTestModel( redeclare package Medium = Buildings.Obsolete.Media.GasesConstantDensity.MoistAirUnsaturated); end TestMoistAirUnsaturated;

## Buildings.Obsolete.Media.GasesConstantDensity.Examples.TestSimpleAir

### Information

This is a simple test for the medium model. It uses the test model described in Modelica.Media.UsersGuide.MediumDefinition.TestOfMedium.

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
replaceable package Medium | PartialMedium | Medium model
AbsolutePressure | p_start | Medium.p_default | Initial value of pressure [Pa]
Temperature | T_start | Medium.T_default | Initial value of temperature [K]
SpecificEnthalpy | h_start | Medium.h_default | Initial value of specific enthalpy [J/kg]
Real | X_start[Medium.nX] | Medium.X_default | Initial value of mass fractions

### Connectors

Type | Name | Description
--- | --- | ---
replaceable package Medium | Medium model

### Modelica definition

model TestSimpleAir extends Modelica.Icons.Example; extends Modelica.Media.Examples.Tests.Components.PartialTestModel( redeclare package Medium = Buildings.Obsolete.Media.GasesConstantDensity.SimpleAir); end TestSimpleAir;