divergence.hip
finite difference divergence, the difference of neighboring voxels, summed over all axes, regularized over the step size of the grid, from a cfd standpoint atleast.
good fluids cheat sheet http://http.developer.nvidia.com/GPUGems/gpugems_ch38.html