Cantera 2.6.0
|
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>
Public Member Functions | |
virtual void | setNEq (size_t n)=0 |
Set the number of equations represented by this reactor. More... | |
virtual double | vdot () const =0 |
Get the net rate of volume change (for example, from moving walls) [m^3/s]. More... | |
virtual void | setVdot (double v)=0 |
Set the net rate of volume change (for example, from moving walls) [m^3/s]. More... | |
virtual double | qdot () const =0 |
Get the net heat transfer rate (for example, through walls) into the reactor [W]. More... | |
virtual void | setQdot (double q)=0 |
Set the net heat transfer rate (for example, through walls) into the reactor [W]. More... | |
virtual void | restoreThermoState ()=0 |
Set the state of the thermo object to correspond to the state of the reactor. More... | |
virtual void | restoreSurfaceState (size_t n)=0 |
Set the state of the thermo object for surface n to correspond to the state of that surface. More... | |
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.
|
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 |
Set the state of the thermo object to correspond to the state of the reactor.
Implemented in ReactorDelegator< R >.
|
pure virtual |
Set the state of the thermo object for surface n to correspond to the state of that surface.
Implemented in ReactorDelegator< R >.