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);
77 return cFtnTransport + m_model;
82 return __VISC__(&m_temp, &m_pres, m_x.begin());
87 return __BULKVISC__(&m_temp, &m_pres, m_x.begin());
92 return __TCON__(&m_temp, &m_pres, m_x.begin());
97 return __SIGMA__(&m_temp, &m_pres, m_x.begin());
102 __GETMOBILITIES__(&m_temp, &m_pres, m_x.begin(), mobil);
108 __TDIFF__(&m_temp, &m_pres, m_x.begin(), dt);
111 virtual void getBinaryDiffCoeffs(
int ld, doublereal* d) {
114 __BINDIFF__(&m_temp, &m_pres, m_x.begin(), &ldd, d);
117 virtual void getMultiDiffCoeffs(
int ld, doublereal* d) {
120 __MULTIDIFF__(&m_temp, &m_pres, m_x.begin(), &ldd, d);
125 __MIXDIFF__(&m_temp, &m_pres, m_x.begin(), d);