Cantera  3.0.0
Loading...
Searching...
No Matches
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
14namespace Cantera
15{
16
17//! Transport Parameters for pure water
18//! @ingroup tranprops
20{
21public:
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 * @deprecated The `thermo` and `ndim` parameters will be removed after %Cantera 3.0.
30 * The ThermoPhase object should be specifed when calling the `init` method.
31 */
32 WaterTransport(ThermoPhase* thermo = 0, int ndim = -1);
33
34 string transportModel() const override {
35 return "Water";
36 }
37
38 //! Returns the viscosity of water at the current conditions (kg/m/s)
39 /*!
40 * This function calculates the value of the viscosity of pure water at the
41 * current T and P.
42 *
43 * The formulas used are from Sengers and Watson @cite sengers1986.
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 double viscosity() override;
50
51 double bulkViscosity() override {
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 Sengers and Watson @cite sengers1986.
62 *
63 * The formulation is accurate for all temperatures and pressures, for steam
64 * and for water, even near the critical point. Pressures above 500 MPa and
65 * temperature above 900 C are suspect.
66 */
67 double thermalConductivity() override;
68
69 void init(ThermoPhase* thermo, int mode=0, int log_level=0) override;
70};
71}
72#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.
Base class for transport property managers.
Definition Transport.h:146
ThermoPhase & thermo()
Phase object.
Definition Transport.h:192
Transport Parameters for pure water.
double thermalConductivity() override
Returns the thermal conductivity of water at the current conditions (W/m/K)
double bulkViscosity() override
The bulk viscosity in Pa-s.
double viscosity() override
Returns the viscosity of water at the current conditions (kg/m/s)
string transportModel() const override
Identifies the model represented by this Transport object.
void init(ThermoPhase *thermo, int mode=0, int log_level=0) override
Initialize a transport manager.
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564