packageMedia
Library of media property models
Extends from Modelica.Icons.Package (Icon for standard packages).
Information
This library contains interface definitions for media and the following property models for single and multiple substance fluids with one and multiple phases:
- Ideal gases:
1241 high precision gas models based on the NASA Glenn coefficients, plus ideal gas mixture models based on the same data. - Water models:
ConstantPropertyLiquidWater, WaterIF97 (high precision water model according to the IAPWS/IF97 standard) - Air models:
SimpleAir, DryAirNasa, ReferenceAir, MoistAir, ReferenceMoistAir. -
Incompressible media:
TableBased incompressible fluid models (properties are defined by tables rho(T), HeatCapacity_cp(T), etc.) -
Compressible liquids:
Simple liquid models with linear compressibility - Refrigerant Tetrafluoroethane (R134a).
The following parts are useful, when newly starting with this library:
- Modelica.Media.UsersGuide.
- Modelica.Media.UsersGuide.MediumUsage describes how to use a medium model in a component model.
- Modelica.Media.UsersGuide.MediumDefinition describes how a new fluid medium model has to be implemented.
- Modelica.Media.UsersGuide.ReleaseNotes summarizes the changes of the library releases.
- Modelica.Media.Examples contains examples that demonstrate the usage of this library.
Copyright © 1998-2025, Modelica Association and contributors
Contents
| Name | Description |
|---|---|
| User's Guide of Media Library | |
| Demonstrate usage of property models | |
| Interfaces for media models | |
| Data structures and fundamental functions for fluid properties | |
| Medium models for air | |
| Compressible liquid models | |
| Data and models of ideal gases (single, fixed and dynamic mixtures) from NASA source | |
| Medium model for T-dependent properties, defined by tables or polynomials | |
| R134a: Medium model for R134a | |
| Medium models for water |
Revisions
- February 01, 2017 by Thomas Beutlich:
Fixed data errors of the NASA Glenn coefficients in some ideal gases (CH2, CH3, CH3OOH, C2CL2, C2CL4, C2CL6, C2HCL, C2HCL3, CH2CO_ketene, O_CH_2O, HO_CO_2OH, CH2BrminusCOOH, C2H3CL, CH2CLminusCOOH, HO2, HO2minus, OD, ODminus), see #1922 - May 16, 2013 by Stefan Wischhusen (XRG Simulation):
Added new media models Air.ReferenceMoistAir, Air.ReferenceAir, R134a. - May 25, 2011 by Francesco Casella:
Added min/max attributes to Water, TableBased, MixtureGasNasa, SimpleAir and MoistAir local types. - May 25, 2011 by Stefan Wischhusen:
Added individual settings for polynomial fittings of properties.