From c98c60138a682353609ea83aab06d1da0e859027 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 21 Oct 2005 21:57:24 +0000 Subject: [PATCH] Added 3 missing member functions. Note, this class is still not complete; it's missing the ref functions. --- Cantera/src/StoichSubstance.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Cantera/src/StoichSubstance.h b/Cantera/src/StoichSubstance.h index de030dc49..901c72a6e 100644 --- a/Cantera/src/StoichSubstance.h +++ b/Cantera/src/StoichSubstance.h @@ -2,6 +2,8 @@ * * @file StoichSubstance.h * + * This file contains the class declarations for the StoichSubstance + * ThermoPhase class. */ /* $Author$ @@ -291,6 +293,34 @@ namespace Cantera { } + /** + * Get the array of nondimensional Enthalpy functions for the + * standard state species + * at the current T and P of the solution. + */ + virtual void getEntropy_R(doublereal* sr) const { + sr[0] = entropy_mole() / GasConstant; + } + + /** + * Get the nondimensional Gibbs functions for the species + * at their standard states of solution at the current T and P + * of the solution. + */ + virtual void getGibbs_RT(doublereal* grt) const { + grt[0] = gibbs_mole() / (GasConstant * temperature()); + } + + /** + * Get the nondimensional Heat Capacities at constant + * pressure for the standard state of the species + * at the current T and P. + */ + virtual void getCp_R(doublereal* cpr) const { + cpr[0] = cp_mole() / GasConstant; + } + + //@} /// @name Thermodynamic Values for the Species Reference States -------------------- //@{