85 throw CanteraError(
"Troe3::init()",
"T3 parameter is less than zero");
94 throw CanteraError(
"Troe3::init()",
"T1 parameter is less than zero");
110 virtual void updateTemp(doublereal T, doublereal* work)
const {
111 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
121 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
122 doublereal lpr,f1,lgf, cc, nn;
124 cc = -0.4 - 0.67 * (*work);
125 nn = 0.75 - 1.27 * (*work);
126 f1 = (lpr + cc)/ (nn - 0.14 * (lpr + cc));
127 lgf = (*work) / (1.0 + f1 * f1);
128 return pow(10.0, lgf);
227 throw CanteraError(
"Troe4::init()",
"T3 parameter is less than zero");
236 throw CanteraError(
"Troe4::init()",
"T1 parameter is less than zero");
253 virtual void updateTemp(doublereal T, doublereal* work)
const {
254 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
265 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
266 doublereal lpr,f1,lgf, cc, nn;
268 cc = -0.4 - 0.67 * (*work);
269 nn = 0.75 - 1.27 * (*work);
270 f1 = (lpr + cc)/ (nn - 0.14 * (lpr + cc));
271 lgf = (*work) / (1.0 + f1 * f1);
272 return pow(10.0, lgf);
353 "m_c parameter is less than zero: " +
fp2str(c[2]));
369 virtual void updateTemp(doublereal T, doublereal* work)
const {
370 *work =
m_a * exp(-
m_b / T);
372 *work += exp(- T/
m_c);
381 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
383 doublereal xx = 1.0/(1.0 + lpr*lpr);
384 doublereal ff = pow(*work , xx);
466 "m_c parameter is less than zero: " +
fp2str(c[2]));
470 "m_d parameter is less than zero: " +
fp2str(c[3]));
488 virtual void updateTemp(doublereal T, doublereal* work)
const {
489 *work =
m_a * exp(-
m_b / T);
491 *work += exp(- T/
m_c);
493 work[1] =
m_d * pow(T,
m_e);
501 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
503 doublereal xx = 1.0/(1.0 + lpr*lpr);
504 return pow(*work, xx) * work[1];
629 virtual void updateTemp(doublereal T, doublereal* work)
const {
632 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
634 work[2] = log10(Fcent);
642 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
644 doublereal x = (lpr - work[0])/work[1];
645 doublereal flog = work[2]/exp(x*x);
646 return pow(10.0, flog);