Hi
I want to calculate the moment of the rectus muscle to the knee joint. I wrote the code according to AnyForceMomentMeasure2 KneeNetMoment. Although the model works, the result is wrong. When I replace the rectus muscle with other muscles, the result is the same. Can anyone tell me how to modify it? This problem has been bothering me for a long time. I will be very grateful if anyone can help me.
AnyForceMomentMeasure2 MomentMeasure2 =
{
AnyRefFrame &Ref =…Seg.Pelvis.HipJoint.RotNode;
IncludeSegments =
{
&…Seg.Shank, &…Seg.Foot, &…Seg.Thigh, &…Seg.Patella, &…Seg.Talus
};
AnyObjectPtrArray pArrJntReactions =
{
&…Jnt.Hip.Constraints.Reaction,
&…Jnt.Knee.Constraints.Reaction,
&…Jnt.Ankle.Constraints.Reaction,
&…Jnt.SubTalar.Constraints.Reaction,
&…Jnt.PatellaFemur.Constraints.Reaction,
&…Jnt.PatellaMovement.Reaction
};
IncludeForces = arrcat(
ObjSearch(“Main.HumanModel.BodyModel.Right.Leg.Mus.RectusFemoris1.", “AnyMuscle”),
ObjSearch("Main.Studies.InverseDynamicStudy.Output.BodyModel.Right.Leg.Mus.VastusLateralisSuperior1.”, “AnyMuscle”),
ObjSearchRecursive("…JointMuscles", “*”, “AnyMuscle”),
pArrJntReactions
);
};
Best regards
zzs22500