Skip to content

Commit f5f12ca

Browse files
committed
Fix documentation of ThermoPhase::setToEquilState
The values passed into this function are the nondimensional (species) chemical potentials, not the element potentials. The method ChemEquil::setToEquilState already handles calculation of the chemical potentials from the element potentials.
1 parent 07dac7b commit f5f12ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/cantera/thermo/ThermoPhase.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,10 +1457,10 @@ class ThermoPhase : public Phase
14571457
* temperature is unchanged. Any phase (ideal or not) that
14581458
* implements this method can be equilibrated by ChemEquil.
14591459
*
1460-
* @param lambda_RT Input vector of dimensionless element potentials
1461-
* The length is equal to nElements().
1460+
* @param mu_RT Input vector of dimensionless chemical potentials
1461+
* The length is equal to nSpecies().
14621462
*/
1463-
virtual void setToEquilState(const doublereal* lambda_RT) {
1463+
virtual void setToEquilState(const doublereal* mu_RT) {
14641464
throw NotImplementedError("ThermoPhase::setToEquilState");
14651465
}
14661466

0 commit comments

Comments
 (0)