Failure for forward dynamics during gait simulation

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Failure for forward dynamics during gait simulation

Post by Xijin Hua » Wed Oct 14, 2020 9:26 am

Dear OpenSim experts:

I am performing a gait simulation for normal walking. I have finished the scaling, inverse kinematics, RRA and CMC successfully. But when I plan to perform forward dynamics simulation based on CMC, I got a problem, the forward simulation was diverged from the expected trajectory at the end of gait (the simulation is normal initially), as shown in the attached figures (Figure 1 &2). Could you please tell me why this could happen and how to solve this problem? I have attached the CMC setup file and Forward setup file for your references as well. If you need more information, please let me know. Thanks.
Attachments
4_Walk_cmc_setup.xml
(6.82 KiB) Downloaded 3 times
5_Walk_Forward_setup.xml
(8.74 KiB) Downloaded 4 times
Figure 2.jpg
Figure 2.jpg (41.1 KiB) Viewed 458 times
Figure 1.jpg
Figure 1.jpg (42.54 KiB) Viewed 458 times

Tags:

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: Failure for forward dynamics during gait simulation

Post by Thomas Uchida » Wed Oct 14, 2020 2:50 pm

This behaviour is expected: you cannot compute control forces using CMC and then expect the model to follow exactly the same trajectory when these forces are applied in a forward dynamic simulation. First of all, you would also need to apply the forces/torques generated by the residual and reserve actuators. Even if you did this, however, any small numerical differences (e.g., due to different time step sizes when integrating) would cause the model to deviate from the trajectory that CMC tracked.

User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Re: Failure for forward dynamics during gait simulation

Post by Xijin Hua » Wed Oct 14, 2020 3:49 pm

Hi, Thomas

Thank you very much for your kindly reply.

(1) First of all, could you please tell me more details about how to apply the forces/torques generated by the residual and reserve actuators? e.g. for the residual forces/torques, are they the ones generated in the RRA and should I add them as external load together with the ground reaction forces? For the forces/torques generated by the reserve actuators, where should I find them? are they generated in the RRA step or CMC step? Should I add them through the "control" in the Input panel?

(2) As you mentioned if this behavior is expected, then how should I make sure the Forward results are reasonable and correct?

(3) I think gait simulation is a very common general simulation in Biomechanics, but I didn't find a manual or guidance that specify the methodology/pipeline of this kind of simulation. I am wondering could you please provide me any suggestions about where I can learn the whole processes of the gait simulation, particularly including the forward simulation (add forces/torques generated by the residual and reserve actuators)? Any examples in the online manual or YouTube?

Thank you very much in advance. Your kindly reply will be highly appreciated.

Xijin

User avatar
hesam boroomand
Posts: 9
Joined: Tue May 19, 2020 3:33 am

Re: Failure for forward dynamics during gait simulation

Post by hesam boroomand » Sat Sep 18, 2021 4:22 am

Dear Xijin
Did you succeed in performing your simulation? if you did, i was wondering if you tell me how did you use reserve actuators or doing something which helped you

POST REPLY