mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-17 16:35:17 -05:00
[thermo] Add convenience class for liquid-water-IAPWS95
This commit is contained in:
committed by
Ray Speth
parent
7f9a5897a1
commit
2c5eae019b
@@ -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]
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user