hips
|
Definition at line 14 of file batchReactor_cvode.h.
#include <batchReactor_cvode.h>
Public Member Functions | |
batchReactor_cvode (std::shared_ptr< Cantera::Solution > cantSol) | |
Constructor for the batchReactor_cvode class. | |
virtual void | react (double &h, std::vector< double > &y, const double tRun) |
Simulates a reaction in the batch reactor. | |
int | rhsf (const double t, const double *vars, double *dvarsdt) |
Computes the right-hand side of the ODE system. | |
virtual | ~batchReactor_cvode () |
![]() | |
batchReactor () | |
double | getDensity () const |
Private Attributes | |
std::shared_ptr< integrator_cvode > | integrator |
cvode integrator wrapper | |
Additional Inherited Members | |
![]() | |
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_cvode::batchReactor_cvode | ( | std::shared_ptr< Cantera::Solution > | cantSol | ) |
Constructor for the batchReactor_cvode class.
Initializes a batch reactor object using CVODE for simulations.
cantSol | A shared pointer to a Cantera solution object. |
Definition at line 26 of file batchReactor_cvode.cc.
|
inlinevirtual |
Definition at line 30 of file batchReactor_cvode.h.
|
virtual |
Simulates a reaction in the batch reactor.
h | Heat of the reactor. |
y | Vector of species mass fractions. |
tRun | Time for the simulation. |
Implements batchReactor.
Definition at line 50 of file batchReactor_cvode.cc.
int batchReactor_cvode::rhsf | ( | const double | t, |
const double * | vars, | ||
double * | dvarsdt ) |
Computes the right-hand side of the ODE system.
This function is used by CVODE to compute the derivatives of the variables with respect to time.
t | Current time. |
vars | Pointer to an array containing the variables (species concentrations). |
dvarsdt | Pointer to an array where the computed derivatives will be stored. |
Definition at line 72 of file batchReactor_cvode.cc.
|
private |
cvode integrator wrapper
Definition at line 18 of file batchReactor_cvode.h.