Modifying restarts #331
Unanswered
twanverweij
asked this question in
Q&A
Replies: 1 comment
-
You can save the current state using a binary writer. If you want to stort a matrix, just take a look at this example here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Jan and team,
After having worked with SPlisHSPlasH for a while now I am in awe of the code base you provide, the possibilities are endless it seems, and seemingly large modifications and optimizations can be implemented without hassle. Many thanks for sharing!
I've managed to implement/tweak the work of Gissler et al. https://cg.informatik.uni-freiburg.de/publications/2020_SIGGRAPH_snow_v6.pdf to suit my needs for viscoelastic / plastic behaviour in ICSPH. To keep track of deformations however, this method requires keeping track of the deformation gradient which is a Matrix3r.
As the process modeled is a batch process, I would like to restart the simulation multiple times while keeping track of this quantity, adding new batches of particles every cycle. The question is however, what the best route would be. The partio-writer to .bgeo has the limitation of not being able to save anything beyond vectors. I could try a quick and dirty split of my deformation gradient matrix into vectors and making sure the simulation quantities are used after loading the .bgeo as FluidModel. Before I do however, I'm curious to learn if there are any better ways. Ideally usage of the binary state output format appears much cleaner.
Wouldn't it be better/possible to add particles with a deferred initialization after loading a binary state? Without diving deep,are there any blockers in the I/O architecture of SPlisHSPlasH for this to not work?
Thanks in advance,
Twan
Beta Was this translation helpful? Give feedback.
All reactions