| 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
11#include "cantera/thermo/WaterPropsIAPWS.h"
12#include "cantera/transport/Transport.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 * @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
Transport.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:390
Cantera::Transport
Base class for transport property managers.
Definition Transport.h:146
Cantera::Transport::thermo
ThermoPhase & thermo()
Phase object.
Definition Transport.h:192
Cantera::WaterTransport
Transport Parameters for pure water.
Definition WaterTransport.h:20
Cantera::WaterTransport::thermalConductivity
double thermalConductivity() override
Returns the thermal conductivity of water at the current conditions (W/m/K)
Definition WaterTransport.cpp:94
Cantera::WaterTransport::bulkViscosity
double bulkViscosity() override
The bulk viscosity in Pa-s.
Definition WaterTransport.h:51
Cantera::WaterTransport::viscosity
double viscosity() override
Returns the viscosity of water at the current conditions (kg/m/s)
Definition WaterTransport.cpp:46
Cantera::WaterTransport::transportModel
string transportModel() const override
Identifies the model represented by this Transport object.
Definition WaterTransport.h:34
Cantera::WaterTransport::init
void init(ThermoPhase *thermo, int mode=0, int log_level=0) override
Initialize a transport manager.
Definition WaterTransport.cpp:41
Cantera
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564