IdealGasMoleReactor.h Source File#
IdealGasMoleReactor.h
Go to the documentation of this file.
IdealGasMoleReactor is a class for ideal gas constant-volume reactors which use a state of moles.
Definition IdealGasMoleReactor.h:21
void setThermoMgr(ThermoPhase &thermo) override
Specify the mixture contained in the reactor.
Definition IdealGasMoleReactor.cpp:20
bool preconditionerSupported() const override
Return a false if preconditioning is not supported or true otherwise.
Definition IdealGasMoleReactor.h:50
void eval(double t, double *LHS, double *RHS) override
Evaluate the reactor governing equations.
Definition IdealGasMoleReactor.cpp:96
string type() const override
String indicating the reactor model implemented.
Definition IdealGasMoleReactor.h:25
size_t componentIndex(const string &nm) const override
Return the index in the solution vector for this reactor of the component named nm.
Definition IdealGasMoleReactor.cpp:53
Eigen::SparseMatrix< double > jacobian() override
Calculate an approximate Jacobian to accelerate preconditioned solvers.
Definition IdealGasMoleReactor.cpp:156
void getState(double *y) override
Get the the current state of the reactor.
Definition IdealGasMoleReactor.cpp:29
string componentName(size_t k) override
Return the name of the solution component with index i.
Definition IdealGasMoleReactor.cpp:67
void updateState(double *y) override
Set the state of the reactor to correspond to the state vector y.
Definition IdealGasMoleReactor.cpp:82
MoleReactor is meant to serve the same purpose as the reactor class but with a state vector composed ...
Definition MoleReactor.h:21
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Generated by