IdealGasConstPressureMoleReactor.h Source File#
IdealGasConstPressureMoleReactor.h
Go to the documentation of this file.
ConstPressureMoleReactor is a class for constant-pressure reactors which use a state of moles.
Definition ConstPressureMoleReactor.h:21
IdealGasConstPressureMoleReactor is a class for ideal gas constant-pressure reactors which use a stat...
Definition IdealGasConstPressureMoleReactor.h:21
void setThermoMgr(ThermoPhase &thermo) override
Specify the mixture contained in the reactor.
Definition IdealGasConstPressureMoleReactor.cpp:20
bool preconditionerSupported() const override
Return a false if preconditioning is not supported or true otherwise.
Definition IdealGasConstPressureMoleReactor.h:50
void eval(double t, double *LHS, double *RHS) override
Evaluate the reactor governing equations.
Definition IdealGasConstPressureMoleReactor.cpp:65
string type() const override
String indicating the reactor model implemented.
Definition IdealGasConstPressureMoleReactor.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 IdealGasConstPressureMoleReactor.cpp:239
Eigen::SparseMatrix< double > jacobian() override
Calculate an approximate Jacobian to accelerate preconditioned solvers.
Definition IdealGasConstPressureMoleReactor.cpp:122
void getState(double *y) override
Get the the current state of the reactor.
Definition IdealGasConstPressureMoleReactor.cpp:29
string componentName(size_t k) override
Return the name of the solution component with index i.
Definition IdealGasConstPressureMoleReactor.cpp:251
void updateState(double *y) override
Set the state of the reactor to correspond to the state vector y.
Definition IdealGasConstPressureMoleReactor.cpp:52
void initialize(double t0=0.0) override
Initialize the reactor.
Definition IdealGasConstPressureMoleReactor.cpp:46
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Generated by 1.9.7