Page 1 of 1

Bushing forces and CMC

Posted: Tue Jun 05, 2012 5:18 am
by moecurtin
I have found that if I try to run CMC on a model with bushing forces in the model file it fails very early in the simulation. If I remove the bushing forces from the model and put the very same forces in the reserve actuator file for the CMC setup it works ok. Is there a reason for this? And is there a recommended method for using bushing forces with CMC?

Thanks!

Re: Bushing forces and CMC

Posted: Tue Jun 05, 2012 5:16 pm
by aseth
Congrats! You found a bug in CMC. The issue is a miscounting of muscle states, which CMC uses. When other forces, like a BushingForce, add states to the system (i.e. to calculate dissipated energy) the assumption that the states are all muscle states is wrong, and causes the failure. This has been fixed for future releases. As a work around, you can use the CoupledBushingForce in the force plugin example (OpenSim2.4.0\sdk\APIExamples\ForcePluginExample), which is a bushing but with the full 6x6 stiffness matrix (allows cross coupling of deflections). Sorry for the inconvenience.