4#include "cantera/base/Solution.h"
5#include "cantera/thermo.h"
6#include "cantera/kinetics.h"
7#include "cantera/numerics/Integrator.h"
26 virtual void react(
double &h, std::vector<double> &y,
const double tRun);
28 void eval(
double t,
double *vars,
double *dvarsdt,
double *not_used);
33 gas->getMassFractions(y);
batchReactor_cantera(std::shared_ptr< Cantera::Solution > cantSol)
Constructor for batchReactor_cantera.
std::unique_ptr< Cantera::Integrator > integrator
Cantera cvode wrapper.
virtual void react(double &h, std::vector< double > &y, const double tRun)
Simulates a reaction in the batch reactor.
virtual ~batchReactor_cantera()
void eval(double t, double *vars, double *dvarsdt, double *not_used)
Evaluates the reaction rates.
int nvar
number of variables/equations solved
std::shared_ptr< Cantera::ThermoPhase > gas
Cantera thermo object.