Page 1 of 1

Saving state vector and using it as initial state:

Posted: Wed Jul 08, 2020 12:02 pm
by mlaudu
I want to use the state vector at the end of a simulation to be the starting vector of a new simulation after making some changes to the model and calling initSystem. I am working in C++ API. I need guidance on the following questions:
1. How do I save the state vector at the end of a simulation?
2. How do I use that state vector as the starting point for a new simulation after re-initializing the system with initSystem?
Thanks.

Re: Saving state vector and using it as initial state:

Posted: Wed Jul 08, 2020 2:09 pm
by mlaudu
I got around the problem using the States Table facility of OpenSim API. Thanks.