MoleReactor.h Source File#
MoleReactor.h
Go to the documentation of this file.
MoleReactor is meant to serve the same purpose as the reactor class but with a state vector composed ...
Definition MoleReactor.h:21
void evalSurfaces(double *LHS, double *RHS, double *sdot) override
Evaluate terms related to surface reactions.
Definition MoleReactor.cpp:61
void getSurfaceInitialConditions(double *y) override
Get initial conditions for SurfPhase objects attached to this reactor.
Definition MoleReactor.cpp:21
void getMoles(double *y)
Get moles of the system from mass fractions stored by thermo object.
Definition MoleReactor.cpp:141
void eval(double t, double *LHS, double *RHS) override
Evaluate the reactor governing equations.
Definition MoleReactor.cpp:225
string type() const override
String indicating the reactor model implemented.
Definition MoleReactor.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 MoleReactor.cpp:284
void setMassFromMoles(double *y)
Set internal mass variable based on moles given.
Definition MoleReactor.cpp:151
virtual void addSurfaceJacobian(vector< Eigen::Triplet< double > > &triplets)
For each surface in the reactor, update vector of triplets with all relevant surface jacobian derivat...
Definition MoleReactor.cpp:85
void getState(double *y) override
Get the the current state of the reactor.
Definition MoleReactor.cpp:161
string componentName(size_t k) override
Return the name of the solution component with index i.
Definition MoleReactor.cpp:298
void updateState(double *y) override
Set the state of the reactor to correspond to the state vector y.
Definition MoleReactor.cpp:180
void updateSurfaceState(double *y) override
Update the state of SurfPhase objects attached to this reactor.
Definition MoleReactor.cpp:44
Class Reactor is a general-purpose class for stirred reactors.
Definition Reactor.h:44
Generated by 1.9.7