Download this file

50 lines (39 with data), 3.2 kB

/// Definition of contact conditions between the arms and the armrests.
AnyFolder ArmSupport ={
  AnyVar   Strength=....SupportSettings.ArmrestSupportStrength;
  AnyVar   StaticFrictionCoefficient=....SupportSettings.StaticFrictionArmrest;
  
  AnyFolder UlnaArmRestSupportRight = {
    AnyRefFrame &BaseObject = ....EnvironmentModel.Seg.Right.ArmRest;
    AnyRefFrame &TargetObject = ....BodyModel.Right.ShoulderArm.Seg.Ulna.UlnaArmRestJntNode;
    AnyRefFrame &StrengthObject=TargetObject; //Node used for strength measurement. Occasionally this is different from the target object
    
    AnyFolder &DrawRef=Main.DrawSettings; //reference to the folder containing 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 UlnaArmRestSupportLeft = {
    AnyRefFrame &BaseObject = ....EnvironmentModel.Seg.Left.ArmRest;
    AnyRefFrame &TargetObject = ....BodyModel.Left.ShoulderArm.Seg.Ulna.UlnaArmRestJntNode;
    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"
  };
};