Cantera  2.5.1
WaterTransport.h
Go to the documentation of this file.
1 /**
2  * @file WaterTransport.h Header file defining class WaterTransport
3  */
4 
5 // This file is part of Cantera. See License.txt in the top-level directory or
6 // at https://cantera.org/license.txt for license and copyright information.
7 
8 #ifndef CT_WATERTRAN_H
9 #define CT_WATERTRAN_H
10 
13 
14 namespace Cantera
15 {
16 
17 //! Transport Parameters for pure water
18 //! @ingroup tranprops
19 class WaterTransport : public Transport
20 {
21 public:
22  //! default constructor
23  /*!
24  * @param thermo ThermoPhase object that represents the phase.
25  * Defaults to zero
26  * @param ndim Number of dimensions of the flux expressions.
27  * Defaults to a value of one.
28  */
29  WaterTransport(thermo_t* thermo = 0, int ndim = 1);
30 
31  virtual std::string transportType() const {
32  return "Water";
33  }
34 
35  //! Returns the viscosity of water at the current conditions (kg/m/s)
36  /*!
37  * This function calculates the value of the viscosity of pure water at the
38  * current T and P.
39  *
40  * The formulas used are from the paper: J. V. Sengers, J. T. R. Watson,
41  * "Improved International Formulations for the Viscosity and Thermal
42  * Conductivity of Water Substance", J. Phys. Chem. Ref. Data, 15, 1291
43  * (1986).
44  *
45  * The formulation is accurate for all temperatures and pressures, for steam
46  * and for water, even near the critical point. Pressures above 500 MPa and
47  * temperature above 900 C are suspect.
48  */
49  virtual doublereal viscosity();
50 
51  virtual doublereal bulkViscosity() {
52  return 0.0;
53  }
54 
55  //! Returns the thermal conductivity of water at the current conditions
56  //! (W/m/K)
57  /*!
58  * This function calculates the value of the thermal conductivity of water
59  * at the current T and P.
60  *
61  * The formulas used are from the paper: J. V. Sengers, J. T. R. Watson,
62  * "Improved International Formulations for the Viscosity and Thermal
63  * Conductivity of Water Substance", J. Phys. Chem. Ref. Data, 15, 1291
64  * (1986).
65  *
66  * The formulation is accurate for all temperatures and pressures, for steam
67  * and for water, even near the critical point. Pressures above 500 MPa and
68  * temperature above 900 C are suspect.
69  */
70  virtual doublereal thermalConductivity();
71 
72  virtual void init(thermo_t* thermo, int mode=0, int log_level=0);
73 };
74 }
75 #endif
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
Headers for a class for calculating the equation of state of water from the IAPWS 1995 Formulation ba...
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:102
Base class for transport property managers.
thermo_t & thermo()
Transport Parameters for pure water.
virtual doublereal bulkViscosity()
The bulk viscosity in Pa-s.
virtual void init(thermo_t *thermo, int mode=0, int log_level=0)
Initialize a transport manager.
virtual doublereal viscosity()
Returns the viscosity of water at the current conditions (kg/m/s)
virtual std::string transportType() const
Identifies the Transport object type.
virtual doublereal thermalConductivity()
Returns the thermal conductivity of water at the current conditions (W/m/K)
WaterTransport(thermo_t *thermo=0, int ndim=1)
default constructor
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:264