.Modelica.Media.Examples

Information

Examples

Physical properties for fluids are needed in so many different variants that a library can only provide models for the most common situations. With the following examples we are going to demonstrate how to use the existing packages and functions in Modelica.Media to customize these models for advanced applications. The high level functions try to abstract as much as possible form the fact that different media are based on different variables, e.g., ideal gases need pressure and temperature, while many refrigerants are based on Helmholtz functions of density and temperature, and many water properties are based on pressure and specific enthalpy. Medium properties are needed in control volumes in the dynamic state equations and in many thermodynamic state locations that are independent of the dynamic states of a control volume, e.g., at a wall temperature, an isentropic reference state or at a phase boundary. The general structure of the library is such that:

A small library of generic volume, pipe, pump and ambient models is provided in Modelica.Media.Examples.Tests.Components to demonstrate how fluid components should be implemented that are using Modelica.Media models. This library is also used to test all media models in Modelica.Media.Examples.Tests.MediaTestModels.

Contents

NameDescription
 SimpleLiquidWaterExample for Water.SimpleLiquidWater medium model
 IdealGasH2OIdealGas H20 medium model
 WaterIF97WaterIF97 medium model
 MixtureGasesTest gas mixtures
 MoistAirExample for moist air
 PsychrometricDataProduces plot data for psychrometric charts
 TwoPhaseWaterExtension of the StandardWater package
 ReferenceAirExamples for detailed dry air and moist air medium models
 R134aExamples for R134a
 SolveOneNonlinearEquationDemonstrate how to solve one non-linear algebraic equation in one unknown
 UtilitiesFunctions, connectors and models needed for the media model tests

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos