Cantera  2.1.2
GRI_30_Kinetics.h
Go to the documentation of this file.
1 /**
2  * @file GRI_30_Kinetics.h
3  *
4  * @ingroup chemkinetics
5  */
6 
7 // Copyright 2001 California Institute of Technology
8 
9 #ifndef CT_GRI30_KINETICS_H
10 #define CT_GRI30_KINETICS_H
11 
12 #include "GasKinetics.h"
13 
14 namespace Cantera
15 {
16 const int cGRI_30_Kinetics = cGasKinetics + 1;
17 
18 /**
19  * Kinetics manager implementing reaction mechanism GRI-Mech 3.0
20  * @deprecated
21  */
23 {
24 public:
25  /// Default constructor.
27 
28  virtual int type() const {
29  return cGRI_30_Kinetics;
30  }
31 
32  virtual void getNetProductionRates(doublereal* net) {
33  gri30_updateROP();
34  get_wdot(&m_ropnet[0], net);
35  }
36 
37 private:
38  void gri30_update_rates_T();
39  void gri30_updateROP();
40 
41  /**
42  * Update the equilibrium constants in molar units.
43  */
44  void gri30_updateKc();
45 
46  void get_wdot(const doublereal* rop, doublereal* wdot);
47  void update_kc(const doublereal* grt, doublereal c0, doublereal* rkc);
48  void update_rates(doublereal t, doublereal tlog, doublereal* rf);
49  void eval_ropnet(const doublereal* c, const doublereal* rf, const doublereal* rkc, doublereal* r);
50 };
51 }
52 
53 #endif
Kinetics manager implementing reaction mechanism GRI-Mech 3.0.
Kinetics manager for elementary gas-phase chemistry.
Definition: GasKinetics.h:35
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:101
virtual int type() const
Identifies the kinetics manager type.
virtual void getNetProductionRates(doublereal *net)
Species net production rates [kmol/m^3/s or kmol/m^2/s].
void gri30_updateKc()
Update the equilibrium constants in molar units.
GRI_30_Kinetics(thermo_t *th=0)
Default constructor.