Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
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
WaterTransport
() =
default
;
24
25
string
transportModel
()
const override
{
26
return
"Water"
;
27
}
28
29
//! Returns the viscosity of water at the current conditions [Pa·s]
30
/*!
31
* This function calculates the value of the viscosity of pure water at the
32
* current T and P.
33
*
34
* The formulas used are from Sengers and Watson @cite sengers1986.
35
*
36
* The formulation is accurate for all temperatures and pressures, for steam
37
* and for water, even near the critical point. Pressures above 500 MPa and
38
* temperature above 900 C are suspect.
39
*/
40
double
viscosity
()
override
;
41
42
double
bulkViscosity
()
override
{
43
return
0.0;
44
}
45
46
//! Returns the thermal conductivity [W/m/K] of water at the current conditions
47
/*!
48
* This function calculates the value of the thermal conductivity of water
49
* at the current T and P.
50
*
51
* The formulas used are from Sengers and Watson @cite sengers1986.
52
*
53
* The formulation is accurate for all temperatures and pressures, for steam
54
* and for water, even near the critical point. Pressures above 500 MPa and
55
* temperature above 900 C are suspect.
56
*/
57
double
thermalConductivity
()
override
;
58
59
void
init
(shared_ptr<ThermoPhase>
thermo
,
int
mode=0)
override
;
60
};
61
}
62
#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::Transport::Transport
Transport()=default
Constructor.
Cantera::Transport::thermo
ThermoPhase & thermo()
Phase object.
Definition
Transport.h:111
Cantera::WaterTransport::thermalConductivity
double thermalConductivity() override
Returns the thermal conductivity [W/m/K] of water at the current conditions.
Definition
WaterTransport.cpp:87
Cantera::WaterTransport::WaterTransport
WaterTransport()=default
default constructor
Cantera::WaterTransport::bulkViscosity
double bulkViscosity() override
The bulk viscosity [Pa·s].
Definition
WaterTransport.h:42
Cantera::WaterTransport::viscosity
double viscosity() override
Returns the viscosity of water at the current conditions [Pa·s].
Definition
WaterTransport.cpp:39
Cantera::WaterTransport::transportModel
string transportModel() const override
Identifies the model represented by this Transport object.
Definition
WaterTransport.h:25
Cantera::WaterTransport::init
void init(shared_ptr< ThermoPhase > thermo, int mode=0) override
Initialize a transport manager.
Definition
WaterTransport.cpp:34
Cantera
Namespace for the Cantera kernel.
Definition
AnyMap.cpp:595
include
cantera
transport
WaterTransport.h
Generated by
1.17.0