Jump to content

Export the result of numerous simulations procedurally


Jaik

Recommended Posts

Hi,

I'm a very new user to Houdini and sorry if this has been asked before, but I searched for everything that made sense to me and couldn't find a forum post. I may just not yet know the right Houdini vernacular to search for.

What I want to do is to be able to leave a simulation running over night, where it would repeat the simulation using a set of different params (set by a global seed for example), and output the resulting geometry. For example, maybe I want to sim a rock fracture, and I want 100 different rock fractures.

Could someone point me in the right direction for a tutorial, documentation, example file, other forum posts. Anything that could help me start. I would prefer not to have 100 copies of the sim next to one another and run them parallel because I like my computer as a not melted pool of metal. So I would like to serialize it if possible.

 

Thanks in advance!

Link to comment
Share on other sites

'wedge' is the term you're after.

Never used it myself, this seemed like a good excuse to try, see the attached hip.

The idea is to setup your scene to write something to disk. Here I have a simple rbd setup that use a file cache sop to save the sim as a bgeo sequence.

You then create a wedge rop, and tell it which other rop it will control (the file cache sop), how many times to run (4 times), and what parameters you want changed each time it runs (the global seed on a velocity sop, so my rbd pieces get different initial velocities per wedge).

If you render the wedge rop, you'll see the sim run 4 times, and the file cache sop save the sim 4 times. If you use the filecache defaults, this will all be wasted effort, as each variation will just write to the same file location.

To fix this, you can use a $WEDGENUM variable in the file path, that will be 0 for the first run, 1 for the second, 2, 3.

That's all from me refusing to read the docs and making lots of assumptions. :)

 

rbd_wedge.hipnc

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