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.
DeGrooteFregly2016Muscle scaling problem
- Carlos Gonçalves
- Posts: 139
- Joined: Wed Jun 08, 2016 4:56 am
- Jiacheng Weng
- Posts: 26
- Joined: Wed Jan 15, 2020 1:05 pm
Re: DeGrooteFregly2016Muscle scaling problem
Hi Carlos,
I realized the same issue with DeGrooteFregly2016Muscle. Do you happen to know any workaround?
Thanks,
Jiacheng
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
Re: DeGrooteFregly2016Muscle scaling problem
This issue has been submitted to the GitHub page: https://github.com/opensim-org/opensim-core/issues/2995
Nick commented that the DeGrooteFregly2016Muscle was missing the method for scaling the muscle related properties.
Sola
Nick commented that the DeGrooteFregly2016Muscle was missing the method for scaling the muscle related properties.
Sola
- Jiacheng Weng
- Posts: 26
- Joined: Wed Jan 15, 2020 1:05 pm
Re: DeGrooteFregly2016Muscle scaling problem
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
Sola
- Carlos Gonçalves
- Posts: 139
- Joined: Wed Jun 08, 2016 4:56 am
Re: DeGrooteFregly2016Muscle scaling problem
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 ( ), 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
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 ( ), 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
Re: DeGrooteFregly2016Muscle scaling problem
Hi Carlos,
Thanks for your comments. I am going to try the muscle replacement method for now
Cheers,
Jiacheng
Thanks for your comments. I am going to try the muscle replacement method for now
Cheers,
Jiacheng