How to get Joint Forces?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
jaebeom jo
Posts: 3
Joined: Sun Aug 27, 2023 11:51 pm

How to get Joint Forces?

Post by jaebeom jo » Tue Jan 09, 2024 1:01 am

Hello,

I have a question regarding joint reaction forces. I need to obtain six elements for each joint: forces and moments along the x, y, and z axes, specifically Fx, Fy, Fz, Mx, My, and Mz.

The inverse dynamics (or joint reaction analysis) provided by OpenSim is unsatisfactory for my needs. I require both the linear forces and the moments in all three dimensions. (Fx, Fy, Fz, Mx, My, and Mz.)

Can anyone provide methods to capture these six elements for each joint in OpenSim?

Thank you.

Tags:

User avatar
Mohammadreza Rezaie
Posts: 376
Joined: Fri Nov 24, 2017 12:48 am

Re: How to get Joint Forces?

Post by Mohammadreza Rezaie » Tue Jan 09, 2024 8:09 am

Hi,

Please note that, depends on the input data, Joint Reaction Analysis (JRA) tool could give you both intersegmental forces/moments and joints contact forces/moments. Inverse Dynamics (ID) output is in joints frames (or better to say, coordinates), but the JRA output could be expressed in ground, parent body, or child body (mostly used) frames.

Intersegmental forces/moments: GRF and forces/moments of coordinates are required. To do that, simply exclude muscles from the model (either by disabling or removing), create an actuator file in which every free coordinate has a CoordinateActuator with optimal force of 1 (N or Nm), and min and max controls of -inf and +inf, respectively. Note that if the names of the actuators match the ID output (columns labels), you can simply use ID output as the force file in the JRA tool. Otherwise, you must run the Static Optimization to find their forces/moments.

Joints contact forces/moments: GRF, muscles forces and/or (reserve/residual) actuators forces/moments are required. Both Static Optimization and CMC tools could give you the required force file. Please see Joint Reactions Analysis for more details.

Hope this helps,
-Mohammadreza

User avatar
jaebeom jo
Posts: 3
Joined: Sun Aug 27, 2023 11:51 pm

Re: How to get Joint Forces?

Post by jaebeom jo » Tue Jan 09, 2024 10:14 pm

kernalnet wrote:
Tue Jan 09, 2024 8:09 am
Intersegmental forces/moments: GRF and forces/moments of coordinates are required. To do that, simply exclude muscles from the model (either by disabling or removing), create an actuator file in which every free coordinate has a CoordinateActuator with optimal force of 1 (N or Nm), and min and max controls of -inf and +inf, respectively. Note that if the names of the actuators match the ID output (columns labels), you can simply use ID output as the force file in the JRA tool. Otherwise, you must run the Static Optimization to find their forces/moments.
Thank your TIP!, Mohammadreza.

I had researched Joint Reaction Forces before, but I forgot about it because I'm not using muscles now.

I was struggling because using muscles felt difficult, but following your instructions, it seems like I can get the joint reaction Force/Moment what I want.

Thank you again. Have a great day!

User avatar
Rajarshi Roy
Posts: 4
Joined: Mon Jan 20, 2020 1:07 pm

Re: How to get Joint Forces?

Post by Rajarshi Roy » Thu Feb 22, 2024 12:24 pm

Thank you, Mohammadreza, for the suggestions regarding generating intersegmental forces using the ID outputs and the CoordinateActuators! That works well for the Arm26 example.

However, when I tried to do ID + JRA with whole body (scaled version of Gait2354_Simbody, with muscles excluded as per your suggestion), I notice that there is motion in all of the model joints and the model looks noticeably more "bent" in configuration compared to the original model. This happens when I run the JRA tool (ID doesn't alter the kinematics beyond what is specified in the IK motion file). I have specified no motion in the joints, and the only forces acting are the bodies' weights. Do you have any idea why this might be resulting ? I am not being able to figure this out. I am not running any RRA to alter the joint kinematics either.

I am attaching the figure to this comment. Many thanks!!
Attachments
Picture1.png
Picture1.png (196.14 KiB) Viewed 397 times

User avatar
Mohammadreza Rezaie
Posts: 376
Joined: Fri Nov 24, 2017 12:48 am

Re: How to get Joint Forces?

Post by Mohammadreza Rezaie » Thu Feb 22, 2024 1:05 pm

If I understand correctly, you are using JRA without prescribing any motion. I have never used JRA in that way. Perhaps you need to create a dummy motion file for your purpose.

User avatar
Rajarshi Roy
Posts: 4
Joined: Mon Jan 20, 2020 1:07 pm

Re: How to get Joint Forces?

Post by Rajarshi Roy » Thu Feb 22, 2024 1:09 pm

Correct, I held the model fixed with the only load being gravity. I can try with a superimposed motion and see if that helps.

User avatar
Rajarshi Roy
Posts: 4
Joined: Mon Jan 20, 2020 1:07 pm

Re: How to get Joint Forces?

Post by Rajarshi Roy » Thu Feb 22, 2024 1:43 pm

Hi MohammadReza, I added a motion file with motion in the hip (L+R), knee (L+R), ankle (L+R) and pelvis tilt, but it seems that upon running JRA, the model still translated and bent in configuration. It seems that this offset takes place right at the start of the motion (after running JRA).
Attachments
Picture1.png
Picture1.png (160.04 KiB) Viewed 342 times

POST REPLY