Muscle forces components

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Najoua Assila
Posts: 34
Joined: Thu Aug 30, 2018 9:24 am

Muscle forces components

Post by Najoua Assila » Sun Mar 17, 2019 6:50 pm

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

Tags:

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Muscle forces components

Post by Thomas Uchida » Sat Mar 23, 2019 7:07 am

The "OpenSim plugin to extract the muscle lines of action" SimTK project may be helpful: https://simtk.org/projects/force_direction/.

User avatar
Najoua Assila
Posts: 34
Joined: Thu Aug 30, 2018 9:24 am

Re: Muscle forces components

Post by Najoua Assila » Mon Mar 25, 2019 5:58 am

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

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Muscle forces components

Post by Thomas Uchida » Tue Mar 26, 2019 6:59 am

You should be able to access each Muscle's PathPointSet via GeometryPath (https://simtk.org/api_docs/opensim/api_ ... yPath.html).

User avatar
Najoua Assila
Posts: 34
Joined: Thu Aug 30, 2018 9:24 am

Re: Muscle forces components

Post by Najoua Assila » Tue Mar 26, 2019 7:33 am

Hi,

Thank you for your reply, but I am afraid I don't see why I would need the PathPointSet.

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Muscle forces components

Post by Thomas Uchida » Tue Mar 26, 2019 8:46 pm

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.

User avatar
Najoua Assila
Posts: 34
Joined: Thu Aug 30, 2018 9:24 am

Re: Muscle forces components

Post by Najoua Assila » Wed Mar 27, 2019 5:52 am

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

POST REPLY