Jump to content

Flip solver divergence


Pavel K

Recommended Posts

I'm stuck with a seemingly simple task.

I have to quickly fill up rectangular tank with viscous fluid (in 80 frames). Naturally I added divergence field at the bottom of a tank but when it fills up water just keeps moving sideways because of a divergence. That's not ok, I need water surface to stay relatively calm at a certain height. But if I turn divergence off, water level just drops drastically.

Is there a way to quickly fill up a tank with water using outside flip source?

flip_001.jpg

flip_002.jpg

divergence_fill_test.hipnc

Link to comment
Share on other sites

Ok, so here's final result

https://www.youtube.com/watch?v=kB15FajJrVg

I ran into a problem with unstable surface (it was uneven and constantly flickering). Couldn't make it to stay calm untill I tried this:

if (@P.y<ch("height")) i@stopped=1

It's not perfect but passable; I have no idea how to do it better. There has to be a trick to smooth out the surface of flip simulations. Maybe I should have raised particle separation from 0.07 to 0.02 but I doubt it.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...