Cantera
2.0
|
Calculation of Collision integrals. More...
#include <MMCollisionInt.h>
Public Member Functions | |
MMCollisionInt () | |
Default Constructor. | |
virtual | ~MMCollisionInt () |
Destructor. | |
void | init (XML_Writer *xml, doublereal tsmin, doublereal tsmax, int loglevel=0) |
Initialize the object for calculation. | |
doublereal | omega22 (double ts, double deltastar) |
omega22 | |
doublereal | astar (double ts, double deltastar) |
astar | |
doublereal | bstar (double ts, double deltastar) |
bstar | |
doublereal | cstar (double ts, double deltastar) |
cstar | |
void | fit (std::ostream &logfile, int degree, doublereal deltastar, doublereal *astar, doublereal *bstar, doublereal *cstar) |
fit | |
void | fit_omega22 (std::ostream &logfile, int degree, doublereal deltastar, doublereal *om22) |
fit_omega22 | |
doublereal | omega11 (double ts, double deltastar) |
omega11 | |
Private Member Functions | |
doublereal | fitDelta (int table, int ntstar, int degree, doublereal *c) |
Fit delta. | |
Private Attributes | |
std::vector< vector_fp > | m_o22poly |
m_o22poly | |
std::vector< vector_fp > | m_apoly |
m_apoly | |
std::vector< vector_fp > | m_bpoly |
m_bpoly | |
std::vector< vector_fp > | m_cpoly |
m_cpoly | |
vector_fp | m_logTemp |
Log temp. | |
int | m_nmin |
nmin | |
int | m_nmax |
nmax | |
XML_Writer * | m_xml |
XML_Writer pointer. | |
int | m_loglevel |
loglevel | |
Static Private Attributes | |
static doublereal | delta [8] |
delta | |
static doublereal | tstar22 [37] |
tstar22 | |
static doublereal | omega22_table [37 *8] |
Table of omega22 values from MM. | |
static doublereal | tstar [39] |
tstar | |
static doublereal | astar_table [39 *8] |
astar table from MM | |
static doublereal | bstar_table [39 *8] |
bstar table from MM | |
static doublereal | cstar_table [39 *8] |
cstar table from MM | |
Calculation of Collision integrals.
This class provides functions that interpolate the tabulated collision integrals in Monchick and Mason, "Transport Properties of Polar Gases," J. Chem. Phys. (1961)
Definition at line 53 of file MMCollisionInt.h.
MMCollisionInt | ( | ) |
Default Constructor.
Definition at line 230 of file MMCollisionInt.cpp.
|
virtual |
Destructor.
Definition at line 234 of file MMCollisionInt.cpp.
void init | ( | XML_Writer * | xml, |
doublereal | tsmin, | ||
doublereal | tsmax, | ||
int | loglevel = 0 |
||
) |
Initialize the object for calculation.
xml | Pointer to the log file that will receive the debug output messages |
tsmin | Minimum value of Tstar to carry out the fitting |
tsmax | Maximum value of Tstar to carry out the fitting |
loglevel | Set the loglevel for the object. The default loglevel is zero, indicating no output. |
Definition at line 248 of file MMCollisionInt.cpp.
References DATA_PTR.
Referenced by TransportFactory::setupMM().
doublereal omega22 | ( | double | ts, |
double | deltastar | ||
) |
omega22
ts | |
deltastar |
Definition at line 406 of file MMCollisionInt.cpp.
References DATA_PTR, and Cantera::poly5().
Referenced by TransportFactory::fitProperties(), TransportFactory::getBinDiffCorrection(), and MMCollisionInt::omega11().
doublereal astar | ( | double | ts, |
double | deltastar | ||
) |
astar
ts | |
deltastar |
Definition at line 435 of file MMCollisionInt.cpp.
References DATA_PTR, and Cantera::poly5().
Referenced by TransportFactory::getBinDiffCorrection(), and MMCollisionInt::omega11().
doublereal bstar | ( | double | ts, |
double | deltastar | ||
) |
bstar
ts | |
deltastar |
Definition at line 465 of file MMCollisionInt.cpp.
References DATA_PTR, and Cantera::poly5().
Referenced by TransportFactory::getBinDiffCorrection().
doublereal cstar | ( | double | ts, |
double | deltastar | ||
) |
cstar
ts | |
deltastar |
Definition at line 494 of file MMCollisionInt.cpp.
References DATA_PTR, and Cantera::poly5().
Referenced by TransportFactory::getBinDiffCorrection().
void fit | ( | std::ostream & | logfile, |
int | degree, | ||
doublereal | deltastar, | ||
doublereal * | astar, | ||
doublereal * | bstar, | ||
doublereal * | cstar | ||
) |
fit
logfile | |
degree | |
deltastar | |
astar | |
bstar | |
cstar |
Definition at line 554 of file MMCollisionInt.cpp.
References DATA_PTR, Cantera::poly5(), and Cantera::polyfit().
Referenced by TransportFactory::fitCollisionIntegrals().
void fit_omega22 | ( | std::ostream & | logfile, |
int | degree, | ||
doublereal | deltastar, | ||
doublereal * | om22 | ||
) |
fit_omega22
logfile | |
degree | |
deltastar | |
om22 |
Definition at line 524 of file MMCollisionInt.cpp.
References DATA_PTR, Cantera::poly5(), and Cantera::polyfit().
Referenced by TransportFactory::fitCollisionIntegrals().
|
inline |
omega11
ts | |
deltastar |
Definition at line 131 of file MMCollisionInt.h.
References MMCollisionInt::astar(), and MMCollisionInt::omega22().
Referenced by TransportFactory::fitProperties(), and TransportFactory::getBinDiffCorrection().
|
private |
Fit delta.
table | |
ntstar | |
degree | |
c | C is probable the output vector |
Definition at line 380 of file MMCollisionInt.cpp.
References DATA_PTR, and Cantera::polyfit().
|
private |
m_o22poly
Definition at line 149 of file MMCollisionInt.h.
|
private |
m_apoly
Definition at line 152 of file MMCollisionInt.h.
|
private |
m_bpoly
Definition at line 154 of file MMCollisionInt.h.
|
private |
m_cpoly
Definition at line 157 of file MMCollisionInt.h.
|
staticprivate |
delta
Definition at line 160 of file MMCollisionInt.h.
|
staticprivate |
tstar22
Definition at line 163 of file MMCollisionInt.h.
|
staticprivate |
Table of omega22 values from MM.
Definition at line 166 of file MMCollisionInt.h.
|
staticprivate |
|
staticprivate |
astar table from MM
Definition at line 175 of file MMCollisionInt.h.
|
staticprivate |
bstar table from MM
Definition at line 178 of file MMCollisionInt.h.
|
staticprivate |
cstar table from MM
Definition at line 181 of file MMCollisionInt.h.
|
private |
Log temp.
Definition at line 184 of file MMCollisionInt.h.
|
private |
nmin
Definition at line 187 of file MMCollisionInt.h.
|
private |
nmax
Definition at line 190 of file MMCollisionInt.h.
|
private |
XML_Writer pointer.
Definition at line 193 of file MMCollisionInt.h.
|
private |
loglevel
Definition at line 196 of file MMCollisionInt.h.