Direction of the Flocal

Hello Anybody
i want to make an external load as Flocal :slight_smile:AnyFolder Loads = {
AnyForce3D external = {

     Flocal = {580,0, 0};
     AnyRefFrame &PointOfAttack = Main.HumanModel.BodyModel.Trunk.SegmentsThorax.ThoraxSeg.C7;
  I use this cod to view the Force but the vector of the force didn't change the Direction  along with the C7 segment

AnyDrawVector drF = {
// Vec = .Flocal/200;
// Line = {
// Style = Line3DStyleFull;
// Thickness = 0.01;
// RGB = {1, 0, 0};
// End = {
// Style = Line3DCapStyleArrow;
// RGB = {1, 0, 0};
// Thickness = 0.02;
// Length = 0.05;
// };
// };
// AnyRefFrame &Palm = Main.HumanModel.BodyModel.Trunk.SegmentsThorax.ThoraxSeg.C7;
};

Hi Aneoo,

The code displayed here would fail to load as i read it?

To draw the force you would need something like this.

AnyDrawVector DRAW_A_Vector ={
Vec =.Flocal/200;
GlobalCoord = Off; //make the vector draw in local ref system
AnyRefFrame &PointOfAttack = AnyRefFrame &ref= Main.HumanModel.BodyModel.Trunk.SegmentsThorax.ThoraxSeg.C7;
Line.Thickness=0.005;
Line.RGB={0,0,1};
};

Note that the vector will be constant wrt to the vertebra.

Best regards
Søren

Hi toerholm,
Thanks. It worked.
i fixed the pelvis seg and loaded a external Force on the C7.then I want to measure the moment on following joint.
AnyFolder Joints=
{
AnyStdJoint SeatPelvis=
{
AnyRefFrame &Seat=Main.Model.EnvironmentModel.GlobalRef.Hpoint;
AnyRefFrame &Pelvis=Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg;
};

};
how can i do this?

Hi Aneoo,

The standard joint has such output like other joints have. So simply look at this output from the joint. (taken from reference manual)

Constraints.Reaction.RefFrameOutput.M

Array of 3D moment vectors (global coordinates) associated with the...
Class type: AnyFloat
Eval moment: OutputVar
Default: "Dependent"
Array of 3D moment vectors (global coordinates) associated with the references frames used by the force object (i.e. by the underlying kinematic measure).

Best regards
Søren

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