13 #ifndef CT_FTNTRANSPORT_H
14 #define CT_FTNTRANSPORT_H
30 #define __VISC__ visc_
31 #define __BULKVISC__ bvisc_
32 #define __TCON__ tcon_
33 #define __TDIFF__ tdiff_
34 #define __MULTIDIFF__ multidiff_
35 #define __MIXDIFF__ mixdiff_
36 #define __SIGMA__ sigma_
37 #define __GETMOBILITIES__ getmobilities_
42 doublereal
__VISC__(doublereal* t, doublereal* p, doublereal* x);
43 doublereal __BULKVISC__(doublereal* t, doublereal* p, doublereal* x);
44 doublereal __TCON__(doublereal* t, doublereal* p, doublereal* x);
46 void __TDIFF__(doublereal* t, doublereal* p, doublereal* x, doublereal* dt);
47 void __MULTIDIFF__(doublereal* t, doublereal* p, doublereal* x,
48 integer* ld, doublereal* d);
49 void __MIXDIFF__(doublereal* t, doublereal* p, doublereal* x, doublereal* d);
50 void __BINDIFF__(doublereal* t, doublereal* p, doublereal* x, integer* ld, doublereal* d);
51 doublereal __SIGMA__(doublereal* t, doublereal* p, doublereal* x);
53 doublereal __GETMOBILITIES__(doublereal* t, doublereal* p,
54 doublereal* x, doublereal* mobil);
72 warn_deprecated(
"FtnTransport",
"This class will be removed in Cantera 2.2.");
79 return cFtnTransport + m_model;
84 return __VISC__(&m_temp, &m_pres, m_x.begin());
89 return __BULKVISC__(&m_temp, &m_pres, m_x.begin());
94 return __TCON__(&m_temp, &m_pres, m_x.begin());
99 return __SIGMA__(&m_temp, &m_pres, m_x.begin());
104 __GETMOBILITIES__(&m_temp, &m_pres, m_x.begin(), mobil);
110 __TDIFF__(&m_temp, &m_pres, m_x.begin(), dt);
113 virtual void getBinaryDiffCoeffs(
int ld, doublereal* d) {
116 __BINDIFF__(&m_temp, &m_pres, m_x.begin(), &ldd, d);
119 virtual void getMultiDiffCoeffs(
int ld, doublereal* d) {
122 __MULTIDIFF__(&m_temp, &m_pres, m_x.begin(), &ldd, d);
127 __MIXDIFF__(&m_temp, &m_pres, m_x.begin(), d);
#define __VISC__
Change these definitions to change the names of the Fortran procedures.
Transport(thermo_t *thermo=0, size_t ndim=1)
Constructor.
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
thermo_t * m_thermo
pointer to the object representing the phase
virtual void getThermalDiffCoeffs(doublereal *dt)
Return a vector of Thermal diffusion coefficients [kg/m/sec].
Base class for transport property managers.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual doublereal viscosity()
void getMoleFractions(doublereal *const x) const
Get the species mole fraction vector.
Base class for a phase with thermodynamic properties.
virtual doublereal bulkViscosity()
The bulk viscosity in Pa-s.
A class that calls external Fortran functions to evaluate transport properties.
virtual void getMobilities(doublereal *mobil)
Get the Electrical mobilities (m^2/V/s).
size_t nSpecies() const
Returns the number of species in the phase.
virtual doublereal pressure() const
Return the thermodynamic pressure (Pa).
doublereal temperature() const
Temperature (K).
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void getMixDiffCoeffs(doublereal *d)
Returns a vector of mixture averaged diffusion coefficients.
virtual doublereal electricalConductivity()
virtual doublereal thermalConductivity()
Returns the mixture thermal conductivity in W/m/K.