Download this file

64 lines (51 with data), 3.5 kB

/// Support conditions between the leg rest and the shanks.
AnyFolder LegRestSupport = {
  AnyVar   Strength=....SupportSettings.FootrestSupportStrength;
  AnyVar   StaticFrictionCoefficient=....SupportSettings.StaticFrictionFootrest;
  
  AnyFolder &ShankR = ...BodyModel.Right.Leg.Seg.Shank;
  ShankR = {
    AnyRefNode SupportNode = {
      sRel = {-0.05000, -0.1000, -0.028000};
    };
  };
  AnyFolder &ShankL = ...BodyModel.Left.Leg.Seg.Shank;
  ShankL = {
    AnyRefNode SupportNode = {
      sRel = {-0.05000, -0.1000, 0.028000};
    };
  };
  
  AnyFolder ShankSupportR = {
    AnyRefFrame &BaseObject =....EnvironmentModel.Seg.LegRest;
    AnyRefFrame &TargetObject =....BodyModel.Right.Leg.Seg.Shank.SupportNode;
    AnyRefFrame &StrengthObject=TargetObject; //Node used for strength measurement, occasionally this is different from the target object
    
    AnyFolder &DrawRef=Main.DrawSettings; //reference to the folder which contains drawsettings
    //low limit for the strength measure function, if the distance measured along Direction[0] is below this val. the strength will be zero (negative)
    AnyVar UserDefinedLimitLow=-0.05; 
    //high limit for the strength measure function, if the distance measured along Direction[0] is above this val. the strength will be zero
    AnyVar UserDefinedLimitHigh=0.05; 
    
    //high limit for the strength measure function, if the radius measured along the plane with Direction[0] as normal is above this val. the strength will be zero
    AnyVar UserDefinedRadiusLimit=0.7; 
    
    AnyVar Strength =.Strength;  //strength of muscles
    AnyVar StaticFrictionCoefficient=.StaticFrictionCoefficient; //Friction coefficient
    AnyVar ScaleFactor =1; //scale factor for draw vectors it can be set differently than by the drawsettings
    
    AnyIntArray Direction={0,1,2}; //first element gives normal direction
    #include  "<ANYBODY_PATH_MODELUTILS>\FrictionContactMuscles\ContactSurfaceLinPush.any"
  };
  
  AnyFolder ShankSupportL={
    AnyRefFrame &BaseObject=....EnvironmentModel.Seg.LegRest;
    AnyRefFrame &TargetObject=....BodyModel.Left.Leg.Seg.Shank.SupportNode;
    AnyRefFrame &StrengthObject=TargetObject; //Node used for strength measurement, occasionally this is different from the target object
    
    AnyFolder &DrawRef=Main.DrawSettings; //reference to the folder which contains drawsettings
    //low limit for the strength measure function, if the distance measured along Direction[0] is below this val. the strength will be zero (negative)
    AnyVar UserDefinedLimitLow=-0.05; 
    //high limit for the strength measure function, if the distance measured along Direction[0] is above this val. the strength will be zero
    AnyVar UserDefinedLimitHigh=0.05; 
    
    //high limit for the strength measure function, if the radius measured along the plane with Direction[0] as normal is above this val. the strength will be zero
    AnyVar UserDefinedRadiusLimit=0.7; 
    
    AnyVar Strength =.Strength;  //strength of muscles
    AnyVar StaticFrictionCoefficient=.StaticFrictionCoefficient; //Friction coefficient
    AnyVar ScaleFactor =1; //scale factor for draw vectors it can be set differently than by the drawsettings
    
    AnyIntArray Direction={0,1,2}; //first element gives normal direction
    #include  "<ANYBODY_PATH_MODELUTILS>\FrictionContactMuscles\ContactSurfaceLinPush.any"
  };
};