ConstPressureMoleReactor.h Source File#
ConstPressureMoleReactor.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
void eval(double t, double *LHS, double *RHS) override
Evaluate the reactor governing equations.
Definition ConstPressureMoleReactor.cpp:58
string type() const override
String indicating the reactor model implemented.
Definition ConstPressureMoleReactor.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 ConstPressureMoleReactor.cpp:110
void getState(double *y) override
Get the the current state of the reactor.
Definition ConstPressureMoleReactor.cpp:18
string componentName(size_t k) override
Return the name of the solution component with index i.
Definition ConstPressureMoleReactor.cpp:122
void updateState(double *y) override
Set the state of the reactor to correspond to the state vector y.
Definition ConstPressureMoleReactor.cpp:41
void initialize(double t0=0.0) override
Initialize the reactor.
Definition ConstPressureMoleReactor.cpp:35
MoleReactor is meant to serve the same purpose as the reactor class but with a state vector composed ...
Definition MoleReactor.h:21
Generated by