Cantera  2.1.2
WaterTransport.h
Go to the documentation of this file.
1 /**
2  * @file WaterTransport.h Header file defining class WaterTransport
3  */
4 #ifndef CT_WATERTRAN_H
5 #define CT_WATERTRAN_H
6 
7 #include "TransportBase.h"
11 
12 namespace Cantera
13 {
14 //! @{
15 const int LVISC_CONSTANT = 0;
16 const int LVISC_WILKES = 1;
17 const int LVISC_MIXTUREAVG = 2;
18 
19 const int LDIFF_MIXDIFF_UNCORRECTED = 0;
20 const int LDIFF_MIXDIFF_FLUXCORRECTED = 1;
21 const int LDIFF_MULTICOMP_STEFANMAXWELL = 2;
22 //! @}
23 
24 
25 class TransportParams;
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  *
39  * @param ndim Number of dimensions of the flux expressions.
40  * Defaults to a value of one.
41  */
42  WaterTransport(thermo_t* thermo = 0, int ndim = 1);
43 
44  WaterTransport(const WaterTransport& right);
45  WaterTransport& operator=(const WaterTransport& right);
46  virtual Transport* duplMyselfAsTransport() const;
47 
48  virtual int model() const {
49  return cWaterTransport;
50  }
51 
52  //! Returns the viscosity of water at the current conditions
53  //! (kg/m/s)
54  /*!
55  * This function calculates the value of the viscosity of pure
56  * water at the current T and P.
57  *
58  * The formulas used are from the paper
59  *
60  * J. V. Sengers, J. T. R. Watson, "Improved International
61  * Formulations for the Viscosity and Thermal Conductivity of
62  * Water Substance", J. Phys. Chem. Ref. Data, 15, 1291 (1986).
63  *
64  * The formulation is accurate for all temperatures and pressures,
65  * for steam and for water, even near the critical point.
66  * Pressures above 500 MPa and temperature above 900 C are suspect.
67  */
68  virtual doublereal viscosity();
69 
70  virtual doublereal bulkViscosity() {
71  return 0.0;
72  }
73 
74  //! Returns the thermal conductivity of water at the current conditions
75  //! (W/m/K)
76  /*!
77  * This function calculates the value of the thermal conductivity of
78  * water at the current T and P.
79  *
80  * The formulas used are from the paper
81  * J. V. Sengers, J. T. R. Watson, "Improved International
82  * Formulations for the Viscosity and Thermal Conductivity of
83  * Water Substance", J. Phys. Chem. Ref. Data, 15, 1291 (1986).
84  *
85  * The formulation is accurate for all temperatures and pressures,
86  * for steam and for water, even near the critical point.
87  * Pressures above 500 MPa and temperature above 900 C are suspect.
88  */
89  virtual doublereal thermalConductivity();
90 
91 private:
92 
93  //! Routine to do some common initializations at the start of using
94  //! this routine.
95  void initTP();
96 
97  //! Pointer to the WaterPropsIAPWS object, which does the actual calculations
98  //! for the real equation of state
99  /*!
100  * This object owns m_sub
101  */
103 
104  //! Pointer to the WaterProps object
105  /*!
106  * This class is used to house several approximation
107  * routines for properties of water.
108  *
109  * This object owns m_waterProps, and the WaterPropsIAPWS object used by
110  * WaterProps is m_sub, which is defined above.
111  */
113 
114  //! Pressure dependent standard state object for water
115  /*!
116  * We assume that species 0 is water, with a PDSS_Water object.
117  */
119 };
120 }
121 #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.
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
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
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:101
Header file defining class LiquidTransportParams.
virtual int model() const
Transport model.
virtual Transport * duplMyselfAsTransport() const
Duplication routine for objects which inherit from Transport.
The WaterProps class is used to house several approximation routines for properties of water...
Definition: WaterProps.h:96
Class for the liquid water pressure dependent standard state.
Definition: PDSS_Water.h:54
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.
Headers for the DenseMatrix object, which deals with dense rectangular matrices and description of th...
WaterProps * m_waterProps
Pointer to the WaterProps object.
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...