LBL logo

Buildings.Obsolete.Media.GasesPTDecoupled.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.GasesPTDecoupled.

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

Package Content

Name Description
Buildings.Obsolete.Media.GasesPTDecoupled.Examples.MoistAirTemperatureEnthalpyInversion MoistAirTemperatureEnthalpyInversion Model to check computation of h(T) and its inverse
Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestMoistAir TestMoistAir  
Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestSimpleAir TestSimpleAir  

Buildings.Obsolete.Media.GasesPTDecoupled.Examples.MoistAirTemperatureEnthalpyInversion Buildings.Obsolete.Media.GasesPTDecoupled.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

TypeNameDefaultDescription
replaceable package MediumPartialCondensingGases 
TemperatureT0273.15 + 20Temperature [K]

Connectors

TypeNameDescription
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.GasesPTDecoupled.MoistAir); end MoistAirTemperatureEnthalpyInversion;

Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestMoistAir Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestMoistAir


Buildings.Obsolete.Media.GasesPTDecoupled.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

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
AbsolutePressurep_startMedium.p_defaultInitial value of pressure [Pa]
TemperatureT_startMedium.T_defaultInitial value of temperature [K]
SpecificEnthalpyh_startMedium.h_defaultInitial value of specific enthalpy [J/kg]
RealX_start[Medium.nX]Medium.X_defaultInitial value of mass fractions

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

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

Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestSimpleAir Buildings.Obsolete.Media.GasesPTDecoupled.Examples.TestSimpleAir


Buildings.Obsolete.Media.GasesPTDecoupled.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

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
AbsolutePressurep_startMedium.p_defaultInitial value of pressure [Pa]
TemperatureT_startMedium.T_defaultInitial value of temperature [K]
SpecificEnthalpyh_startMedium.h_defaultInitial value of specific enthalpy [J/kg]
RealX_start[Medium.nX]Medium.X_defaultInitial value of mass fractions

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

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

Automatically generated Mon Jul 13 14:36:31 2015.