Hello,
I am running a model using BVH as kinematic input and measured load cells as kinetics (external force). I have gone through previous posts and I saw that the recommendation is for people to reference the external force in the Inverse Dynamic Study. I have done likewise but then when running the simulation, my Flocal still same as the first value in my text file. Can you check the attached code to see what I am doing wrong?
Main.EnvironmentModel = {
AnyFolder ModelExternalForce = {
AnyFunInterpol ForceFun = {
FileName = "C:\Users\Coal Miners\Documents\AnyBody Projects\Dissertation Main\load-cell-files\" + Main.ModelSetup.TrialSpecificData.TrialFileName + ".csv";
//Data = .Fx;
//T = Main.EnvironmentModel.ModelExternalForce.FileName.T;
Type = PiecewiseLinear;
};
AnyForce3D MyHandForce = {
//AnyVector Fx = Main.EnvironmentModel.ModelExternalForce.ForceFun(Main.Studies.InverseDynamicStudy.t)[0];
Flocal = Main.EnvironmentModel.ModelExternalForce.ForceFun(Main.Studies.InverseDynamicStudy.t);
//F = {-15,-15,-15};
AnyRefFrame &AttahForce1 = Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Hand;
viewForce ={
ShowComponentForces = On;
ShowTotalForces = On;
AppliedForceColor = {0.3, 0.8, 0.3};
AnyDrawVector DrawForce = {
Vec = Main.EnvironmentModel.ModelExternalForce.MyHandForce.Flocal *-1/100;
Line = {
Style = Line3DStyleFull;
Thickness = 0.01;
RGB = {0,1,0};
End = {
Style = Line3DCapStyleArrow;
RGB = {0,1,0};
Thickness = 0.02;
Length = 0.04;
};
};
AnyRefFrame &ref = Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Hand;
};
};
viewForce.Visible = On;
};
};
};
Main.Studies.InverseDynamicStudy = {
AnyFolder &handforce = Main.EnvironmentModel.ModelExternalForce;
};
I will appreciate it if you can attend to this as soon as you can.
Thank you.