Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
Carlos Gonçalves
- Posts: 127
- Joined: Wed Jun 08, 2016 4:56 am
Post
by Carlos Gonçalves » Fri Apr 30, 2021 8:27 am
Hello everyone,
I think I found a bug in the scaling of DeGrooteFregly2016Muscle. It is not updating the optimal fiber length and the tendon slack.
If someone could check it out, it would be fantastic. I'm using a version of the 2D_gait.osim available in the examples for OpenSim Moco.
My scaling sets a 1.18 factor for the new subject's tibia, but the soleus' optimal fiber length and the tendon slack remain the same as the original.
______________optimal fiber length | tendon slack
Previous scaling: 0.0481705511245028 x 0.240852755622514
After scaling: 0.0481705511245028 x 0.240852755622514
Best regards.
Tags:
-
Jiacheng Weng
- Posts: 26
- Joined: Wed Jan 15, 2020 1:05 pm
Post
by Jiacheng Weng » Tue May 04, 2021 10:15 am
Hi Carlos,
I realized the same issue with DeGrooteFregly2016Muscle. Do you happen to know any workaround?
Thanks,
Jiacheng
-
Jiacheng Weng
- Posts: 26
- Joined: Wed Jan 15, 2020 1:05 pm
Post
by Jiacheng Weng » Tue May 04, 2021 4:09 pm
Based on the implementation of the Millard2012EquilibriumMuscle, a manual fix would be to record the scaling factor, and multiply them to the original optimal_fiber_length and tendon_slack_length. However, this is rather annoying. I guess one would take the code from Millard2012EquilibriumMuscle, put it under DeGrooteFregly2016Muscle, and compile from source.
Sola
-
Carlos Gonçalves
- Posts: 127
- Joined: Wed Jun 08, 2016 4:56 am
Post
by Carlos Gonçalves » Wed May 05, 2021 5:07 am
Hello Jiacheng,
What I've been doing is scaling everything with Thelen or Millard muscles, and prior to the Moco simulation, I'm replacing the muscle types. That at least updates the muscle lengths and tendons slack.
In despair (
![Shocked :shock:](./images/smilies/icon_eek.gif)
), I've also done something that worked (at least), which was: updating the muscle lengths and tendon slacks manually with a piece of code that used the scaling factors for pelvis, femur, and tibia.
One other thing that I'm doing is updating the muscles isometric forces with a factor depending on the subject's weight. That is also helping in the simulation interpretations.
I hope this could help everyone.
Good talk.
Best regards.
Carlos
-
Jiacheng Weng
- Posts: 26
- Joined: Wed Jan 15, 2020 1:05 pm
Post
by Jiacheng Weng » Wed May 05, 2021 6:25 am
Hi Carlos,
Thanks for your comments. I am going to try the muscle replacement method for now
Cheers,
Jiacheng