Cantera 2.6.0
|
A container class holding managers for all pieces defining a phase. More...
#include <Solution.h>
Public Member Functions | |
Solution (const Solution &)=delete | |
Solution & | operator= (const Solution &)=delete |
std::string | name () const |
Return the name of this Solution object. More... | |
void | setName (const std::string &name) |
Set the name of this Solution object. More... | |
virtual void | setThermo (shared_ptr< ThermoPhase > thermo) |
Set the ThermoPhase object. More... | |
virtual void | setKinetics (shared_ptr< Kinetics > kinetics) |
Set the Kinetics object. More... | |
virtual void | setTransport (shared_ptr< Transport > transport) |
Set the Transport object. 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 std::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 std::string | source () const |
Retrieve source used for object creation; usually an input file name. More... | |
void | setSource (const std::string &source) |
Overwrite source (only required if object is not created using newSolution) More... | |
Static Public Member Functions | |
static shared_ptr< Solution > | create () |
Create an empty Solution object. More... | |
Protected Attributes | |
shared_ptr< ThermoPhase > | m_thermo |
ThermoPhase manager. More... | |
shared_ptr< Kinetics > | m_kinetics |
Kinetics manager. More... | |
shared_ptr< Transport > | m_transport |
Transport manager. More... | |
std::vector< shared_ptr< Solution > > | m_adjacent |
Adjacent phases, for access by index. More... | |
std::map< std::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... | |
A container class holding managers for all pieces defining a phase.
Definition at line 20 of file Solution.h.
|
protected |
Definition at line 22 of file Solution.cpp.
|
inlinevirtual |
Definition at line 26 of file Solution.h.
|
inlinestatic |
Create an empty Solution object.
Definition at line 31 of file Solution.h.
Referenced by Cantera::newSolution().
std::string name | ( | ) | const |
Return the name of this Solution object.
Definition at line 24 of file Solution.cpp.
References Solution::m_thermo.
Referenced by Solution::addAdjacent(), Solution::adjacent(), and Solution::setName().
void setName | ( | const std::string & | name | ) |
Set the name of this Solution object.
Definition at line 33 of file Solution.cpp.
References Solution::m_thermo, and Solution::name().
|
virtual |
Set the ThermoPhase object.
Reimplemented in Interface.
Definition at line 42 of file Solution.cpp.
References Solution::m_thermo, and Solution::thermo().
Referenced by Interface::setThermo().
|
virtual |
Set the Kinetics object.
Reimplemented in Interface.
Definition at line 46 of file Solution.cpp.
References Solution::kinetics(), and Solution::m_kinetics.
Referenced by Interface::setKinetics().
|
virtual |
Set the Transport object.
Definition at line 50 of file Solution.cpp.
References Solution::m_transport, and Solution::transport().
|
inline |
Accessor for the ThermoPhase pointer.
Definition at line 51 of file Solution.h.
References Solution::m_thermo.
Referenced by Solution::setThermo().
|
inline |
Accessor for the Kinetics pointer.
Definition at line 56 of file Solution.h.
References Solution::m_kinetics.
Referenced by Solution::setKinetics().
|
inline |
Accessor for the Transport pointer.
Definition at line 61 of file Solution.h.
References Solution::m_transport.
Referenced by Solution::setTransport().
void addAdjacent | ( | shared_ptr< Solution > | adjacent | ) |
Add a phase adjacent to this phase.
Usually this means a higher-dimensional phase that participates in reactions in this phase.
Definition at line 54 of file Solution.cpp.
References Solution::adjacent(), Solution::m_adjacent, Solution::m_adjacentByName, Solution::m_thermo, and Solution::name().
|
inline |
Get the Solution object for an adjacent phase by index.
Definition at line 70 of file Solution.h.
References Solution::m_adjacent.
Referenced by Solution::addAdjacent().
|
inline |
Get the Solution object for an adjacent phase by name.
Definition at line 75 of file Solution.h.
References Solution::m_adjacentByName, and Solution::name().
|
inline |
Get the number of adjacent phases.
Definition at line 80 of file Solution.h.
References Solution::m_adjacent.
AnyMap parameters | ( | bool | withInput = false | ) | const |
Definition at line 73 of file Solution.cpp.
const AnyMap & header | ( | ) | const |
Access input data associated with header definition.
Definition at line 102 of file Solution.cpp.
References Solution::m_header.
AnyMap & header | ( | ) |
Definition at line 107 of file Solution.cpp.
const std::string source | ( | ) | const |
Retrieve source used for object creation; usually an input file name.
Definition at line 112 of file Solution.cpp.
References AnyBase::getMetadata(), Solution::m_header, and Solution::source().
Referenced by Solution::setSource(), and Solution::source().
void setSource | ( | const std::string & | source | ) |
Overwrite source (only required if object is not created using newSolution)
Definition at line 117 of file Solution.cpp.
References Solution::m_header, AnyMap::setMetadata(), and Solution::source().
|
protected |
ThermoPhase manager.
Definition at line 97 of file Solution.h.
Referenced by Solution::addAdjacent(), Solution::name(), Solution::setName(), Solution::setThermo(), and Solution::thermo().
|
protected |
Kinetics manager.
Definition at line 98 of file Solution.h.
Referenced by Solution::kinetics(), and Solution::setKinetics().
|
protected |
Transport manager.
Definition at line 99 of file Solution.h.
Referenced by Solution::setTransport(), and Solution::transport().
|
protected |
Adjacent phases, for access by index.
Definition at line 102 of file Solution.h.
Referenced by Solution::addAdjacent(), Solution::adjacent(), and Solution::nAdjacent().
|
protected |
Adjacent phases, for access by name.
Definition at line 105 of file Solution.h.
Referenced by Solution::addAdjacent(), and Solution::adjacent().
|
protected |
Additional input fields; usually from a YAML input file.
Definition at line 107 of file Solution.h.
Referenced by Solution::header(), Solution::setSource(), and Solution::source().