Page 1 of 1
Muscle forces components
Posted: Sun Mar 17, 2019 6:50 pm
by nassila
Hi everyone,
I am trying to evaluate joint reaction forces from muscle forces (not estimated in Opensim). In order to do that, I want to access the direction of the muscle force at each state.
I found the function addInEquivalentForces, but I am not sure if it is the way to go, nor how to implement it.
Additionally, in which frame will the forces be expressed?
Thank you in advance for your help !
Najoua
Re: Muscle forces components
Posted: Sat Mar 23, 2019 7:07 am
by tkuchida
The "OpenSim plugin to extract the muscle lines of action" SimTK project may be helpful:
https://simtk.org/projects/force_direction/.
Re: Muscle forces components
Posted: Mon Mar 25, 2019 5:58 am
by nassila
Hi,
Thank you for your reply.
I have already checked this plugin, but it's only accurate when there are no wrapping objects, however, I have some on my model, so I can't use it.
That's why I checked the functions Opensim uses under JointReaction analysis, and found the addInEquivalentForces, but I am not sure about it.
At this point, I realize the state up to the positions level, I equilibrate the muscles. For each muscle, I call the path and apply "addInEquivalentForces(state, Tension, Body_forces, gene_forces). Where Tension includes the muscle forces I have obtained from the previous step. Body forces is a vector of spatial vectors (set to 0), and gene_forces is a vector set to zero.
It seems redundant to me to feed the generalized forces from the state, since they were already included in the estimation of the muscle forces, but I am not sure. I appreciate if you could give some clarifications and comments.
Regards,
Najoua
Re: Muscle forces components
Posted: Tue Mar 26, 2019 6:59 am
by tkuchida
You should be able to access each Muscle's PathPointSet via GeometryPath (
https://simtk.org/api_docs/opensim/api_ ... yPath.html).
Re: Muscle forces components
Posted: Tue Mar 26, 2019 7:33 am
by nassila
Hi,
Thank you for your reply, but I am afraid I don't see why I would need the PathPointSet.
Re: Muscle forces components
Posted: Tue Mar 26, 2019 8:46 pm
by tkuchida
I don't see why I would need the PathPointSet
I believe the PathPointSet is where you can find the coordinates of the points that define the path of the muscle. The first two points and last two points could be used to compute the direction in which the muscle force is applied to each body.
Re: Muscle forces components
Posted: Wed Mar 27, 2019 5:52 am
by nassila
Hi,
Sorry, I am afraid I haven't been clear enough. Since my last mail, I have already succeeded in implementing the AddInEquivalentForces. I was just wondering if the forces are expressed in the local body frame or in the ground frame.
Thanks for your help.
Najoua