12.07.2015 Views

Sailfish: Lattice Boltzmann Fluid Simulations with GPUs and Python

Sailfish: Lattice Boltzmann Fluid Simulations with GPUs and Python

Sailfish: Lattice Boltzmann Fluid Simulations with GPUs and Python

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

<strong>Sailfish</strong>: Mako template example – bounceback ruleCUDA C code, D2Q9 grid:__device__ inline void bounce_back(Dist * fi){float t;t = fi->fE;fi->fE = fi->fW;fi->fW = t;t = fi->fN;fi->fN = fi->fS;fi->fS = t;t = fi->fNE;fi->fNE = fi->fSW;fi->fSW = t;t = fi->fNW;fi->fNW = fi->fSE;fi->fSE = t;}M. Januszewski (IoP, US) <strong>Sailfish</strong>: LBM <strong>with</strong> <strong>GPUs</strong> <strong>and</strong> <strong>Python</strong> GTC 2012 14 / 26

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

Saved successfully!

Ooh no, something went wrong!