Fixed the order of initializations so that it wouldn't produce
a warning message. Doxygen additions.
This commit is contained in:
parent
a8d5e5a6a8
commit
12e9694043
2 changed files with 48 additions and 24 deletions
|
|
@ -234,23 +234,27 @@ namespace Cantera {
|
|||
f_eps = xi*xi;
|
||||
}
|
||||
|
||||
/**
|
||||
* TransportFactory(): default constructor
|
||||
*
|
||||
* The default constructor for this class sets up
|
||||
* m_models[], a mapping between the string name
|
||||
* for a transport model and the integer name.
|
||||
*/
|
||||
TransportFactory::TransportFactory() : m_integrals(0), m_verbose(false) {
|
||||
m_models["Mix"] = cMixtureAveraged;
|
||||
m_models["Multi"] = cMulticomponent;
|
||||
m_models["Solid"] = cSolidTransport;
|
||||
m_models["DustyGas"] = cDustyGasTransport;
|
||||
m_models["CK_Multi"] = CK_Multicomponent;
|
||||
m_models["CK_Mix"] = CK_MixtureAveraged;
|
||||
m_models["User"] = cUserTransport;
|
||||
m_models["None"] = None;
|
||||
}
|
||||
/**
|
||||
* TransportFactory(): default constructor
|
||||
*
|
||||
* The default constructor for this class sets up
|
||||
* m_models[], a mapping between the string name
|
||||
* for a transport model and the integer name.
|
||||
*/
|
||||
TransportFactory::TransportFactory() :
|
||||
m_verbose(false),
|
||||
m_integrals(0)
|
||||
|
||||
{
|
||||
m_models["Mix"] = cMixtureAveraged;
|
||||
m_models["Multi"] = cMulticomponent;
|
||||
m_models["Solid"] = cSolidTransport;
|
||||
m_models["DustyGas"] = cDustyGasTransport;
|
||||
m_models["CK_Multi"] = CK_Multicomponent;
|
||||
m_models["CK_Mix"] = CK_MixtureAveraged;
|
||||
m_models["User"] = cUserTransport;
|
||||
m_models["None"] = None;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
|
|
|
|||
|
|
@ -134,14 +134,23 @@ namespace Cantera {
|
|||
|
||||
private:
|
||||
|
||||
//! Static instance of the factor -> This is the only instance of this
|
||||
//! object allowed
|
||||
static TransportFactory* s_factory;
|
||||
#if defined(THREAD_SAFE_CANTERA)
|
||||
static boost::mutex transport_mutex ;
|
||||
#endif
|
||||
bool m_verbose;
|
||||
|
||||
// The constructor is private; use static method factory() to
|
||||
// get a pointer to a factory instance
|
||||
|
||||
|
||||
//! The constructor is private; use static method factory() to
|
||||
//! get a pointer to a factory instance
|
||||
/*!
|
||||
*
|
||||
* The default constructor for this class sets up
|
||||
* m_models[], a mapping between the string name
|
||||
* for a transport model and the integer name.
|
||||
*/
|
||||
TransportFactory();
|
||||
|
||||
void getTransportData(const XML_Node* db,
|
||||
|
|
@ -156,7 +165,7 @@ namespace Cantera {
|
|||
void fitCollisionIntegrals(std::ostream& logfile,
|
||||
TransportParams& tr);
|
||||
|
||||
MMCollisionInt* m_integrals;
|
||||
|
||||
|
||||
void setupMM(std::ostream& flog, const XML_Node* transport_database,
|
||||
thermo_t* thermo, int mode, int log_level,
|
||||
|
|
@ -165,13 +174,23 @@ namespace Cantera {
|
|||
|
||||
/// Second-order correction to the binary diffusion coefficients
|
||||
void getBinDiffCorrection(doublereal t,
|
||||
const TransportParams& tr, int k, int j, doublereal xk, doublereal xj,
|
||||
const TransportParams& tr, int k, int j,
|
||||
doublereal xk, doublereal xj,
|
||||
doublereal& fkj, doublereal& fjk);
|
||||
|
||||
/// Corrections for polar-nonpolar binary diffusion coefficients
|
||||
void makePolarCorrections(int i, int j,
|
||||
const TransportParams& tr, doublereal& f_eps, doublereal& f_sigma);
|
||||
const TransportParams& tr, doublereal& f_eps,
|
||||
doublereal& f_sigma);
|
||||
|
||||
//! Boolean indicating whether to turn on verbose printing
|
||||
bool m_verbose;
|
||||
|
||||
//! Pointer to the collision integrals
|
||||
MMCollisionInt* m_integrals;
|
||||
|
||||
//! Mapping between between the string name
|
||||
//! for a transport model and the integer name.
|
||||
std::map<std::string, int> m_models;
|
||||
};
|
||||
|
||||
|
|
@ -181,7 +200,8 @@ namespace Cantera {
|
|||
* @ingroup transportProps
|
||||
*/
|
||||
inline Transport* newTransportMgr(std::string transportModel="",
|
||||
thermo_t* thermo=0, int loglevel=0, TransportFactory* f=0) {
|
||||
thermo_t* thermo=0, int loglevel=0,
|
||||
TransportFactory* f=0) {
|
||||
if (f == 0) {
|
||||
f = TransportFactory::factory();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue