An abstract base class for providing access to protected capabilities Reactor objects from delegate methods, which would normally only be able to access public Reactor members. More...
#include <ReactorDelegator.h>
An abstract base class for providing access to protected capabilities Reactor objects from delegate methods, which would normally only be able to access public Reactor members.
Actual implementations of these methods are found in the templated ReactorDelegator class. The purpose of this base class is so these methods can be accessed by casting a Reactor* to a ReactorAccessor* without needing to know the specific kind of Reactor at compilation time.
Definition at line 25 of file ReactorDelegator.h.
Public Member Functions | |
| virtual void | setNEq (size_t n)=0 |
| Set the number of equations represented by this reactor. | |
| virtual double | expansionRate () const =0 |
| Get the net rate of volume change (for example, from moving walls) [m^3/s]. | |
| virtual void | setExpansionRate (double v)=0 |
| Set the net rate of volume change (for example, from moving walls) [m^3/s]. | |
| virtual double | heatRate () const =0 |
| Get the net heat transfer rate (for example, through walls) into the reactor [W]. | |
| virtual void | setHeatRate (double q)=0 |
| Set the net heat transfer rate (for example, through walls) into the reactor [W]. | |
| virtual span< double > | surfaceProductionRates ()=0 |
| Production rates on surfaces. | |
|
pure virtual |
Set the number of equations represented by this reactor.
Implemented in ReactorDelegator< R >.
|
pure virtual |
Get the net rate of volume change (for example, from moving walls) [m^3/s].
Implemented in ReactorDelegator< R >.
|
pure virtual |
Set the net rate of volume change (for example, from moving walls) [m^3/s].
Implemented in ReactorDelegator< R >.
|
pure virtual |
Get the net heat transfer rate (for example, through walls) into the reactor [W].
This value is initialized and calculated as part of Reactor::evalWalls().
Implemented in ReactorDelegator< R >.
|
pure virtual |
Set the net heat transfer rate (for example, through walls) into the reactor [W].
For a value set using this method to affect the calculations done by Reactor::eval, this method should be called in either a "replace" or "after" delegate for Reactor::evalWalls().
Implemented in ReactorDelegator< R >.
|
pure virtual |
Production rates on surfaces.
For bulk reactors, this contains the total production rates [kmol/s] of bulk phase species due to reactions on all adjacent species.
For surfaces, this contains the production rates [kmol/m²/s] of species on the surface and all adjacent phases, in the order defined by the InterfaceKinetics object.
Implemented in ReactorDelegator< R >.