hips
Loading...
Searching...
No Matches
batchReactor_cantera Class Reference

Detailed Description

Definition at line 14 of file batchReactor_cantera.h.

#include <batchReactor_cantera.h>

Public Member Functions

 batchReactor_cantera (std::shared_ptr< Cantera::Solution > cantSol)
 Constructor for batchReactor_cantera.
 
virtual void react (double &h, std::vector< double > &y, const double tRun)
 Simulates a reaction in the batch reactor.
 
void eval (double t, double *vars, double *dvarsdt, double *not_used)
 Evaluates the reaction rates.
 
size_t neq () const
 
void getState (double *y)
 
virtual ~batchReactor_cantera ()
 
- Public Member Functions inherited from batchReactor
 batchReactor ()
 
double getDensity () const
 

Private Attributes

std::unique_ptr< Cantera::Integrator > integrator
 Cantera cvode wrapper.
 

Additional Inherited Members

- Public Attributes inherited from batchReactor
double temperature
 temperature during integrate
 
double rho
 density during integrate
 
- Protected Attributes inherited from batchReactor
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
 

Constructor & Destructor Documentation

◆ 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
cantSolA shared pointer to a Cantera solution object.

Definition at line 12 of file batchReactor_cantera.cc.

◆ ~batchReactor_cantera()

virtual batchReactor_cantera::~batchReactor_cantera ( )
inlinevirtual

Definition at line 36 of file batchReactor_cantera.h.

Member Function Documentation

◆ react()

void batchReactor_cantera::react ( double & h,
std::vector< double > & y,
const double tRun )
virtual

Simulates a reaction in the batch reactor.

Parameters
hHeat of the reactor.
yVector of species mass fractions.
tRunTime 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
tTime.
varsVariables.
dvarsdtDerivatives of variables with respect to time.
not_usedUnused parameter.

Definition at line 65 of file batchReactor_cantera.cc.

◆ neq()

size_t batchReactor_cantera::neq ( ) const
inline

Definition at line 30 of file batchReactor_cantera.h.

◆ getState()

void batchReactor_cantera::getState ( double * y)
inline

Definition at line 32 of file batchReactor_cantera.h.

Member Data Documentation

◆ integrator

std::unique_ptr<Cantera::Integrator> batchReactor_cantera::integrator
private

Cantera cvode wrapper.

Definition at line 18 of file batchReactor_cantera.h.


The documentation for this class was generated from the following files: