From e52797d335ac32deb8730e9b9164c8a24c16082d Mon Sep 17 00:00:00 2001 From: John Hewson Date: Fri, 23 Oct 2009 19:03:02 +0000 Subject: [PATCH] Minor changes to reflect changes in LiquidTransportParams, LiquidTransportData and TransportParams. However, the last set of changes broke AqueosTransport because it uses the same property coefficient vectors as those now moved to GasTransportParams. --- Cantera/src/transport/AqueousTransport.cpp | 9 ++++++--- Cantera/src/transport/SimpleTransport.cpp | 2 +- Cantera/src/transport/SimpleTransport.h | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cantera/src/transport/AqueousTransport.cpp b/Cantera/src/transport/AqueousTransport.cpp index 8e730600b..3b7033dfa 100644 --- a/Cantera/src/transport/AqueousTransport.cpp +++ b/Cantera/src/transport/AqueousTransport.cpp @@ -87,9 +87,12 @@ namespace Cantera { m_thermo->molecularWeights().end(), m_mw.begin()); // copy polynomials and parameters into local storage - m_visccoeffs = tr.visccoeffs; - m_condcoeffs = tr.condcoeffs; - m_diffcoeffs = tr.diffcoeffs; + //m_visccoeffs = tr.visccoeffs; + //m_condcoeffs = tr.condcoeffs; + //m_diffcoeffs = tr.diffcoeffs; + cout << "In AqueousTransport::initLiquid we need to replace" << endl + << "LiquidTransportParams polyniomial coefficients with" << endl + << "those in LiquidTransportData as in SimpleTransport." << endl; m_mode = tr.mode_; diff --git a/Cantera/src/transport/SimpleTransport.cpp b/Cantera/src/transport/SimpleTransport.cpp index 569f6a2ab..d9aa801f6 100644 --- a/Cantera/src/transport/SimpleTransport.cpp +++ b/Cantera/src/transport/SimpleTransport.cpp @@ -296,7 +296,7 @@ namespace Cantera { "hydroradius model is not constant for species " + spName0); } vector_fp &kentry = m_coeffHydroRadius_Ns[k]; - kentry.push_back(ltd.hydroradius); + kentry = ltd.hydroRadiusCoeffs; } else { if (dm != dm0) { throw CanteraError(" SimpleTransport::initLiquid", diff --git a/Cantera/src/transport/SimpleTransport.h b/Cantera/src/transport/SimpleTransport.h index 35eb9560f..875403a01 100644 --- a/Cantera/src/transport/SimpleTransport.h +++ b/Cantera/src/transport/SimpleTransport.h @@ -310,7 +310,7 @@ namespace Cantera { */ virtual void getFluidMobilities(doublereal* const mobil_f); - //! Specify the valpdaue of the gradient of the voltage + //! Specify the value of the gradient of the voltage /*! * * @param grad_V Gradient of the voltage (length num dimensions); @@ -450,7 +450,7 @@ namespace Cantera { * Types of temperature dependencies: * 0 - Independent of temperature (only one implemented so far) * 1 - extended arrhenius form - * 2 - power law form + * 2 - polynomial in temperature form */ int tempDepType_;