From aad8e777893e72a8c18dc55ab2f0fc15d42b5240 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Tue, 3 Jul 2007 11:38:13 +0000 Subject: [PATCH] added missing methods to MetalPhase, made 2 methods of SurfPhase virtual --- Cantera/src/thermo/MetalPhase.h | 10 ++++++++++ Cantera/src/thermo/SurfPhase.h | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Cantera/src/thermo/MetalPhase.h b/Cantera/src/thermo/MetalPhase.h index a7bd456ec..1b90cbade 100644 --- a/Cantera/src/thermo/MetalPhase.h +++ b/Cantera/src/thermo/MetalPhase.h @@ -74,6 +74,16 @@ namespace Cantera { for (n = 0; n < nsp; n++) mu[n] = 0.0; } + virtual void getEnthalpy_RT(doublereal* hrt) const { + int n, nsp = nSpecies(); + for (n = 0; n < nsp; n++) hrt[n] = 0.0; + } + + virtual void getEntropy_R(doublereal* sr) const { + int n, nsp = nSpecies(); + for (n = 0; n < nsp; n++) sr[n] = 0.0; + } + virtual void getStandardChemPotentials(doublereal* mu0) const { int n, nsp = nSpecies(); for (n = 0; n < nsp; n++) mu0[n] = 0.0; diff --git a/Cantera/src/thermo/SurfPhase.h b/Cantera/src/thermo/SurfPhase.h index 99b24dbac..55358f863 100644 --- a/Cantera/src/thermo/SurfPhase.h +++ b/Cantera/src/thermo/SurfPhase.h @@ -461,7 +461,7 @@ namespace Cantera { * @param hrt Output vector of nondimensional standard state enthalpies. * Length: m_kk. */ - void getEnthalpy_RT(doublereal* hrt) const; + virtual void getEnthalpy_RT(doublereal* hrt) const; //! Get the array of nondimensional Entropy functions for the //! species standard states at the current T and P of the solution. @@ -469,7 +469,7 @@ namespace Cantera { * @param sr Output vector of nondimensional standard state entropies. * Length: m_kk. */ - void getEntropy_R(doublereal* sr) const; + virtual void getEntropy_R(doublereal* sr) const; //! Get the nondimensional Heat Capacities at constant //! pressure for the species standard states