[Kinetics] Add phase accessor

This commit is contained in:
Ingmar Schoegl 2025-01-25 17:42:51 -06:00 committed by Ray Speth
parent 3194402838
commit f684d85946

View File

@ -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