Jump to content

FLIP/Grains interaction setup - hip file


Dave Stewart

Recommended Posts

Hello All, 

 

Been lurking for a bit since I started dabbling in Houdini, and must say am in awe of the level of genius on exhibit here! Houdini is still kicking my ass in so many ways, but I'm a glutton for punishment I guess, and looking for excuses to spend less time in Max. :)

 

This is a simple setup that seems to work OK, but I'm curious if there are other/better ways of getting these 2 solvers to interact. Currently I'm using PopAdvectByVolumes on the Grains to transfer Vel from the FLIP sim, and building a collision SDF in a SOP solver attached to the Grains sim which then gets pulled into a SourceVolume on the FLIP sim.

 

I'm sure this is nowhere near physically accurate, but it does look pretty neat, and can be improved by adding custom attributes on the grain points for wetness etc.

 

Thoughts?

 

--Dave

DJS_ODForce_FLIP_Grains_Interact_SampleSetup.hip

  • Like 5
  • Thanks 4
Link to comment
Share on other sites

Dunny what kind of hardware you got, Dave, but a tip is ticking the OpenCL boxes, this sim was a magnitude faster using OCL than not.

 

I also believe you could have set this up using a multi solver as both FLIP and grains are particle based simulations, I'm pretty sure you are doing a lot of stuff twice having them interact like this - if you jump into the FLIP and grain solvers you can see how they themselves are set up and how everything you are doing could happen one step into either one of these solvers.

 

With that said, jumping into and starting to dissect the solvers isn't the easiest thing, though it's helpful watching stuff like this 1-2 times before you jump in. :)

 

Edited by Farmfield
Link to comment
Share on other sites

Thanks for the feedback Johnny, much appreciated!

 

I did have OpenCL enabled while testing, but disabled it for compatibility. Plus my Quadro here at work is less stable with ocl then the Titan I have at home.  Good point to make though, I'll add a note about that to the Vimeo description where the file is also posted.

 

I'm curious if you've tried a multi-solver setup that works for something like this. My (basic and possibly misguided) understanding is that while FLIP uses particles to transport simulation data, it uses volumes for solving (collisions particularly), whereas Grains uses purely particle-based collisions for it's PBD solve. Hence them not interacting natively, though I'm sure there are more elegant ways to make this happen than my n00b setup! ;)

 

I did watch the solvers from scratch a while back, but probably only absorbed/understood a fraction of it at the time. You're right, need to watch it 1 or 2 more times and then re-approach this problem!

 

--d

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...