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
Muscle forces components
- Najoua Assila
- Posts: 34
- Joined: Thu Aug 30, 2018 9:24 am
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Muscle forces components
The "OpenSim plugin to extract the muscle lines of action" SimTK project may be helpful: https://simtk.org/projects/force_direction/.
- Najoua Assila
- Posts: 34
- Joined: Thu Aug 30, 2018 9:24 am
Re: Muscle forces components
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
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
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Muscle forces components
You should be able to access each Muscle's PathPointSet via GeometryPath (https://simtk.org/api_docs/opensim/api_ ... yPath.html).
- Najoua Assila
- Posts: 34
- Joined: Thu Aug 30, 2018 9:24 am
Re: Muscle forces components
Hi,
Thank you for your reply, but I am afraid I don't see why I would need the PathPointSet.
Thank you for your reply, but I am afraid I don't see why I would need the PathPointSet.
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Muscle forces components
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.I don't see why I would need the PathPointSet
- Najoua Assila
- Posts: 34
- Joined: Thu Aug 30, 2018 9:24 am
Re: Muscle forces components
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
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