sailfish-team / sailfish

Lattice Boltzmann (LBM) simulation package for GPUs (CUDA, OpenCL)
http://sailfish.us.edu.pl
230 stars 85 forks source link

Simplify force implementation. #10

Closed mjanusz closed 12 years ago

mjanusz commented 12 years ago

For consistency, we always compute an acceleration vector on the compute device, and only transform it into a force vector in the code that modifies the mass fractions (by having density in the force prefactor).

This commit also fixes a bug which caused the force implementation to use a spurious 'rho' factor in non-Shan-Chen simulations.