From 4334ec5d8ae32dfda35630de52a81433fee746b6 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 21 Jul 2010 16:31:45 +0000 Subject: [PATCH] Worked on documentation --- Cantera/src/transport/MixTransport.cpp | 19 +++++++++---------- Cantera/src/transport/MixTransport.h | 4 ++++ Cantera/src/transport/MultiTransport.h | 12 ++++++++---- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Cantera/src/transport/MixTransport.cpp b/Cantera/src/transport/MixTransport.cpp index 56580c50d..aac11a58c 100644 --- a/Cantera/src/transport/MixTransport.cpp +++ b/Cantera/src/transport/MixTransport.cpp @@ -227,21 +227,20 @@ namespace Cantera { return m_lambda; } //=================================================================================================================== - /****************** thermal diffusion coefficients ************/ - - /** - * Thermal diffusion is not considered in this mixture-averaged - * model. To include thermal diffusion, use transport manager - * MultiTransport instead. This methods fills out array dt with - * zeros. + // Return the thermal diffusion coefficients + /* + * For this approximation, these are all zero. + * + * Eqns. (12.168) shows how they are used in an expression for the species flux. + * + * @param dt Vector of thermal diffusion coefficients. Units = kg/m/s */ void MixTransport::getThermalDiffCoeffs(doublereal* const dt) { - int k; - for (k = 0; k < m_nsp; k++) { + for (int k = 0; k < m_nsp; k++) { dt[k] = 0.0; } } - + //=================================================================================================================== /** * @param ndim The number of spatial dimensions (1, 2, or 3). * @param grad_T The temperature gradient (ignored in this model). diff --git a/Cantera/src/transport/MixTransport.h b/Cantera/src/transport/MixTransport.h index 686cc555d..1e6f01f53 100644 --- a/Cantera/src/transport/MixTransport.h +++ b/Cantera/src/transport/MixTransport.h @@ -63,6 +63,10 @@ namespace Cantera { //! Return the thermal diffusion coefficients /*! * For this approximation, these are all zero. + * + * Eqns. (12.168) shows how they are used in an expression for the species flux. + * + * @param dt Vector of thermal diffusion coefficients. Units = kg/m/s */ virtual void getThermalDiffCoeffs(doublereal* const dt); diff --git a/Cantera/src/transport/MultiTransport.h b/Cantera/src/transport/MultiTransport.h index 754c96fcf..58aca9087 100644 --- a/Cantera/src/transport/MultiTransport.h +++ b/Cantera/src/transport/MultiTransport.h @@ -114,11 +114,15 @@ namespace Cantera { virtual void getSpeciesViscosities(doublereal* const visc) { updateViscosity_T(); std::copy(m_visc.begin(), m_visc.end(), visc); } - //! Return the thermal diffusion coefficients for the species + + //! Return the thermal diffusion coefficients (kg/m/s) /*! - * - * @param dt thermal diffusion coefficients - * (length = m_nsp) + * Eqn. (12.126) displays how they are calculated. The reference work is from + * Dixon-Lewis. + * + * Eqns. (12.168) shows how they are used in an expression for the species flux. + * + * @param dt Vector of thermal diffusion coefficients. Units = kg/m/s */ virtual void getThermalDiffCoeffs(doublereal* const dt);