70 lines
1.3 KiB
C++
70 lines
1.3 KiB
C++
/**
|
|
* @file TransportParams.cpp
|
|
* Class that holds the data that is read in from the xml file, and which is used for
|
|
* processing of the transport object
|
|
* (see \ref tranprops and \link Cantera::TransportParams TransportParams \endlink).
|
|
*/
|
|
|
|
#include "cantera/transport/TransportParams.h"
|
|
|
|
#ifdef DEBUG_MODE
|
|
#include "cantera/base/XML_Writer.h"
|
|
#endif
|
|
using namespace std;
|
|
|
|
namespace Cantera
|
|
{
|
|
|
|
NotImplemented::NotImplemented(const std::string& method) :
|
|
CanteraError("Transport",
|
|
"\n\n**** Method " + method + " not implemented. ****\n"
|
|
"(Did you forget to specify a transport model?)\n\n")
|
|
{
|
|
}
|
|
|
|
TransportParams::TransportParams() :
|
|
nsp_(0),
|
|
thermo(0),
|
|
mw(0),
|
|
velocityBasis_(VB_MASSAVG),
|
|
tmax(1000000.),
|
|
tmin(10.),
|
|
mode_(0),
|
|
xml(0),
|
|
log_level(-1)
|
|
{
|
|
}
|
|
|
|
TransportParams::~TransportParams()
|
|
{
|
|
#ifdef DEBUG_MODE
|
|
delete xml;
|
|
#endif
|
|
}
|
|
|
|
GasTransportParams::GasTransportParams() :
|
|
TransportParams(),
|
|
visccoeffs(0),
|
|
condcoeffs(0),
|
|
diffcoeffs(0),
|
|
poly(0),
|
|
omega22_poly(0),
|
|
astar_poly(0),
|
|
bstar_poly(0),
|
|
cstar_poly(0),
|
|
zrot(0),
|
|
crot(0),
|
|
polar(0),
|
|
alpha(0),
|
|
fitlist(0),
|
|
eps(0),
|
|
sigma(0),
|
|
reducedMass(0, 0),
|
|
diam(0, 0),
|
|
epsilon(0, 0),
|
|
dipole(0, 0),
|
|
delta(0, 0)
|
|
{
|
|
}
|
|
|
|
} // End of namespace Cantera
|