You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the passive fiber-force-length curve in the DeGroote2016 (or Thelen2003) equation becomes negative when fiber length < optimal length. OpenSim Moco adjusted the curve, but it is generating force when fiber length <= optimal length. I found that CasADi supports if statements through if_else function which can simply resolve this issue by ignoring the negative values in the original equation. This could make the curve more physiological:
I tested this method, and it functioned well in Muscle Redundancy Solver (Python). I'm looking forward to improvements, and thank you in advance.
The text was updated successfully, but these errors were encountered:
Thanks @mrrezaie. Currently, it's difficult to access CasADi functions directly when building new components and MocoGoals, but it would great to make this possible somehow. I will definitely consider it going forward.
Hi, the passive fiber-force-length curve in the DeGroote2016 (or Thelen2003) equation becomes negative when fiber length < optimal length. OpenSim Moco adjusted the curve, but it is generating force when fiber length <= optimal length. I found that CasADi supports if statements through
if_else
function which can simply resolve this issue by ignoring the negative values in the original equation. This could make the curve more physiological:I tested this method, and it functioned well in Muscle Redundancy Solver (Python). I'm looking forward to improvements, and thank you in advance.
The text was updated successfully, but these errors were encountered: