Cantera  2.4.0
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 http://www.cantera.org/license.txt for license and copyright information.
7 
8 #ifndef CT_WATERTRAN_H
9 #define CT_WATERTRAN_H
10 
11 #include "LiquidTransportParams.h"
13 
14 namespace Cantera
15 {
16 //! @{
17 const int LVISC_CONSTANT = 0;
18 const int LVISC_WILKES = 1;
19 const int LVISC_MIXTUREAVG = 2;
20 
21 const int LDIFF_MIXDIFF_UNCORRECTED = 0;
22 const int LDIFF_MIXDIFF_FLUXCORRECTED = 1;
23 const int LDIFF_MULTICOMP_STEFANMAXWELL = 2;
24 //! @}
25 
26 class WaterProps;
27 class PDSS_Water;
28 
29 //! Transport Parameters for pure water
30 //! @ingroup tranprops
31 class WaterTransport : public Transport
32 {
33 public:
34  //! default constructor
35  /*!
36  * @param thermo ThermoPhase object that represents the phase.
37  * Defaults to zero
38  * @param ndim Number of dimensions of the flux expressions.
39  * Defaults to a value of one.
40  */
41  WaterTransport(thermo_t* thermo = 0, int ndim = 1);
42 
43  virtual std::string transportType() const {
44  return "Water";
45  }
46 
47  //! Returns the viscosity of water at the current conditions (kg/m/s)
48  /*!
49  * This function calculates the value of the viscosity of pure water at the
50  * current T and P.
51  *
52  * The formulas used are from the paper: J. V. Sengers, J. T. R. Watson,
53  * "Improved International Formulations for the Viscosity and Thermal
54  * Conductivity of Water Substance", J. Phys. Chem. Ref. Data, 15, 1291
55  * (1986).
56  *
57  * The formulation is accurate for all temperatures and pressures, for steam
58  * and for water, even near the critical point. Pressures above 500 MPa and
59  * temperature above 900 C are suspect.
60  */
61  virtual doublereal viscosity();
62 
63  virtual doublereal bulkViscosity() {
64  return 0.0;
65  }
66 
67  //! Returns the thermal conductivity of water at the current conditions
68  //! (W/m/K)
69  /*!
70  * This function calculates the value of the thermal conductivity of water
71  * at the current T and P.
72  *
73  * The formulas used are from the paper: J. V. Sengers, J. T. R. Watson,
74  * "Improved International Formulations for the Viscosity and Thermal
75  * Conductivity of Water Substance", J. Phys. Chem. Ref. Data, 15, 1291
76  * (1986).
77  *
78  * The formulation is accurate for all temperatures and pressures, for steam
79  * and for water, even near the critical point. Pressures above 500 MPa and
80  * temperature above 900 C are suspect.
81  */
82  virtual doublereal thermalConductivity();
83 
84 private:
85  //! Routine to do some common initializations at the start of using
86  //! this routine.
87  void initTP();
88 
89  //! Pointer to the WaterPropsIAPWS object, which does the actual calculations
90  //! for the real equation of state
91  /*!
92  * This object owns m_sub
93  */
95 
96  //! Pointer to the WaterProps object
97  /*!
98  * This class is used to house several approximation routines for properties
99  * of water.
100  *
101  * This object owns m_waterProps, and the WaterPropsIAPWS object used by
102  * WaterProps is m_sub, which is defined above.
103  */
105 
106  //! Pressure dependent standard state object for water
107  /*!
108  * We assume that species 0 is water, with a PDSS_Water object.
109  */
111 };
112 }
113 #endif
virtual doublereal viscosity()
Returns the viscosity of water at the current conditions (kg/m/s)
Class for calculating the equation of state of water.
Base class for transport property managers.
Transport Parameters for pure water.
virtual doublereal bulkViscosity()
The bulk viscosity in Pa-s.
WaterTransport(thermo_t *thermo=0, int ndim=1)
default constructor
virtual std::string transportType() const
Identifies the Transport object type.
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:93
Header file defining class LiquidTransportParams.
The WaterProps class is used to house several approximation routines for properties of water...
Definition: WaterProps.h:94
Class for the liquid water pressure dependent standard state.
Definition: PDSS_Water.h:49
PDSS_Water * m_waterPDSS
Pressure dependent standard state object for water.
thermo_t & thermo()
WaterPropsIAPWS * m_sub
Pointer to the WaterPropsIAPWS object, which does the actual calculations for the real equation of st...
void initTP()
Routine to do some common initializations at the start of using this routine.
WaterProps * m_waterProps
Pointer to the WaterProps object.
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:8
virtual doublereal thermalConductivity()
Returns the thermal conductivity of water at the current conditions (W/m/K)
Headers for a class for calculating the equation of state of water from the IAPWS 1995 Formulation ba...