Doxygen update

This commit is contained in:
Harry Moffat 2008-12-29 21:34:08 +00:00
parent e8c33462c6
commit f9b5fbcbfa
9 changed files with 56 additions and 30 deletions

View file

@ -18,7 +18,7 @@
#include "FalloffFactory.h" #include "FalloffFactory.h"
#include "ctexceptions.h" #include "ctexceptions.h"
#include <math.h> #include <cmath>
namespace Cantera { namespace Cantera {

View file

@ -5,16 +5,13 @@
* (see \ref falloffGroup and class \link Cantera::Falloff Falloff\endlink). * (see \ref falloffGroup and class \link Cantera::Falloff Falloff\endlink).
*/ */
/* /*
* $Author$
* $Date$ * $Date$
* $Revision$ * $Revision$
*/ */
// Copyright 2001 California Institute of Technology // Copyright 2001 California Institute of Technology
#ifndef CT_NEWFALLOFF_H #ifndef CT_NEWFALLOFF_H
#define CT_NEWFALLOFF_H #define CT_NEWFALLOFF_H
@ -28,6 +25,15 @@
namespace Cantera { namespace Cantera {
/**
* @defgroup falloffGroup Falloff Parameterizations
* This section describes the parameterizations used
* to describe the fall-off in reaction rate constants
* due to intermolecular energy transfer.
*
* @ingroup chemkinetics
*/
/** /**
* Base class for falloff function calculators. Each instance of a * Base class for falloff function calculators. Each instance of a
* subclass of Falloff computes one falloff function. * subclass of Falloff computes one falloff function.

View file

@ -75,7 +75,6 @@ namespace Cantera {
* expressions for low-density gases. * expressions for low-density gases.
* @ingroup kinetics * @ingroup kinetics
*/ */
class GasKinetics : public Kinetics { class GasKinetics : public Kinetics {
public: public:

View file

@ -18,9 +18,10 @@
#pragma warning(disable:4503) #pragma warning(disable:4503)
#endif #endif
#include <algorithm>
#include "Group.h" #include "Group.h"
#include <math.h>
#include <algorithm>
#include <cmath>
namespace Cantera { namespace Cantera {

View file

@ -208,7 +208,7 @@ namespace Cantera {
* \f$ m_k \f$ is the molality of the kth species. \f$ z_k \f$ is the charge * \f$ m_k \f$ is the molality of the kth species. \f$ z_k \f$ is the charge
* of the kth species. Note, the ionic strength is a defined units quantity. * of the kth species. Note, the ionic strength is a defined units quantity.
* The molality has defined units of gmol kg-1, and therefore the ionic * The molality has defined units of gmol kg-1, and therefore the ionic
* strength has units of sqrt( gmol kg-1). * strength has units of sqrt( gmol kg<SUP>-1</SUP>).
* *
* In some instances, from some authors, a different * In some instances, from some authors, a different
* formulation is used for the ionic strength in the equations below. The different * formulation is used for the ionic strength in the equations below. The different
@ -550,6 +550,8 @@ namespace Cantera {
* *
* It can be shown that the expression * It can be shown that the expression
* *
*
*
* \f[ * \f[
* B^{\phi}_{ca} = \beta^{(0)}_{ca} + \beta^{(1)}_{ca} \exp{(- \alpha^{(1)}_{ca} \sqrt{I})} * B^{\phi}_{ca} = \beta^{(0)}_{ca} + \beta^{(1)}_{ca} \exp{(- \alpha^{(1)}_{ca} \sqrt{I})}
* + \beta^{(2)}_{ca} \exp{(- \alpha^{(2)}_{ca} \sqrt{I} )} * + \beta^{(2)}_{ca} \exp{(- \alpha^{(2)}_{ca} \sqrt{I} )}
@ -2203,15 +2205,12 @@ namespace Cantera {
void getUnscaledMolalityActivityCoefficients(doublereal *acMolality) const; void getUnscaledMolalityActivityCoefficients(doublereal *acMolality) const;
private: private:
//! Apply the current phScale to a set of activity Coefficients or activities
//! Apply the current phScale to a set of activity Coefficients
/*! /*!
* See the Eq3/6 Manual for a thorough discussion. * See the Eq3/6 Manual for a thorough discussion.
* *
* @param acMolality input/Output vector containing the molality based
* activity coefficients. length: m_kk.
*/ */
// void applyphScale(doublereal *acMolality) const;
void s_updateScaling_pHScaling() const; void s_updateScaling_pHScaling() const;
//! Apply the current phScale to a set of derivatives of the activity Coefficients //! Apply the current phScale to a set of derivatives of the activity Coefficients
@ -2792,8 +2791,32 @@ namespace Cantera {
* neutral species interacting with itself. * neutral species interacting with itself.
*/ */
mutable vector_fp m_Mu_nnn; mutable vector_fp m_Mu_nnn;
//! Mu coefficient temperature derivative for the self-ternary neutral coefficient
/*!
* Array of 2D data used in the Pitzer/HMW formulation.
* Mu_nnn_L[i] represents the Mu coefficient temperature derivative for the
* nnn interaction. This is a general interaction representing
* neutral species interacting with itself.
*/
mutable vector_fp m_Mu_nnn_L; mutable vector_fp m_Mu_nnn_L;
//! Mu coefficient 2nd temperature derivative for the self-ternary neutral coefficient
/*!
* Array of 2D data used in the Pitzer/HMW formulation.
* Mu_nnn_L[i] represents the Mu coefficient 2nd temperature derivative for the
* nnn interaction. This is a general interaction representing
* neutral species interacting with itself.
*/
mutable vector_fp m_Mu_nnn_LL; mutable vector_fp m_Mu_nnn_LL;
//! Mu coefficient pressure derivative for the self-ternary neutral coefficient
/*!
* Array of 2D data used in the Pitzer/HMW formulation.
* Mu_nnn_L[i] represents the Mu coefficient pressure derivative for the
* nnn interaction. This is a general interaction representing
* neutral species interacting with itself.
*/
mutable vector_fp m_Mu_nnn_P; mutable vector_fp m_Mu_nnn_P;
//! Array of coefficients form_Mu_nnn term //! Array of coefficients form_Mu_nnn term

View file

@ -28,9 +28,11 @@
#include "ThermoFactory.h" #include "ThermoFactory.h"
#include <cmath> #include <cmath>
//@{
#ifndef MAX #ifndef MAX
#define MAX(x,y) (( (x) > (y) ) ? (x) : (y)) #define MAX(x,y) (( (x) > (y) ) ? (x) : (y))
#endif #endif
//@}
namespace Cantera { namespace Cantera {

View file

@ -988,7 +988,7 @@ namespace Cantera {
//! Internal error message //! Internal error message
/*! /*!
* param msg message to be printed * @param msg message to be printed
*/ */
doublereal err(std::string msg) const; doublereal err(std::string msg) const;

View file

@ -242,12 +242,13 @@ namespace Cantera {
*/ */
virtual int eosType() const; virtual int eosType() const;
//! Set the pH scale, which determines the scale for single-ion activity //! Set the pH scale, which determines the scale for single-ion activity
//! coefficients. //! coefficients.
/*! /*!
* Single ion activity coefficients are not unique in terms of the * Single ion activity coefficients are not unique in terms of the
* representing actual measureable quantities. * representing actual measureable quantities.
*
* @param pHscaleType Integer representing the pHscale
*/ */
void setpHScale(const int pHscaleType); void setpHScale(const int pHscaleType);
@ -256,6 +257,8 @@ namespace Cantera {
/*! /*!
* Single ion activity coefficients are not unique in terms of the * Single ion activity coefficients are not unique in terms of the
* representing actual measureable quantities. * representing actual measureable quantities.
*
* @return Return the pHscale type
*/ */
int pHScale() const; int pHScale() const;

View file

@ -4,9 +4,11 @@
* standard-state thermodynamic properties of a set of species * standard-state thermodynamic properties of a set of species
* (see \ref spthermo and class \link Cantera::SpeciesThermoFactory SpeciesThermoFactory\endlink); * (see \ref spthermo and class \link Cantera::SpeciesThermoFactory SpeciesThermoFactory\endlink);
*/ */
/* /*
* $Id$ * $Revision$
* $Date$
*/ */
// Copyright 2001 California Institute of Technology // Copyright 2001 California Institute of Technology
#ifdef WIN32 #ifdef WIN32
@ -442,7 +444,7 @@ namespace Cantera {
#endif #endif
doublereal LookupGe(const std::string& elemName, ThermoPhase *th_ptr) { static doublereal LookupGe(const std::string& elemName, ThermoPhase *th_ptr) {
#ifdef OLDWAY #ifdef OLDWAY
int num = sizeof(geDataTable) / sizeof(struct GeData); int num = sizeof(geDataTable) / sizeof(struct GeData);
string s3 = elemName.substr(0,3); string s3 = elemName.substr(0,3);
@ -469,7 +471,7 @@ namespace Cantera {
#endif #endif
} }
doublereal convertDGFormation(int k, ThermoPhase *th_ptr) { static doublereal convertDGFormation(int k, ThermoPhase *th_ptr) {
/* /*
* Ok let's get the element compositions and conversion factors. * Ok let's get the element compositions and conversion factors.
*/ */
@ -487,16 +489,6 @@ namespace Cantera {
totalSum += na * ge; totalSum += na * ge;
} }
} }
// Add in the charge
// if (m_charge_j != 0.0) {
// ename = "H";
// ge = LookupGe(ename);
// totalSum -= m_charge_j * ge;
//}
// Ok, now do the calculation. Convert to joules kmol-1
//doublereal dg = m_deltaG_formation_tr_pr * 4.184 * 1.0E3;
//! Store the result into an internal variable.
// doublereal Mu0_tr_pr = dg + totalSum;
return totalSum; return totalSum;
} }