Jump to content

Fluid/Particle cache (.sim)


Recommended Posts

So I've got a project where I have some fluid spraying inside a container, and it's quite a lot of fluid particles changing quite quickly (it's a small, complex container). I want to be able to view it from start to finish, so frame 0-240, but it's just too much data and my cache, presumably runs out of memory and can't play it in realtime.

I saved a .sim sequence using a ROP Output Solver, then loaded in the .sim sequence with a File SOP in my AutoDopNetwork. It still doesn't play in realtime because it has to load the geometry and again, seems to run out of memory to store every frame. The other problem is, for this 240 frame simulation it's taking up almost 50GB. Is this realistically how much space .sims take up??

Do I really need to save out a .sim for this, or is there another easier, less storage intensive way to see my simulation in realtime (similar to Krakatoa's PRT Loader?) so I know what it's going to look like before I render.

Any tips on rendering simulations or viewing them as I work are great - Thanks!

Edited by Eucalyptus
Link to comment
Share on other sites

Saving particles out as .bgeo files is a much more efficient format than .sim files. With .sim you're getting the entire state of the sim, including all volumes and extra attributes on the FLIP particles (I assume you're talking about FLIP, but this is true of sims in general - you usually just want to save the output geometry).

The shelf tools create a fluidtank_fluid object that imports the FLIP particles for meshing and saving to disk, using a DOP I/O node. The important tabs on that node are Compression and Export to File. On the Compression tab delete any non-essential attributes: I I usually do something like "* ^pscale ^v" (without quotes) which just keeps P, velocity and scale, but you can keep whichever you want. Then use the Export to File tab to write out .bgeo files. After writing them out, turn on Load from Disk at the top of the node.

Also, for simulation, turn off Allow Caching to Disk on the DOPNet, since you're saving the output in a more compact format, and caching just takes up space and slows things down at that point.

Link to comment
Share on other sites

Thanks johner!

So if I save out my simulation as .bgeo and then us the DOP I/O to Load from Disk, will this cause my render to go much faster as well, since it doesn't have to sim at render time, but instead just reads the geometry? If I'm understanding that correctly...

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