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.

TOOLS

  • 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 to remove liquid
  • Mix — mix liquids [alt or right mouse button]
  • Remove — remove liquids, 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 straight lines
  • [Particle Bar] — shows number of particles on scene
  • Del All Liquid — delete all liquid
  • Delete Scene — clear everything

Particle bar shows the number of particles on the scene. Maximum is 5000 and default framerate is 40fps. If the frame rate drops below 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 - 2026 Peter Blaskovic | escape motions




What do you think?

0 Responses

  • icon upvote

    0

    Upvote

  • icon funny

    0

    Funny

  • icon love

    0

    Love

  • icon surprised

    0

    Surprised

  • icon angry

    0

    Angry

  • icon sad

    0

    Sad

2025-01-18 21:57

unrealistic water behaviour, not a simulation.

Reply
2024-05-31 21:39

fun is source code open?

Reply
2023-03-06 19:50

funni

Reply
2022-09-05 12:36

I was trying to use this to make demonstrations of network buffers (I can draw tanks to represent buffers and the water represents data). What would make this easier: a valve that can be opened and closed with a click (deleting and re-drawing walls takes dexterity!) and a way to slow down time (to give me longer to explain to my audience).

Reply
2022-08-02 01:45

It was so disappointing to see that this doesn't work.
I tried to build a siphon but it didn't behave like it should.

Reply
2022-06-01 23:40

Add ships, after all this is a fluid simulation

Reply
2021-11-10 17:29

You should add a feature where you can change the size of the brush and it changes the size of the sewer and pipes too. Also, can you explain how air works?

Reply
2023-03-17 02:12

air works to push the liquid, however the ducks do not get pushed by the air

Reply
2021-06-06 16:59

This is so satisfying!

Reply
2021-01-01 22:39

what does the air do? how to simulate athmospheric pressure?

Reply
2020-11-08 18:37

Hi

Reply
2020-10-18 17:09

You should make a planet sandbox like the powder game and add chemical elements like oxygen liquid nitrogen hydrogen silicon plutonium(which is extraordinary and fizzles up at heat and pressure) clone (which if anything touches it repeats forever)iron sand water to make the planets (if gravity is not on use gpmp which is gravity pump)you heat up the gravity pump put chemicals(such as iron sand and silicon) heat them it makes a perfect maybe not perfect)you can add water and an atmosphere I am possibily brainstorming. Plus add electricity and noble gas

Reply
2020-09-22 16:54

Hi

Reply
2018-02-09 21:14

hi

Reply
2018-01-30 21:37

any android version?

Reply
2017-12-06 23:51

hi

Reply