Forums Anyscript.org  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2018, 11:51 AM
FSH FSH is offline
Junior Member
 
Join Date: Jul 2018
Posts: 2
Default add a gearing on rotational FDK dof

Hi,

I'm trying to implement a 11 DOF FDK solver to the TKA-KneeBendDemo with TLEM 2.0.

Unfortunately, I get some of these error messages:

Failed to resolve force-dependent kinematics. Too many iterations used (final force error = 7.899933E+002). Continue anyhow...

As it stands in the wiki, i wanted to add a gearing on rotational FDK DOFs with an AnyKinMeasureLinComb, to equal them with the linear DOFs.

I know I have to edit this part in the text:

Quote:
AnyKinEqSimpleDriver KneeForceDep = {
DriverPos = Main.ModelSetup.SubjectSpecificData.Parameters.Kne eForceDepDriverPos;
DriverVel = {0.0,0.0,0.0,0.0,0.0};

AnyKinMeasureOrg OrgLin = {
AnyKinLinear lin = {
Ref=0;
AnyRefNode &ShankNode = Main.HumanModel.BodyModel.Right.Leg.Seg.Shank.Knee Joint;
AnyRefNode &ThighNode = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Knee Joint;
};
MeasureOrganizer={0,1,2};
};

AnyKinMeasureOrg RotOrg = {
AnyKinRotational rot = {
Type = RotAxesAngles;
AnyRefNode &ThighNode = Main.HumanModel.BodyModel.Right.Leg.Seg.Thigh.Knee Joint.RotNode;
AnyRefNode &ShankNode = Main.HumanModel.BodyModel.Right.Leg.Seg.Shank.Knee Joint.RotNode;
};
MeasureOrganizer={1,2};
};

CType = {ForceDep,ForceDep,ForceDep,ForceDep,ForceDep};
Reaction.Type = {Off,Off,Off,Off,Off};
};

but I do not know how

Can you give me some tips?

Kind regards,
Felix



Reply With Quote
  #2  
Old 09-12-2018, 01:25 PM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 924
Default

Hi Felix,

Here is a piece of code which works on three rotations you will need to adjust slightly to fit your needs… but essentially your measure organizer needs to work on the RotGearing instead of the original rot measure.

Code:
AnyKinRotational rot ={ 
      Type=RotAxesAngles;
      AnyRefFrame &ref1=.Global;
      AnyRefFrame  &ref2=.dummy;
    };
    
    
    AnyKinMeasureLinComb RotGearing ={
      
      AnyKinRotational &ref=.rot ;
      AnyVar Gearing=2;
      Coef ={{Gearing,0,0},{0,Gearing,0},{0,0,Gearing}};
      OutDim =3;
      
    };

This rotational measure will need to be used instead of the one used earlier.

If the gearing needs to be larger or less than one depends on the problem.

Note that this essentially change the forcetol for these dofs.


Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
  #3  
Old 09-14-2018, 04:14 PM
FSH FSH is offline
Junior Member
 
Join Date: Jul 2018
Posts: 2
Default

Hi Søren,

thank you for your quick response.
I did not think it would be that easy.

Unfortunately I get another error message now:

Failed to resolve force-dependent kinematics. Too small steps for GSS search causes looping of Newton method (final force error = 3.282989E+001). Continue anyhow…

Which screw should I turn to fix the error?
Should I increase the perturbation?

Kind regards,
Felix
Reply With Quote
  #4  
Old 09-17-2018, 09:52 AM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 924
Default

Hi Felix,

It is not possible based on any error message to say if the gearing should go up it depends on the nature the FDK dof in the model. The idea is that you would want a perturbation on any of the FDK DOF in the model to have the same "impact". So if your pertube 1e-5 m on a linear DOF and if you do the same 1e-5 rad on a rotational dof does it "impact" the model in the same magnitude?


Finally in most FDK models errors occurs due to lack off stiffness on one or more DOF, please see this section of the wiki https://github.com/AnyBody/support/w...ent-Kinematics

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
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 12:43 AM.