[770c98]: / Application / Examples / THA-KneeBendDemo / Model / TrunkNeckDrivers.any

Download this file

41 lines (32 with data), 1.3 kB

 

  //Neck driver 
  AnyKinEqSimpleDriver CervicalDriver ={
    AnyKinMeasure& Ref1 = .RefHM.Interface.Trunk.SkullThoraxFlexion;  
    AnyKinMeasure& Ref2 = .RefHM.Interface.Trunk.SkullThoraxLateralBending;
    AnyKinMeasure& Ref3 = .RefHM.Interface.Trunk.SkullThoraxRotation;
    DriverPos = pi/180*{0, 0, 0};
    DriverVel = pi/180*{0, 0, 0};
    Reaction.Type = {Off, Off, Off};  
  };
  
  //Thorax pelvis rotation driver
  AnyKinEqSimpleDriver PostureDriver ={
    AnyKinMeasure& Ref2 = ...HumanModel.Interface.Trunk.PelvisThoraxLateralBending;        
    AnyKinMeasure& Ref3 = ...HumanModel.Interface.Trunk.PelvisThoraxRotation;   
    AnyKinMeasure& Ref1 = ...HumanModel.Interface.Trunk.PelvisThoraxExtension;
   
    DriverPos = pi/180*{
          .JntPos.PelvisThoraxLateralBending,
      .JntPos.PelvisThoraxRotation,
      .JntPos.PelvisThoraxExtension
    };
    DriverVel = pi/180*{
      .JntVel.PelvisThoraxLateralBending,
      .JntVel.PelvisThoraxRotation,
      .JntVel.PelvisThoraxExtension
    };
    Reaction.Type = {Off,Off,Off};  
  };  
  
  
  MannequinLoads = {
    
    AnyForce3D TopVertebra = {
      AnyRefNode &ApplPoint = .hm.Trunk.SegmentsCervicalSpine.C1Seg.C1C0JntNode;
      F = .mql.TopVertebra;
    };
  };