Page 1 of 2

Extract Muscle Force Vectors (Lines of action)

Posted: Wed Nov 09, 2011 10:27 pm
by lfok
Hi all,

Does anyone know a way to extract muscle forces as 3D vectors i.e. lines of action in the lab reference frame since muscle forces calculated in OpenSim are magnitudes?

A previous post suggested using a PointKinematics Analysis to extract the origin and insertion of a muscle and drawing a vector between the two points. However the muscle I am interested in has a via and moving points so I am unsure how to define the muscle line of action in this case.

Any help would be greatly appreciated.

Thanks
Laurence

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Thu Nov 10, 2011 8:02 am
by bogert
Laurence,

If the muscle has via points or wrapping, the line of action changes direction. I assume that you want the line of action where it crosses a joint.

There is a trick to get this line of action out of a model. We have done this with SIMM and I think it will work with Opensim too.

If you add translational degrees of freedom to the joint, you can ask Opensim for the "moment arms" with respect to those degrees of freedom. SIMM and Opensim compute the moment arm by doing a small change in the generalized coordinate, compute the resulting muscle length change, and the moment arm is the ratio between the change in muscle length and the change in the coordinate. For translational degrees of freedom, these moment arms will be dimensionless, and they are the projections of the line of action (which is a unit vector) onto the axes of translation.

If the axes of translations are the coordinate axes of one body segment (which seems possible with a "custom joint" in Opensim), the three "moment arms" will be the X,Y,Z components of the line of action of the muscle, with respect to the segment XYZ frame.

You mention that you would like to have the line of action expressed in the global XYZ frame. This would require that the translational degrees of freedom in the joint are defined with axes in the global frame. I am not sure if Opensim can do that. Perhaps someone else knows. I can't think of any reason why you would want a line of action in global coordinates, though.

Hope this helps.

Ton van den Bogert

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Mon Nov 14, 2011 5:21 pm
by lfok
Thanks for your suggestion Ton van der Bogert.

I think your approach would work for a static pose or 1 time instant but I am trying to extract the muscle line of action over an entire gait cycle.

The muscles I'm interested in have both moving attachment points, which vary with knee flexion angle, and via attachment points, which only exist in a certain range of knee flexion angle. From my understanding of your approach(which may be incorrect), I would need to add translational degrees of freedom to the knee joint in the model and then input into the model the knee flexion at every time instant of the gait cycle and then ask OpenSim for "moment arms" with respect to these translational degrees of freedom at each time instant. Is my understanding correct?

Also the reason I mentioned wanting the muscle lines of acton in the lab reference frame is because I want to break up my muscles line of action into sagittal and frontal plane magnitudes. PointKinematics Analysis in OpenSim can do the transform from a joint reference frame to the lab reference frame so it should be no problem if I can extract the line of action in any reference frame.

Thanks again,
Laurence

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Tue Nov 15, 2011 7:28 am
by bogert
Yes, your understanding is correct.

In the Opensim GUI, you can generate a graph of x,y,z components of the line of action vector, as a function of time within the gait cycle, just as you would do with moment arms. Use Tools->Plot->Y-Quantity->moment arm to generate the three curves. Then you can export these results to a file for further analysis.

The hardest part will be to edit the model and insert those translational degrees of freedom in the joints. Also, when computing lines of action during the gait cycle, you need to set those generalized coordinates to zero in the motion file.

Ton

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Sun Jul 01, 2012 10:08 am
by hporamet
Hi, all
Thank you for talk about LOA .This is a problem of my thesis.I 'm lookging for a methods for find the line of action in the OpenSim.But in the Opensim how can I find a PointKinematics Analysis and the Opensim GUI - plot LOA X,Y,Z component.Please give more a details about this.

Thank you for any help
Poramet

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Tue Jul 03, 2012 11:22 am
by aymanh
Hi Poramet,

Please check the project below on simtk.org and let us know if it works for you.

https://simtk.org/home/force_direction

Best regards,
-Ayman

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Sat Jul 07, 2012 5:00 am
by hporamet
Hi, Ayman
That project make clearly of muscle force ,muscle moment arm ,LOA and make short time for compute.

Thank you very much
Poramet

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Tue Aug 07, 2012 6:19 am
by michalacadova
Hi to everybody,
Does the above mentioned project (OpenSim plugin to extract the muscle line of action) really compute the “moment arms” as well? I thought that it reports the “lines of action” and the “coordinates of the muscles attachments”. But not the moment arms, i.e. the distance from the muscle line of action to the center of the joint on which it acts. Even though, this can be quite easily computed if one knows the muscle line of action and the joint position. But only if the joint is on one place and is not moving during the time. If the joint is changing its position during the time, I would need its coordinates during the time as well. Then it is just the computation of the distance between a vector and a point.

Michala

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Tue Aug 07, 2012 6:24 am
by michalacadova
I have just found this post https://simtk.org/forums/viewtopic.php? ... +arm#p6200 so I will go through it and see if it helps.

Re: Extract Muscle Force Vectors (Lines of action)

Posted: Thu Aug 30, 2012 4:30 am
by modenaxe
Hi Michala,

the MuscleForceDirection plugin only calculates the muscle lines of action (and optionally extracts the coordinates of the muscle attachments) as it was created to help in setting up finite element simulations. Please refer to the documentation included in the release package https://simtk.org/project/xml/downloads ... oup_id=750 for further details.

The muscle moment arms can be easily obtained through the GUI or by running a MuscleAnalysis.

All the best,

Luca