Cantera  3.1.0a1
Interface Class Reference

A container class for chemically-reacting interfaces. More...

#include <Interface.h>

Inheritance diagram for Interface:
[legend]

Detailed Description

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
 
Interfaceoperator= (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< SurfPhasethermo ()
 Get the surface phase thermo object. More...
 
shared_ptr< InterfaceKineticskinetics ()
 Get the surface phase Kinetics object. More...
 
- Public Member Functions inherited from Solution
 Solution (const Solution &)=delete
 
Solutionoperator= (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< ThermoPhasethermo ()
 Accessor for the ThermoPhase pointer. More...
 
shared_ptr< Kineticskinetics ()
 Accessor for the Kinetics pointer. More...
 
shared_ptr< Transporttransport ()
 Accessor for the Transport pointer. More...
 
void addAdjacent (shared_ptr< Solution > adjacent)
 Add a phase adjacent to this phase. More...
 
shared_ptr< Solutionadjacent (size_t i)
 Get the Solution object for an adjacent phase by index. More...
 
shared_ptr< Solutionadjacent (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 AnyMapheader () const
 Access input data associated with header definition. More...
 
AnyMapheader ()
 
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< ExternalHandlegetExternalHandle (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< Interfacecreate ()
 Create an empty Interface object. More...
 
- Static Public Member Functions inherited from Solution
static shared_ptr< Solutioncreate ()
 Create an empty Solution object. More...
 

Protected Attributes

shared_ptr< SurfPhasem_surf
 Surface phase ThermoPhase manager. More...
 
shared_ptr< InterfaceKineticsm_surfkin
 Kinetics manager. More...
 
- Protected Attributes inherited from Solution
shared_ptr< ThermoPhasem_thermo
 ThermoPhase manager. More...
 
shared_ptr< Kineticsm_kinetics
 Kinetics manager. More...
 
shared_ptr< Transportm_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...
 

Member Function Documentation

◆ create()

static shared_ptr<Interface> create ( )
inlinestatic

Create an empty Interface object.

Definition at line 33 of file Interface.h.

◆ setThermo()

void setThermo ( shared_ptr< ThermoPhase thermo)
overridevirtual

Set the reacting phase thermo object.

Reimplemented from Solution.

Definition at line 13 of file Interface.cpp.

◆ setKinetics()

void setKinetics ( shared_ptr< Kinetics kinetics)
overridevirtual

Set the Kinetics object.

Reimplemented from Solution.

Definition at line 24 of file Interface.cpp.

◆ thermo()

shared_ptr<SurfPhase> thermo ( )
inline

Get the surface phase thermo object.

Definition at line 44 of file Interface.h.

◆ kinetics()

shared_ptr<InterfaceKinetics> kinetics ( )
inline

Get the surface phase Kinetics object.

Definition at line 49 of file Interface.h.

Member Data Documentation

◆ m_surf

shared_ptr<SurfPhase> m_surf
protected

Surface phase ThermoPhase manager.

Definition at line 54 of file Interface.h.

◆ m_surfkin

shared_ptr<InterfaceKinetics> m_surfkin
protected

Kinetics manager.

Definition at line 55 of file Interface.h.


The documentation for this class was generated from the following files: