Definition at line 14 of file batchReactor_cantera.h.
#include <batchReactor_cantera.h>
|
| std::unique_ptr< Cantera::Integrator > | integrator |
| | Cantera cvode wrapper.
|
| |
|
| double | temperature |
| | temperature during integrate
|
| |
| double | rho |
| | density during integrate
|
| |
| std::shared_ptr< Cantera::ThermoPhase > | gas |
| | Cantera thermo object.
|
| |
| std::shared_ptr< Cantera::Kinetics > | kin |
| | Cantera kinetics object.
|
| |
| int | nvar |
| | number of variables/equations solved
|
| |
| double | h_fixed |
| | adiabatic h during integrate
|
| |
| double | P_fixed |
| | pressure during integrate
|
| |
◆ batchReactor_cantera()
| batchReactor_cantera::batchReactor_cantera |
( |
std::shared_ptr< Cantera::Solution > | cantSol | ) |
|
Constructor for batchReactor_cantera.
Initializes a batch reactor object using Cantera solution for simulations.
- Parameters
-
| cantSol | A shared pointer to a Cantera solution object. |
Definition at line 12 of file batchReactor_cantera.cc.
◆ ~batchReactor_cantera()
| virtual batchReactor_cantera::~batchReactor_cantera |
( |
| ) |
|
|
inlinevirtual |
◆ react()
| void batchReactor_cantera::react |
( |
double & | h, |
|
|
std::vector< double > & | y, |
|
|
const double | tRun ) |
|
virtual |
Simulates a reaction in the batch reactor.
- Parameters
-
| h | Heat of the reactor. |
| y | Vector of species mass fractions. |
| tRun | Time for the simulation. |
Implements batchReactor.
Definition at line 35 of file batchReactor_cantera.cc.
◆ eval()
| void batchReactor_cantera::eval |
( |
double | t, |
|
|
double * | vars, |
|
|
double * | dvarsdt, |
|
|
double * | not_used ) |
Evaluates the reaction rates.
- Parameters
-
| t | Time. |
| vars | Variables. |
| dvarsdt | Derivatives of variables with respect to time. |
| not_used | Unused parameter. |
Definition at line 65 of file batchReactor_cantera.cc.
◆ neq()
| size_t batchReactor_cantera::neq |
( |
| ) |
const |
|
inline |
◆ getState()
| void batchReactor_cantera::getState |
( |
double * | y | ) |
|
|
inline |
◆ integrator
| std::unique_ptr<Cantera::Integrator> batchReactor_cantera::integrator |
|
private |
The documentation for this class was generated from the following files: