forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SimpleAir.mo
35 lines (32 loc) · 1.24 KB
/
SimpleAir.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
within Modelica.Media.Air;
package SimpleAir "Air: Simple dry air model (0..100 degC)"
extends Modelica.Icons.MaterialProperty;
extends Interfaces.PartialSimpleIdealGasMedium(
mediumName="SimpleAir",
cp_const=1005.45,
MM_const=0.0289651159,
R_gas=Constants.R/0.0289651159,
eta_const=1.82e-5,
lambda_const=0.026,
T_min=Cv.from_degC(0),
T_max=Cv.from_degC(100),
fluidConstants=airConstants,
Temperature(min=Modelica.Units.Conversions.from_degC(0), max=
Modelica.Units.Conversions.from_degC(100)));
import Modelica.Constants;
constant Modelica.Media.Interfaces.Types.Basic.FluidConstants[nS]
airConstants={Modelica.Media.Interfaces.Types.Basic.FluidConstants(
iupacName="simple air",
casRegistryNumber="not a real substance",
chemicalFormula="N2, O2",
structureFormula="N2, O2",
molarMass=Modelica.Media.IdealGases.Common.SingleGasesData.N2.MM)}
"Constant data for the fluid";
annotation (Documentation(info="<html>
<h4>Simple Ideal gas air model for low temperatures</h4>
<p>
This model demonstrates how to use the PartialSimpleIdealGas base class to build a
simple ideal gas model with a limited temperature validity range.
</p>
</html>"));
end SimpleAir;