Cantera  2.1.2
TransportParams.cpp
Go to the documentation of this file.
1 /**
2  * @file TransportParams.cpp
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 
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(const 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 TransportParams::~TransportParams()
39 {
40 #ifdef DEBUG_MODE
41  delete xml;
42 #endif
43 }
44 
45 GasTransportParams::GasTransportParams() :
46  TransportParams(),
47  visccoeffs(0),
48  condcoeffs(0),
49  diffcoeffs(0),
50  poly(0),
51  omega22_poly(0),
52  astar_poly(0),
53  bstar_poly(0),
54  cstar_poly(0),
55  zrot(0),
56  crot(0),
57  polar(0),
58  alpha(0),
59  fitlist(0),
60  eps(0),
61  sigma(0),
62  reducedMass(0, 0),
63  diam(0, 0),
64  epsilon(0, 0),
65  dipole(0, 0),
66  delta(0, 0)
67 {
68 }
69 
70 } // End of namespace Cantera
Base class for exceptions thrown by Cantera classes.
Definition: ctexceptions.h:68
const VelocityBasis VB_MASSAVG
Diffusion velocities are based on the mass averaged velocity.
Definition: TransportBase.h:91
XML_Writer * xml
Pointer to the xml tree describing the implementation of transport for this object.
Class that holds the data that is read in from the xml file, and which is used for processing of the ...