Cantera
2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
transport
TransportParams.cpp
1
/**
2
* @file TransportParams.h
3
* Class that holds the data that is read in from the xml file, and which is used for
4
* processing of the transport object
5
* (see \ref tranprops and \link Cantera::TransportParams TransportParams \endlink).
6
*/
7
8
#include "
cantera/transport/TransportParams.h
"
9
10
#ifdef DEBUG_MODE
11
#include "cantera/base/XML_Writer.h"
12
#endif
13
using namespace
std;
14
15
namespace
Cantera
16
{
17
//====================================================================================================================
18
NotImplemented::NotImplemented(std::string method) :
19
CanteraError
(
"Transport"
,
20
"\n\n**** Method "
+ method +
" not implemented. ****\n"
21
"(Did you forget to specify a transport model?)\n\n"
)
22
{
23
}
24
//====================================================================================================================
25
TransportParams::TransportParams
() :
26
nsp_(0),
27
thermo(0),
28
mw(0),
29
velocityBasis_(
VB_MASSAVG
),
30
tmax(1000000.),
31
tmin(10.),
32
mode_(0),
33
xml(0),
34
log_level(-1)
35
{
36
}
37
//====================================================================================================================
38
// Destructor
39
TransportParams::~TransportParams
()
40
{
41
#ifdef DEBUG_MODE
42
delete
xml
;
43
#endif
44
}
45
//====================================================================================================================
46
// Constructor
47
GasTransportParams::GasTransportParams
() :
48
TransportParams
(),
49
visccoeffs(0),
50
condcoeffs(0),
51
diffcoeffs(0),
52
poly(0),
53
omega22_poly(0),
54
astar_poly(0),
55
bstar_poly(0),
56
cstar_poly(0),
57
zrot(0),
58
crot(0),
59
polar(0),
60
alpha(0),
61
fitlist(0),
62
eps
(0),
63
sigma(0),
64
reducedMass(0, 0),
65
diam(0, 0),
66
epsilon(0, 0),
67
dipole(0, 0),
68
delta(0, 0)
69
{
70
}
71
//====================================================================================================================
72
GasTransportParams:: ~GasTransportParams
()
73
{
74
}
75
76
77
//====================================================================================================================
78
}
// End of namespace Cantera
79
//======================================================================================================================
Generated by
1.8.2