How to get force data of each arm muscle in WheelTurnexample?

Hi,
I am using the example "WheelTurn" that is based on moving a wheel with the right hand. I would like to get force data of each muscle of the right arm. Thus, I looked for it on "Study/Output/Model/BodyModel/SelectedOutput/Right/ShoulderArm" and found JointReactionForce, JointReactionMoment and Muscle directories. Inside the "muscle "directory there is just an "envelope" file.

Thanks for your help! :smiley:

Hi @Jhon.Charaja

The individual muscle force output is not part of the "Selected Output" of the bodymodel.
To find each muscle you can look in Study.Output.Model.BodyModel.Right.Mus for the right arm muscles (exhange Right with Left to locate the left arm).

The muscles have different force properties and you can read about them in this tutorial

Best Regards,
Bjørn
AnyBody Technology

1 Like

Thanks, I found force data of the arm muscles. Now, I would like to get the force data. Thus, I am using "AnyOutputFile" class but I have this error message

ERROR(SCR.PRS5) : C:/Users/j..a/D..p/Whe..rn/WheelTurn.Main.any(54) : 'AnyValue' : Objects of class AnyValue cannot be created because it is an abstract class.

Inside "AnyBodyStudy" class I added this

    AnyOutputFile Output_biceps = 
    {
      FileName = "biceps_data.csv";
     
      AnyValue &biceps = Main.Study.Output.Model.BodyModel.Right.ShoulderArm.Mus.biceps_brachii_caput_longum.Fm;
      };

Thanks for your help! :smiley:

Hi @Jhon.Charaja

Great to hear things are progressing!

The error you get is because you need to use a class that is derived from the AnyValue class.
This could be AnyVector or AnyVar

You can also use the inbuilt search function of the AnyOutputFile class:

AnyOutputFile OFile4 = {
  FileName = "AnyOutputFile.OFile4.txt";
  Search = {"Path.To.Muscles.In.ModelTree*.Fm"}; // path could be "Main.HumanModel.BodyModel.Right.ShoulderArm.Mus*.Fm"
};

That should do the trick!

Best regards,
Bjørn
AnyBody Technology

1 Like

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.