Jump to content

reusing sdf collision simdata


JoshJ

Recommended Posts

Hi,

I'm doing a simulation in the same dopnet in two steps,

step 1: a fracturing wall written to a file dop, bricks$SF4.sim

step 2: a smoke simulation where the rbd fractured bricks collide with the smoke

what I'd like to do is take the sdf information from step 1, and use it to affect the smoke in step 2. The only thing I've tried that works so far, is to dop import step 1 back into sops, then read it back into dops as a static object. However, it needs to generate the sdf information again this way, which I must avoid.

Are there any better workflows for something like this? I tried various things, like saving out the sdf from sops as .simdata files and reading them in to the static object's collision file parameter, but haven't gotten it to work successfully yet.

Link to comment
Share on other sites

Thanks sam, it looks like that works well for single objects. However, I have a dynamically fracturing wall (using johner's fracture otl), so I will need something that saves the sdf of all of the fractured rbd objects that are created on the fly, then reads them in for a later step of the simulation.

Therefore I was hoping I could somehow query and use the Geometry/Volume from all the objects in a saved sim file sequence, and collide that with a smoke simulation.

Link to comment
Share on other sites

Hey Josh,

If it helps, you can write/read multiple sdfs from the collisions tab by using a file name like chunk_`$OBJID`.sim

But why can't you read back your wall sim with a file DOP and use that to collide with the smoke?

Link to comment
Share on other sites

I just tried a simple prototype example of reading it back in with a file dop, and it worked. Thanks!

Hey Josh,

If it helps, you can write/read multiple sdfs from the collisions tab by using a file name like chunk_`$OBJID`.sim

But why can't you read back your wall sim with a file DOP and use that to collide with the smoke?

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