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.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).Name | Description |
---|---|
SimpleLiquidWater | Example for Water.SimpleLiquidWater medium model |
IdealGasH2O | IdealGas H20 medium model |
WaterIF97 | WaterIF97 medium model |
MixtureGases | Test gas mixtures |
MoistAir | Ideal gas flue gas model |
TwoPhaseWater | Extension of the StandardWater package |
ReferenceAir | Examples for detailed dry air and moist air medium models |
R134a | Examples for R134a |
TestOnly | Examples to show the testing of media |
Tests | Library to test that all media models simulate and fulfill the expected structural properties |
SolveOneNonlinearEquation | Demonstrate how to solve one non-linear algebraic equation in one unknown |
Name | Description |
---|---|
V | Volume [m3] |
H_flow_ext | Constant enthalpy flow rate into the volume [W] |
An example for using ideal gas properties and how to compute isentropic enthalpy changes. The function that is implemented is approximate, but usually very good: the second medium record medium2 is given to compare the approximation.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Name | Description |
---|---|
dV | Fixed time derivative of volume [m3/s] |
m_flow_ext | Fixed mass flow rate into volume [kg/s] |
H_flow_ext | Fixed enthalpy flow rate into volume [W] |
Name | Description |
---|---|
V | Fixed size of volume 1 and volume 2 [m3] |
m_flow_ext | Fixed mass flow rate in to volume 1 and in to volume 2 [kg/s] |
H_flow_ext | Fixed enthalpy flow rate in to volume and in to volume 2 [W] |
An example for using ideal gas properties and how to compute isentropic enthalpy changes. The function that is implemented is approximate, but usually very good: the second medium record medium2 is given to compare the approximation.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Name | Description |
---|---|
MMx[2] | Vector of molar masses (consisting of dry air and of steam) [kg/mol] |