29 DustyGasTransport::DustyGasTransport(
thermo_t* thermo) :
129 return (dynamic_cast<Transport*>(tr));
163 throw CanteraError(
"DustyGasTransport::init",
"unknown parameter");
230 for (
size_t n = 0; n <
m_nsp; n++) {
231 for (
size_t m = 0; m <
m_nsp; m++) {
232 m_d(n,m) *= por2tort;
253 const doublereal TwoThirds = 2.0/3.0;
254 for (
size_t k = 0; k <
m_nsp; k++) {
281 for (
size_t k = 0; k <
m_nsp; k++) {
284 for (
size_t l = 0; l <
m_nsp; l++) {
290 for (
size_t j = 0; j <
m_nsp; j++) {
300 const doublereal*
const state2,
301 const doublereal delta,
302 doublereal*
const fluxes)
305 doublereal conc1, conc2;
310 const doublereal t1 = state1[0];
311 const doublereal t2 = state2[0];
312 const doublereal rho1 = state1[1];
313 const doublereal rho2 = state2[1];
314 const doublereal*
const y1 = state1 + 2;
315 const doublereal*
const y2 = state2 + 2;
316 doublereal c1sum = 0.0, c2sum = 0.0;
318 for (
size_t k = 0; k <
m_nsp; k++) {
319 conc1 = rho1 * y1[k] /
m_mw[k];
320 conc2 = rho2 * y2[k] /
m_mw[k];
321 cbar[k] = 0.5*(conc1 + conc2);
322 gradc[k] = (conc2 - conc1) / delta;
330 doublereal pbar = 0.5*(p1 + p2);
331 doublereal gradp = (p2 - p1)/delta;
332 doublereal tbar = 0.5*(t1 + t2);
350 b = p*p*p*d*d/(72.0*t*(1.0-p)*(1.0-p));
355 scale(cbar, cbar + m_nsp, cbar, b);
359 scale(fluxes, fluxes + m_nsp, fluxes, -1.0);
380 throw CanteraError(
"DustyGasTransport::updateMultiDiffCoeffs",
381 "invert returned ierr = "+
int2str(ierr));
397 for (
size_t i = 0; i <
m_nsp; i++) {
398 for (
size_t j = 0; j <
m_nsp; j++) {
425 for (
size_t k = 0; k <
m_nsp; k++) {