Forums Anyscript.org  

Go Back   Forums Anyscript.org > General Forum > AnyBody Modeling System

Notices

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

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

Wael
Reply With Quote
  #12  
Old 02-01-2018, 11:47 AM
pgalibarov's Avatar
pgalibarov pgalibarov is offline
Senior Member
 
Join Date: Oct 2010
Posts: 940
Default

Dear Wael,

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

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.

Code:
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,
Pavel
Reply With Quote
  #13  
Old 02-01-2018, 12:13 PM
mewael mewael is offline
Junior Member
 
Join Date: Aug 2017
Posts: 8
Default

Hallo Pavel,

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

Thank you so much

Best Regards

Wael
Reply With Quote
Reply

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 05:31 PM.