Added a pointer to a Transport object to the

Phase class.  This allows a ThermoPhase object
to know what Transport object it is associated with.
This commit is contained in:
John Hewson 2009-12-15 21:43:34 +00:00
parent 0d6e6bd10b
commit debcff82d9

View file

@ -26,6 +26,7 @@ using namespace ctml;
namespace Cantera {
class Transport; //forward declaration
/**
* @defgroup phases Models of Phases of Matter
@ -221,6 +222,9 @@ namespace Cantera {
*/
void setName(std::string nm);
//! Attach a Transport object pointer to this Phase
void setTransport( Transport* tr ) { m_trans = tr; }
//! Returns the index of the phase
/*!
* The index is used in the Python and matlab interfaces to
@ -434,6 +438,9 @@ namespace Cantera {
*/
void getMoleFractionsByName(compositionMap& x) const;
//! Get a Transport object pointer attached to this Phase
Transport* getTransport( ) { return m_trans; }
//! Return the mole fraction of a single species
/*!
* @param k String name of the species
@ -515,6 +522,13 @@ namespace Cantera {
*/
int m_index;
/**
* A Transport object pointer attached to this Phase
*/
Transport *m_trans;
private:
//! This stores the initial state of the system