From 6a3c7eabd4f486c4e69a997467cf20f8185ae77a Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 4 Oct 2011 23:33:58 +0000 Subject: [PATCH] Added a getMoleFraction to GibbsExcess at the start of the calculation. Want the mole fraction to be synched at all times. --- Cantera/src/thermo/GibbsExcessVPSSTP.cpp | 1 + Cantera/src/thermo/StoichSubstance.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cantera/src/thermo/GibbsExcessVPSSTP.cpp b/Cantera/src/thermo/GibbsExcessVPSSTP.cpp index 94b366c79..339b0edd9 100644 --- a/Cantera/src/thermo/GibbsExcessVPSSTP.cpp +++ b/Cantera/src/thermo/GibbsExcessVPSSTP.cpp @@ -332,6 +332,7 @@ namespace Cantera { void GibbsExcessVPSSTP::initThermo() { initLengths(); VPStandardStateTP::initThermo(); + getMoleFractions(DATA_PTR(moleFractions_)); } diff --git a/Cantera/src/thermo/StoichSubstance.h b/Cantera/src/thermo/StoichSubstance.h index 991ef4962..a154f8096 100644 --- a/Cantera/src/thermo/StoichSubstance.h +++ b/Cantera/src/thermo/StoichSubstance.h @@ -394,7 +394,10 @@ namespace Cantera { protected: int m_kk; - doublereal m_tmin, m_tmax, m_press, m_p0; + doublereal m_tmin; + doublereal m_tmax; + doublereal m_press; + doublereal m_p0; mutable doublereal m_tlast; mutable array_fp m_h0_RT;