mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Kinetics] Add phase accessor
This commit is contained in:
parent
3194402838
commit
f684d85946
@ -217,6 +217,16 @@ public:
|
||||
*/
|
||||
shared_ptr<ThermoPhase> reactionPhase() const;
|
||||
|
||||
/**
|
||||
* Return pointer to phase associated with Kinetics by index.
|
||||
* @param n Index of the ThermoPhase being sought.
|
||||
* @since New in %Cantera 3.2.
|
||||
* @see thermo
|
||||
*/
|
||||
shared_ptr<ThermoPhase> phase(size_t n=0) const {
|
||||
return m_thermo[n];
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns a reference to the nth ThermoPhase object defined
|
||||
* in this kinetics mechanism. It is typically used so that member
|
||||
|
Loading…
Reference in New Issue
Block a user