Cantera 2.6.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 https://cantera.org/license.txt for license and copyright information.
7
8#ifndef CT_WATERTRAN_H
9#define CT_WATERTRAN_H
10
11#include "cantera/thermo/WaterPropsIAPWS.h"
12#include "cantera/transport/TransportBase.h"
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(ThermoPhase* 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(ThermoPhase* thermo, int mode=0, int log_level=0);
73};
74}
75#endif
TransportBase.h
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
WaterPropsIAPWS.h
Headers for a class for calculating the equation of state of water from the IAPWS 1995 Formulation ba...
Cantera::ThermoPhase
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:102
Cantera::Transport
Base class for transport property managers.
Definition: TransportBase.h:138
Cantera::Transport::thermo
ThermoPhase & thermo()
Definition: TransportBase.h:170
Cantera::WaterTransport
Transport Parameters for pure water.
Definition: WaterTransport.h:20
Cantera::WaterTransport::bulkViscosity
virtual doublereal bulkViscosity()
The bulk viscosity in Pa-s.
Definition: WaterTransport.h:51
Cantera::WaterTransport::viscosity
virtual doublereal viscosity()
Returns the viscosity of water at the current conditions (kg/m/s)
Definition: WaterTransport.cpp:48
Cantera::WaterTransport::init
virtual void init(ThermoPhase *thermo, int mode=0, int log_level=0)
Initialize a transport manager.
Definition: WaterTransport.cpp:43
Cantera::WaterTransport::transportType
virtual std::string transportType() const
Identifies the Transport object type.
Definition: WaterTransport.h:31
Cantera::WaterTransport::thermalConductivity
virtual doublereal thermalConductivity()
Returns the thermal conductivity of water at the current conditions (W/m/K)
Definition: WaterTransport.cpp:96
Cantera::WaterTransport::WaterTransport
WaterTransport(ThermoPhase *thermo=0, int ndim=1)
default constructor
Definition: WaterTransport.cpp:35
Cantera
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:557