Saving state vector and using it as initial state:

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Musa Audu
Posts: 43
Joined: Mon Nov 24, 2008 11:30 am

Saving state vector and using it as initial state:

Post by Musa Audu » Wed Jul 08, 2020 12:02 pm

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.

Tags:

User avatar
Musa Audu
Posts: 43
Joined: Mon Nov 24, 2008 11:30 am

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

Post by Musa Audu » Wed Jul 08, 2020 2:09 pm

I got around the problem using the States Table facility of OpenSim API. Thanks.

POST REPLY