From 351c9b8dac5c9ae1fd0c07122153653a0d3fe34f Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Thu, 8 Jun 2006 14:05:41 +0000 Subject: [PATCH] Fixed a typo and added getStandardVolumes() routine. --- Cantera/src/StoichSubstance.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cantera/src/StoichSubstance.h b/Cantera/src/StoichSubstance.h index 60adc2846..063dfddd4 100644 --- a/Cantera/src/StoichSubstance.h +++ b/Cantera/src/StoichSubstance.h @@ -166,7 +166,7 @@ namespace Cantera { /** * This method returns the array of generalized - * concentrations. For a stoichiomeetric substance, there is + * concentrations. For a stoichiometric substance, there is * only one species, and the generalized concentration is 1.0. */ virtual void getActivityConcentrations(doublereal* c) const { @@ -321,6 +321,13 @@ namespace Cantera { cpr[0] = cp_mole() / GasConstant; } + /** + * Get the standard volumes for the standard state of the species + * at the current T and P + */ + virtual void getStandardVolumes(doublereal*vol) const { + vol[0] = 1.0 / molarDensity(); + } //@} /// @name Thermodynamic Values for the Species Reference States --------------------