VisualSPHysics is an add-on for Blender that allows the user to render realistic images and animations for DualSPHysics simulations.
VisualSPHysics also includes a foam simulator for DualSPHysics fluid simulations. It is based on the method of M. Ihmsen et al.
More details about this tool can be read on the reference paper:
Check out the wiki to read the installation and usage documentation.
https://www.youtube.com/watch?v=EvSDFRfJToQ https://www.youtube.com/watch?v=U6lloRvgoXA