Using the Time Stepper to get state values after each iteration
Posted: Sun Mar 01, 2020 11:10 am
Hi all,
I am working on using the Integrator of OpenSim API. While I run the following command,
manager.integrate(1);
It means that the underlying equations are being solved multiple times until 1 second time duration is reached. During that time duration, equations are solved and state values are saved multiple times and reused but what I get after the execution of this command are the final state values.
But I don't want the final state values after the whole time duration. I just want the state values right after one iteration (whatever be the type of integrator being used).
Can it be done using timeStepper function?
I tried using timeStepper using its Doxygen Class reference but it is not getting recognised in OpenSim API. If you have some example or some know how, please help us out.
Thanks
I am working on using the Integrator of OpenSim API. While I run the following command,
manager.integrate(1);
It means that the underlying equations are being solved multiple times until 1 second time duration is reached. During that time duration, equations are solved and state values are saved multiple times and reused but what I get after the execution of this command are the final state values.
But I don't want the final state values after the whole time duration. I just want the state values right after one iteration (whatever be the type of integrator being used).
Can it be done using timeStepper function?
I tried using timeStepper using its Doxygen Class reference but it is not getting recognised in OpenSim API. If you have some example or some know how, please help us out.
Thanks