20.01.2015 Views

Tutorial: Multi-Species Lattice Boltzmann Models and Applications

Tutorial: Multi-Species Lattice Boltzmann Models and Applications

Tutorial: Multi-Species Lattice Boltzmann Models and Applications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Validation <strong>and</strong> simple applications<br />

Update<strong>Lattice</strong>Data loop with variable transformation<br />

do k=0,8,1<br />

do s=1,species,1<br />

call EquilibriumDistribution(...,feq(:))<br />

lambda(s)=...;<br />

TRANSFORMATION f(:,s) -> g(:,s)<br />

do ik=0,8,1<br />

gc(ik)=g(ik,s)+lambda’(s)*(feq(ik)-g(ik,s));<br />

enddo<br />

g_new(BB(k),s) = gc(BB(k));<br />

enddo<br />

enddo<br />

BACK-TRANSFORMATION g_new(:,s) -> f_new(:,s)<br />

COMPUTE CONSERVED MOMENTS<br />

SOLVE LINEAR SYSTEM FOR NON-CONSERVED MOMENTS<br />

Pietro Asinari, PhD (Politecnico di Torino) <strong>Multi</strong>-<strong>Species</strong> LB <strong>Models</strong> Rome, Italy, on July 5-9, 2010 35 / 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!