[thermo] Add convenience class for liquid-water-IAPWS95

This commit is contained in:
Ingmar Schoegl
2021-01-29 13:39:28 -05:00
committed by Ray Speth
parent 7f9a5897a1
commit 2c5eae019b
2 changed files with 25 additions and 0 deletions
+12
View File
@@ -25,6 +25,18 @@ phases:
T: 300.0
P: 1.01325e+05
pure-fluid-name: water
- name: liquid-water
elements: [O, H]
species: [H2O]
thermo: liquid-water-IAPWS95
transport: water
state:
T: 300.0
P: 1.01325e+05
note: |-
Phase definition based on "The IAPWS Formulation 1995 for the
Thermodynamic Properties of Ordinary Water Substance for General and
Scientific Use," J. Phys. Chem. Ref. Dat, 31, 387, 2002.
- name: nitrogen
thermo: pure-fluid
elements: [N]
+13
View File
@@ -15,6 +15,19 @@ def Water():
return WaterWithTransport('liquidvapor.yaml', 'water', transport_model='Water')
def LiquidWater():
"""
Create a `PureFluid` object using the IAPWS Formulation 1995 for
thermodynamic properties and the `WaterTransport` class for viscosity
and thermal conductivity.
"""
class WaterWithTransport(PureFluid, _cantera.Transport):
__slots__ = ()
return WaterWithTransport('liquidvapor.yaml', 'liquid-water',
transport_model='Water')
def Nitrogen():
"""Create a `PureFluid` object using the equation of state for nitrogen."""
return PureFluid('liquidvapor.yaml', 'nitrogen')