Cantera  3.1.0
Loading...
Searching...
No Matches
MMCollisionInt.h
Go to the documentation of this file.
1/**
2 * @file MMCollisionInt.h
3 * Monchick and Mason collision integrals
4 */
5
6// This file is part of Cantera. See License.txt in the top-level directory or
7// at https://cantera.org/license.txt for license and copyright information.
8
9#ifndef CT_MMCOLLISIONINT_H
10#define CT_MMCOLLISIONINT_H
11
13
14namespace Cantera
15{
16
17//! Calculation of Collision integrals
18/*!
19 * This class provides functions that interpolate the tabulated collision
20 * integrals in Monchick and Mason @cite monchick1961.
21 *
22 * @ingroup tranprops
23 */
25{
26public:
28 virtual ~MMCollisionInt() {}
29
30 //! Initialize the object for calculation
31 /*!
32 * @param tsmin Minimum value of Tstar to carry out the fitting
33 * @param tsmax Maximum value of Tstar to carry out the fitting
34 * @param loglevel Set the loglevel for the object. The default
35 * loglevel is zero, indicating no output.
36 * @deprecated The `log_level` parameter is deprecated and will be removed after
37 * %Cantera 3.1.
38 */
39 void init(double tsmin, double tsmax, int loglevel = -7);
40
41 double omega22(double ts, double deltastar);
42 double astar(double ts, double deltastar);
43 double bstar(double ts, double deltastar);
44 double cstar(double ts, double deltastar);
45 void fit(int degree, double deltastar, double* astar, double* bstar, double* cstar);
46 void fit_omega22(int degree, double deltastar, double* om22);
47 double omega11(double ts, double deltastar) {
48 return omega22(ts, deltastar)/astar(ts, deltastar);
49 }
50
51private:
52 double fitDelta(int table, int ntstar, int degree, double* c);
53
54 vector<vector<double>> m_o22poly;
55 vector<vector<double>> m_apoly;
56 vector<vector<double>> m_bpoly;
57 vector<vector<double>> m_cpoly;
58
59 static double delta[8];
60 static double tstar22[37];
61
62 //! Table of omega22 values from MM
63 static double omega22_table[37*8];
64
65 //! table of tstar values
66 static double tstar[39];
67
68 //! astar table from MM
69 static double astar_table[39*8];
70
71 //! bstar table from MM
72 static double bstar_table[39*8];
73
74 //! cstar table from MM
75 static double cstar_table[39*8];
76
77 //! Log temp
78 vector<double> m_logTemp;
79
80 int m_nmin;
81 int m_nmax;
82
83 //! loglevel
85};
86}
87#endif
Calculation of Collision integrals.
static double astar_table[39 *8]
astar table from MM
static double cstar_table[39 *8]
cstar table from MM
static double tstar[39]
table of tstar values
static double omega22_table[37 *8]
Table of omega22 values from MM.
static double bstar_table[39 *8]
bstar table from MM
vector< double > m_logTemp
Log temp.
void init(double tsmin, double tsmax, int loglevel=-7)
Initialize the object for calculation.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595