hips
Loading...
Searching...
No Matches
batchReactor.h
Go to the documentation of this file.
1#pragma once
2
3#include "cantera/base/Solution.h"
4#include "cantera/thermo.h"
5#include "cantera/kinetics.h"
6#include "integrator_cvode.h"
7
8#include <memory>
9#include <vector>
10
12
14
16
17protected:
18
19 std::shared_ptr<Cantera::ThermoPhase> gas;
20 std::shared_ptr<Cantera::Kinetics> kin;
21
22 int nvar;
23
24 double h_fixed;
25 double P_fixed;
26
27public:
28 double temperature;
29 double rho;
30
32
33public:
34
36
37 virtual void react(double &h, std::vector<double> &y, const double tRun) = 0;
38 double getDensity() const { return rho; }
39
40};
int nvar
number of variables/equations solved
double rho
density during integrate
std::shared_ptr< Cantera::Kinetics > kin
Cantera kinetics object.
double P_fixed
pressure during integrate
std::shared_ptr< Cantera::ThermoPhase > gas
Cantera thermo object.
double h_fixed
adiabatic h during integrate
double getDensity() const
double temperature
temperature during integrate
virtual void react(double &h, std::vector< double > &y, const double tRun)=0