Cantera
3.1.0a1
|
A container class for chemically-reacting interfaces. More...
#include <Interface.h>
A container class for chemically-reacting interfaces.
Instances of class Interface represent reacting 2D surfaces between bulk 3D phases, or 1D edges where multiple surfaces (and bulk phases) meet.
Definition at line 22 of file Interface.h.
Public Member Functions | |
Interface (const Interface &)=delete | |
Interface & | operator= (const Interface &)=delete |
void | setThermo (shared_ptr< ThermoPhase > thermo) override |
Set the reacting phase thermo object. More... | |
void | setKinetics (shared_ptr< Kinetics > kinetics) override |
Set the Kinetics object. More... | |
shared_ptr< SurfPhase > | thermo () |
Get the surface phase thermo object. More... | |
shared_ptr< InterfaceKinetics > | kinetics () |
Get the surface phase Kinetics object. More... | |
Public Member Functions inherited from Solution | |
Solution (const Solution &)=delete | |
Solution & | operator= (const Solution &)=delete |
string | name () const |
Return the name of this Solution object. More... | |
void | setName (const string &name) |
Set the name of this Solution object. More... | |
virtual void | setTransport (shared_ptr< Transport > transport) |
Set the Transport object directly. More... | |
void | setTransportModel (const string &model="") |
Set the Transport object by name. More... | |
shared_ptr< ThermoPhase > | thermo () |
Accessor for the ThermoPhase pointer. More... | |
shared_ptr< Kinetics > | kinetics () |
Accessor for the Kinetics pointer. More... | |
shared_ptr< Transport > | transport () |
Accessor for the Transport pointer. More... | |
void | addAdjacent (shared_ptr< Solution > adjacent) |
Add a phase adjacent to this phase. More... | |
shared_ptr< Solution > | adjacent (size_t i) |
Get the Solution object for an adjacent phase by index. More... | |
shared_ptr< Solution > | adjacent (const string &name) |
Get the Solution object for an adjacent phase by name. More... | |
size_t | nAdjacent () const |
Get the number of adjacent phases. More... | |
AnyMap | parameters (bool withInput=false) const |
const AnyMap & | header () const |
Access input data associated with header definition. More... | |
AnyMap & | header () |
const string | source () const |
Retrieve source used for object creation; usually an input file name. More... | |
void | setSource (const string &source) |
Overwrite source (only required if object is not created using newSolution) More... | |
void | holdExternalHandle (const string &name, shared_ptr< ExternalHandle > handle) |
Store a handle to a wrapper for this Solution object from an external language interface (for example, a Python Solution object) More... | |
shared_ptr< ExternalHandle > | getExternalHandle (const string &name) const |
Get the handle for a wrapper for this Solution object from an external language interface. More... | |
void | registerChangedCallback (void *id, const function< void()> &callback) |
Register a function to be called if any of the Solution's thermo, kinetics, or transport objects is replaced. More... | |
void | removeChangedCallback (void *id) |
Remove the callback function associated with the specified object. More... | |
Static Public Member Functions | |
static shared_ptr< Interface > | create () |
Create an empty Interface object. More... | |
Static Public Member Functions inherited from Solution | |
static shared_ptr< Solution > | create () |
Create an empty Solution object. More... | |
Protected Attributes | |
shared_ptr< SurfPhase > | m_surf |
Surface phase ThermoPhase manager. More... | |
shared_ptr< InterfaceKinetics > | m_surfkin |
Kinetics manager. More... | |
Protected Attributes inherited from Solution | |
shared_ptr< ThermoPhase > | m_thermo |
ThermoPhase manager. More... | |
shared_ptr< Kinetics > | m_kinetics |
Kinetics manager. More... | |
shared_ptr< Transport > | m_transport |
Transport manager. More... | |
vector< shared_ptr< Solution > > | m_adjacent |
Adjacent phases, for access by index. More... | |
map< string, shared_ptr< Solution > > | m_adjacentByName |
Adjacent phases, for access by name. More... | |
AnyMap | m_header |
Additional input fields; usually from a YAML input file. More... | |
map< string, shared_ptr< ExternalHandle > > | m_externalHandles |
Wrappers for this Solution object in extension languages, for evaluation of user-defined reaction rates. More... | |
map< void *, function< void()> > | m_changeCallbacks |
Callback functions that are invoked when the therm, kinetics, or transport members of the Solution are replaced. More... | |
|
inlinestatic |
Create an empty Interface object.
Definition at line 33 of file Interface.h.
|
overridevirtual |
Set the reacting phase thermo object.
Reimplemented from Solution.
Definition at line 13 of file Interface.cpp.
|
overridevirtual |
|
inline |
Get the surface phase thermo object.
Definition at line 44 of file Interface.h.
|
inline |
Get the surface phase Kinetics object.
Definition at line 49 of file Interface.h.
|
protected |
Surface phase ThermoPhase manager.
Definition at line 54 of file Interface.h.
|
protected |
Kinetics manager.
Definition at line 55 of file Interface.h.