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.

Main loop<br />

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

fd(1:nx,1:ny,0:8,1:species)<br />

do t = 1,nt,1<br />

do i = 1,nx,1<br />

do j = 1,ny,1<br />

call Update<strong>Lattice</strong>Data(...,f(:,:));<br />

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

fd_new(i,j,:,s) = f(:,s);<br />

call HydrodynamicMoments(...);<br />

enddo<br />

enddo<br />

enddo<br />

fd(:,:,:,:) = fd_new(:,:,:,:);<br />

enddo<br />

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

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

Saved successfully!

Ooh no, something went wrong!