Research Article

A Coupled Grid-Particle Method for Fluid Animation on GPU

Algorithm 1

Coupled grid-particle method for the free surface.
Update physical information of particles based on SPH
Update physical information of grids based on improved LBM-VOF
for all grid interface grids do
if grid abnormal grids then
   Generate particle at position by using Eq.(14)
   Calculate physical information for the particle by using Eq.(15) - Eq.(17)
   Delete the abnormal grid
  end if
end for
for all particle SPH do
Calculate the grid position of the particle by using Eq.(19)
if interface grid positions then
  Calculate physical information for the grid by using Eq.(21) - Eq.(23)
  Recalculate DF of the grid by using Eq.(1)
  Delete the particle
end if
end for