hips
Loading...
Searching...
No Matches
batchReactor_cvode.h
Go to the documentation of this file.
1#pragma once
2
3#include "batchReactor.h"
4#include "cantera/base/Solution.h"
5#include "cantera/thermo.h"
6#include "cantera/kinetics.h"
7#include "integrator_cvode.h"
8
9#include <memory>
10#include <vector>
11
13
15
17
18 std::shared_ptr<integrator_cvode> integrator;
19
21
22public:
23
24 batchReactor_cvode(std::shared_ptr<Cantera::Solution> cantSol);
25
26 virtual void react(double &h, std::vector<double> &y, const double tRun);
27
28 int rhsf(const double t, const double *vars, double *dvarsdt); // dydt = rhsf
29
31};
batchReactor_cvode(std::shared_ptr< Cantera::Solution > cantSol)
Constructor for the batchReactor_cvode class.
std::shared_ptr< integrator_cvode > integrator
cvode integrator wrapper
int rhsf(const double t, const double *vars, double *dvarsdt)
Computes the right-hand side of the ODE system.
virtual void react(double &h, std::vector< double > &y, const double tRun)
Simulates a reaction in the batch reactor.