Fluid Water Simulation 3

This is a new version of liquid simulation sandbox, in which you can create water, oil and foam, add pipes and sewers, draw walls and air emitters. A new Grid function is added for drawing straight lines. The maximum number of particles (drops) is 5000.
It is based on smoothed particle hydrodynamics (SPH) - Langrangian method of fluid simulation. This simulation is quite process-intense, sometimes it helps when you close other tabs in a browser.

New features:
- Added pipes and sewers for a never-ending complex water system.
- Grid for straight lines.
- Max number of particles is now 5000.
- and... Ducks! You can play with 3 ducks :).

Here you can find more experiments.


Water - create water
Oil - create oil, lighter and higher viscosity than water
Foam - create foam, very light with high viscosity
P - Pipe - create water, oil or foam pipe
Sewer - create sewer, if you want to remove liquid
Mix - use for mixing liquids [alt. right mousebutton]
Remove - remove liquid, pipes, sewers, ducks

Wall - draw collision Walls
Delete W. - delete collision Walls

Air - draw Air Emitter (visible when edited)
Delete A. - delete Air Emitter (visible when edited)

Duck - add three yellow ducks

Grid - use Grid for drawing straight lines
[Particle Bar] - shows the number of particles on scene
Del All Liquid - delete all liquid
Delete Scene - clear everything

Particle bar shows a number of particles on the scene. The maximum is 5000 and the default framerate is 40fps. If the frame rate is lower than 30fps the bar is greyed out.

Particle-based Visoelastic Fluid Simulation - this experiment is based on this paper, modified for multiple fluid collisions and optimized for realtime simulation.

Programmed in processing.

Copyright © 2008 - 2023 Peter Blaskovic | escape motions

comments powered by Disqus