From 436f38c6a61cf8a0421bff4204ead7ff81c35fdf Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 24 Oct 2012 15:46:45 +0000 Subject: [PATCH] Removed some unused member variables from Transport classes --- include/cantera/transport/AqueousTransport.h | 6 ------ include/cantera/transport/LiquidTransport.h | 6 ------ include/cantera/transport/MultiTransport.h | 3 --- include/cantera/transport/PecosTransport.h | 1 - include/cantera/transport/SimpleTransport.h | 6 ------ src/transport/AqueousTransport.cpp | 4 ---- src/transport/LiquidTransport.cpp | 8 -------- src/transport/PecosTransport.cpp | 4 ---- src/transport/SimpleTransport.cpp | 9 --------- 9 files changed, 47 deletions(-) diff --git a/include/cantera/transport/AqueousTransport.h b/include/cantera/transport/AqueousTransport.h index fc1c8d49d..3d3638b93 100644 --- a/include/cantera/transport/AqueousTransport.h +++ b/include/cantera/transport/AqueousTransport.h @@ -374,12 +374,6 @@ public: void stefan_maxwell_solve(); private: - //! Minimum temperature applicable to the transport property eval - doublereal m_tmin; - - //! Maximum temperature applicable to the transport property evaluator - doublereal m_tmax; - //! Local Copy of the molecular weights of the species /*! * Length is Equal to the number of species in the mechanism. diff --git a/include/cantera/transport/LiquidTransport.h b/include/cantera/transport/LiquidTransport.h index 99b73f117..935b04b8d 100644 --- a/include/cantera/transport/LiquidTransport.h +++ b/include/cantera/transport/LiquidTransport.h @@ -878,12 +878,6 @@ private: //! Number of species squared size_t m_nsp2; - //! Minimum temperature applicable to the transport property eval - doublereal m_tmin; - - //! Maximum temperature applicable to the transport property evaluator - doublereal m_tmax; - //! Local copy of the molecular weights of the species /*! * Length is equal to the number of species in the phase diff --git a/include/cantera/transport/MultiTransport.h b/include/cantera/transport/MultiTransport.h index 123d84ca3..85be91ae9 100644 --- a/include/cantera/transport/MultiTransport.h +++ b/include/cantera/transport/MultiTransport.h @@ -157,9 +157,6 @@ private: doublereal m_thermal_tlast; - doublereal m_tmin; - doublereal m_tmax; - // property values std::vector > m_poly; std::vector m_astar_poly; diff --git a/include/cantera/transport/PecosTransport.h b/include/cantera/transport/PecosTransport.h index 255cacfb3..6b62843c5 100644 --- a/include/cantera/transport/PecosTransport.h +++ b/include/cantera/transport/PecosTransport.h @@ -201,7 +201,6 @@ private: // mixture attributes int m_nsp; - doublereal m_tmin, m_tmax; vector_fp m_mw; // polynomial fits diff --git a/include/cantera/transport/SimpleTransport.h b/include/cantera/transport/SimpleTransport.h index 6354bf8e9..e17f9b48f 100644 --- a/include/cantera/transport/SimpleTransport.h +++ b/include/cantera/transport/SimpleTransport.h @@ -637,12 +637,6 @@ private: */ bool doMigration_; - //! Minimum temperature applicable to the transport property eval - doublereal m_tmin; - - //! Maximum temperature applicable to the transport property evaluator - doublereal m_tmax; - //! Local Copy of the molecular weights of the species /*! * Length is Equal to the number of species in the mechanism. diff --git a/src/transport/AqueousTransport.cpp b/src/transport/AqueousTransport.cpp index 21e9125d1..a4335f7c8 100644 --- a/src/transport/AqueousTransport.cpp +++ b/src/transport/AqueousTransport.cpp @@ -32,8 +32,6 @@ namespace Cantera //==================================================================================================================== AqueousTransport::AqueousTransport() : - m_tmin(-1.0), - m_tmax(100000.), m_iStateMF(-1), m_temp(-1.0), m_logt(0.0), @@ -68,8 +66,6 @@ bool AqueousTransport::initLiquid(LiquidTransportParams& tr) // constant substance attributes m_thermo = tr.thermo; m_nsp = m_thermo->nSpecies(); - m_tmin = m_thermo->minTemp(); - m_tmax = m_thermo->maxTemp(); // make a local copy of the molecular weights m_mw.resize(m_nsp); diff --git a/src/transport/LiquidTransport.cpp b/src/transport/LiquidTransport.cpp index ee835ea1b..a2ee99d3d 100644 --- a/src/transport/LiquidTransport.cpp +++ b/src/transport/LiquidTransport.cpp @@ -32,8 +32,6 @@ namespace Cantera LiquidTransport::LiquidTransport(thermo_t* thermo, int ndim) : Transport(thermo, ndim), m_nsp2(0), - m_tmin(-1.0), - m_tmax(100000.), m_viscMixModel(0), m_ionCondMixModel(0), m_lambdaMixModel(0), @@ -79,8 +77,6 @@ LiquidTransport::LiquidTransport(thermo_t* thermo, int ndim) : LiquidTransport::LiquidTransport(const LiquidTransport& right) : Transport(right.m_thermo, right.m_nDim), m_nsp2(0), - m_tmin(-1.0), - m_tmax(100000.), m_viscMixModel(0), m_ionCondMixModel(0), m_lambdaMixModel(0), @@ -134,8 +130,6 @@ LiquidTransport& LiquidTransport::operator=(const LiquidTransport& right) } Transport::operator=(right); m_nsp2 = right.m_nsp2; - m_tmin = right.m_tmin; - m_tmax = right.m_tmax; m_mw = right.m_mw; m_viscTempDep_Ns = right.m_viscTempDep_Ns; m_ionCondTempDep_Ns = right.m_ionCondTempDep_Ns; @@ -293,8 +287,6 @@ bool LiquidTransport::initLiquid(LiquidTransportParams& tr) m_velocityBasis = tr.velocityBasis_; m_nsp = m_thermo->nSpecies(); m_nsp2 = m_nsp*m_nsp; - m_tmin = m_thermo->minTemp(); - m_tmax = m_thermo->maxTemp(); // make a local copy of the molecular weights m_mw.resize(m_nsp, 0.0); diff --git a/src/transport/PecosTransport.cpp b/src/transport/PecosTransport.cpp index 73e397d8b..327bdd3c3 100755 --- a/src/transport/PecosTransport.cpp +++ b/src/transport/PecosTransport.cpp @@ -30,8 +30,6 @@ namespace Cantera PecosTransport::PecosTransport() : m_nsp(0), - m_tmin(-1.0), - m_tmax(100000.), m_temp(-1.0), m_logt(0.0) { @@ -45,8 +43,6 @@ bool PecosTransport::initGas(GasTransportParams& tr) // constant substance attributes m_thermo = tr.thermo; m_nsp = m_thermo->nSpecies(); - m_tmin = m_thermo->minTemp(); - m_tmax = m_thermo->maxTemp(); // make a local copy of the molecular weights m_mw.resize(m_nsp); diff --git a/src/transport/SimpleTransport.cpp b/src/transport/SimpleTransport.cpp index 0f1636452..4b040e34d 100644 --- a/src/transport/SimpleTransport.cpp +++ b/src/transport/SimpleTransport.cpp @@ -36,9 +36,6 @@ SimpleTransport::SimpleTransport(thermo_t* thermo, int ndim) : compositionDepType_(0), useHydroRadius_(false), doMigration_(0), - m_tmin(-1.0), - m_tmax(100000.), - m_iStateMF(-1), concTot_(0.0), m_temp(-1.0), m_press(-1.0), @@ -60,8 +57,6 @@ SimpleTransport::SimpleTransport(const SimpleTransport& right) : compositionDepType_(0), useHydroRadius_(false), doMigration_(0), - m_tmin(-1.0), - m_tmax(100000.), m_iStateMF(-1), m_temp(-1.0), m_press(-1.0), @@ -93,8 +88,6 @@ SimpleTransport& SimpleTransport::operator=(const SimpleTransport& right) compositionDepType_ = right.compositionDepType_; useHydroRadius_ = right.useHydroRadius_; doMigration_ = right.doMigration_; - m_tmin = right.m_tmin; - m_tmax = right.m_tmax; m_mw = right.m_mw; m_coeffVisc_Ns = right.m_coeffVisc_Ns; @@ -187,8 +180,6 @@ bool SimpleTransport::initLiquid(LiquidTransportParams& tr) // constant substance attributes m_thermo = tr.thermo; m_nsp = m_thermo->nSpecies(); - m_tmin = m_thermo->minTemp(); - m_tmax = m_thermo->maxTemp(); /* * Read the transport block in the phase XML Node