Continue simulation based on saved states #2711
-
Is there a way to stop the simulation and save the states and close the program, then open the scene again and load the latest states as initial conditions (position and velocities) and continue the simulation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It may be possible to do what you want to achieve with the ReadState/WriteState. |
Beta Was this translation helpful? Give feedback.
-
As we also discussed together @smhadisadati, several internal mechanical information remain not accessible (as Data) in SOFA. Therefore, this prevents from saving / exporting these info (internal stress), i.e. it prevents from restarting from a pre-stressed configuration. A possible but brutal approach was used by @p-shg for reinforcement learning method by using .... |
Beta Was this translation helpful? Give feedback.
As we also discussed together @smhadisadati, several internal mechanical information remain not accessible (as Data) in SOFA. Therefore, this prevents from saving / exporting these info (internal stress), i.e. it prevents from restarting from a pre-stressed configuration.
A possible but brutal approach was used by @p-shg for reinforcement learning method by using ....
os.fork
but it works.This topic is strongly related to the SOFA Data, which could be an very interesting technical work in the core of SOFA to finance.