Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
9 
10 namespace Cantera
11 {
12 //! @{
13 const int LVISC_CONSTANT = 0;
14 const int LVISC_WILKES = 1;
15 const int LVISC_MIXTUREAVG = 2;
16 
17 const int LDIFF_MIXDIFF_UNCORRECTED = 0;
18 const int LDIFF_MIXDIFF_FLUXCORRECTED = 1;
19 const int LDIFF_MULTICOMP_STEFANMAXWELL = 2;
20 //! @}
21 
22 
23 class WaterProps;
24 class PDSS_Water;
25 
26 //! Transport Parameters for pure water
27 //! @ingroup tranprops
28 class WaterTransport : public Transport
29 {
30 public:
31  //! default constructor
32  /*!
33  * @param thermo ThermoPhase object that represents the phase.
34  * Defaults to zero
35  *
36  * @param ndim Number of dimensions of the flux expressions.
37  * Defaults to a value of one.
38  */
39  WaterTransport(thermo_t* thermo = 0, int ndim = 1);
40 
41  WaterTransport(const WaterTransport& right);
42  WaterTransport& operator=(const WaterTransport& right);
43  virtual Transport* duplMyselfAsTransport() const;
44 
45  virtual int model() const {
46  return cWaterTransport;
47  }
48 
49  //! Returns the viscosity of water at the current conditions
50  //! (kg/m/s)
51  /*!
52  * This function calculates the value of the viscosity of pure
53  * water at the current T and P.
54  *
55  * The formulas used are from the paper
56  *
57  * J. V. Sengers, J. T. R. Watson, "Improved International
58  * Formulations for the Viscosity and Thermal Conductivity of
59  * Water Substance", J. Phys. Chem. Ref. Data, 15, 1291 (1986).
60  *
61  * The formulation is accurate for all temperatures and pressures,
62  * for steam and for water, even near the critical point.
63  * Pressures above 500 MPa and temperature above 900 C are suspect.
64  */
65  virtual doublereal viscosity();
66 
67  virtual doublereal bulkViscosity() {
68  return 0.0;
69  }
70 
71  //! Returns the thermal conductivity of water at the current conditions
72  //! (W/m/K)
73  /*!
74  * This function calculates the value of the thermal conductivity of
75  * water at the current T and P.
76  *
77  * The formulas used are from the paper
78  * J. V. Sengers, J. T. R. Watson, "Improved International
79  * Formulations for the Viscosity and Thermal Conductivity of
80  * Water Substance", J. Phys. Chem. Ref. Data, 15, 1291 (1986).
81  *
82  * The formulation is accurate for all temperatures and pressures,
83  * for steam and for water, even near the critical point.
84  * Pressures above 500 MPa and temperature above 900 C are suspect.
85  */
86  virtual doublereal thermalConductivity();
87 
88 private:
89 
90  //! Routine to do some common initializations at the start of using
91  //! this routine.
92  void initTP();
93 
94  //! Pointer to the WaterPropsIAPWS object, which does the actual calculations
95  //! for the real equation of state
96  /*!
97  * This object owns m_sub
98  */
100 
101  //! Pointer to the WaterProps object
102  /*!
103  * This class is used to house several approximation
104  * routines for properties of water.
105  *
106  * This object owns m_waterProps, and the WaterPropsIAPWS object used by
107  * WaterProps is m_sub, which is defined above.
108  */
110 
111  //! Pressure dependent standard state object for water
112  /*!
113  * We assume that species 0 is water, with a PDSS_Water object.
114  */
116 };
117 }
118 #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
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:97
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:51
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.
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...