Jump to content

Flip Pour with Penetrating Objects (chocolate and nuts)


ObiNon

Recommended Posts

Hi I am trying to create a pour of chocolate and have some nuts fall into it. The problem I have is that the chocolate is very viscous, and the nut bounces off of it when they hit it. (I set the nuts and fluids bounce to 0 and cranked up the friction ... did not seem to do anything.) The nuts deform the stream of chocolate instead of getting submerged into and riding along with it. 

Any thoughts ?

Right now the scene is just a simple flip sim from an object with an alembic nut rbd (could be a sphere) falling into the fluid stream. Nothing fancy at all yet.

Link to comment
Share on other sites

this is from sidefx support : seems like having different creation frames was one of the reason for the problem.

Warning: Getting RBD & FLIP to interact is not a stable proposition.

 

The following changes were needed to get this working:

1) When two objects are in Mutual Collision they still have an implicit order defined by object creation time. Normally this makes the left input show up first, but in this case the pistachio is only built on frame 100, so it ends up running after the flip solver. This means the usual feedback was not working for you, but the pistachio was colliding with the flip as a hard surface. The work around is to create the pistachio on frame 1 but have it inactive until 100.

 

2) The FLIP solver's Volume::Solver::Feedback Scale has to be changed to 1 from the default 0 so it applies feedback forces.

 

3) The FLIP feedback forces are based on pressure gradients so require sufficient grid resolution to work. The setup there had too few particles for this to resolve nicely. I switched to a 0.05 particle separation and got good collisions.

 

If you change things, you may have to tweak the feedback scale to balance how much force is used to stop & float the pistachio. In this case I was lucky that 1.0 worked out of the box, often I have more rounds of tweaking to get it good.

 

Edited by Mdonovan
  • Like 3
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...