Exporting muscle's force and power

Hi Soheil,

Muscle branches in the model are a simplified representation of a complex muscle architecture. For example, the Psoas Major muscle attaches to many different vertebra and depending on the tasks some will activate, some will not.

Similarly to very wide sheet muscles - some parts could be activated separately. Example

You would have to decide yourself what it is you are after. Depending on your task you could, for example, if focus on forces acting on L1, then you would choose a particular Psoas Major branch. But say you focus on pelvis - then you could compute a net force for a particular muscle/muscle group.



AnyForceMomentMeasure2 VastusLateralisNetForceMoment = {
  AnyRefNode &ref = ..HipNodeRef.NetForceMomentNode;
  
  AnySeg &seg1=..Femur;      
  AnyFolder &f1	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior1;				
  AnyFolder &f2	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior2;				
  AnyFolder &f3	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior3;				
  AnyFolder &f4	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior4;				
  AnyFolder &f5	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior5;				
  AnyFolder &f6	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisInferior6;				
  AnyFolder &f7	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisSuperior1;				
  AnyFolder &f8	=	 Main.Studies.HumanModel.BodyModel.Right.Leg.Mus.VastusLateralisSuperior2;				

  
      AnyVec3 Mlocal=M*ref.Axes;
      AnyVar MHipAbduction=Mlocal[0];
      AnyVar MHipFlexion=Mlocal[2];
      AnyVar MHipExternalRotation=Mlocal[1];

};


Please check for the reference manual on this class. I just quickly compiled something that looks like a real code.

Hope this helps.

Kind regards,
Pavel