Go Back   Forums > General Forum > AnyBody Modeling System


Thread Tools Display Modes
Old 02-01-2018, 11:31 AM
mewael mewael is offline
Junior Member
Join Date: Aug 2017
Posts: 8

Hallo Pavel,

Thx a lot for your helpful reply. Unfortunately I didn't notice your reply until now.

I understand now how to make a transformation from local to global CS, but I'm not sure how to find the the torque around the axial axis of the femur.

I did it using the muscle forces, which go through the femur. As a reference frame I used the femur itself. So I'm not sure if that the right way to get the torque.

I would appreciate it if you could tell me if this the right way to do it.

Best regards

Reply With Quote
Old 02-01-2018, 12:47 PM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
Join Date: Oct 2010
Posts: 962

Dear Wael,

I may be misunderstanding something. But I will refer back to the previous code:

AnyForceMomentMeasure2 MomentMeasureLoc = 

      AnyVec3 Mlocal=M*ref.Axes;
      AnyVar AxialTorque=Mlocal[2]; // Z torque

 // defines the axial axis, Z aligned with the axis
AnyRefFrame &Ref = Main.CanineModel.Segs.Right.Femur.NodeOfInterest;;

AnySeg &Seg = Main.CanineModel.Segs.Right.Femur;

AnyFolder &Mus1 = Main.CanineModel.Muscles.Right.Vastus_lateralis_in termedius;
AnyFolder &Mus2 = Main.CanineModel.Muscles.Right.Vastus_medialis;
AnyFolder &Mus3 = Main.CanineModel.Muscles.Right.Adductor_magnus;
AnyFolder &Mus4 = Main.CanineModel.Muscles.Right.Gluteus_medius_caud alis;
As a result you will get the torque about Z axis (your axial axis), generated by specified muscles. You just need to define NodeOfInterest to be on the relevant axis and Z pointing in the needed direction.

Main.CanineModel.Segs.Right.Femur = {
  AnyRefNode NodeOfInterest = {
    sRel = {...}; // coordinates of a point on the axis
    ARel = {...};// rotation matrix to align Z axis, please read about RotMat functions
If that does not make sense - you could try a simple example and check your variation of this code works.

Kind regards,
Reply With Quote
Old 02-01-2018, 01:13 PM
mewael mewael is offline
Junior Member
Join Date: Aug 2017
Posts: 8

Hallo Pavel,

perfect. That's exactly, what i wanted to know.

Thank you so much

Best Regards

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:58 AM.