--- a +++ b/Application/Examples/FacetJointModel/Model/JointsAndDriversSimple.any @@ -0,0 +1,49 @@ +/* Definition of Driver for the segments in the lumbar spine. From PelvisL5 to T12L1 + +Mark de Zee +*/ + +AnyFolder &RefHM = Main.Model.BodyModel; + +AnyFolder Joints={ + AnyRevoluteJoint GroundPelvisJnt = { + Axis = z; + AnyRefNode &GroundNode = Main.Model.EnvironmentModel.GlobalRef.GroundNode; + AnyRefNode &PelvisNode = ..RefHM.Trunk.SegmentsLumbar.PelvisSeg.AnatomicalFrameTrunk; + }; +}; + + +AnyFolder DriversLumbar = { + + AnyKinEqSimpleDriver GroundPelvisJntDriver = { + AnyRevoluteJoint &GroundPelvisJoint = ..Joints.GroundPelvisJnt; + DriverPos = {0}; + DriverVel = {0.0}; + Reaction.Type = {On}; + }; + + //Thorax pelvis rotation driver + AnyKinEqSimpleDriver PostureDriver ={ + AnyKinMeasure& Ref2 = ..RefHM.Interface.Trunk.PelvisThoraxLateralBending; + AnyKinMeasure& Ref3 = ..RefHM.Interface.Trunk.PelvisThoraxRotation; + AnyKinMeasure& Ref1 = ..RefHM.Interface.Trunk.PelvisThoraxExtension; + DriverPos = pi/180*{0.0,0.0,0.0}; + DriverVel = pi/180*{0.0,0.0,0.0}; + Reaction.Type = {Off,Off,Off}; + }; + + + + //Neck driver + AnyKinEqSimpleDriver NeckJntDriver = { + AnyKinMeasure& lb = ..RefHM.Interface.Trunk.SkullThoraxLateralBending; + AnyKinMeasure& ar = ..RefHM.Interface.Trunk.SkullThoraxRotation; + AnyKinMeasure& fe = ..RefHM.Interface.Trunk.SkullThoraxFlexion; + DriverPos = pi/180*{0,0,0}; + DriverVel = pi/180*{0,0,0}; + Reaction.Type = {Off,Off,Off}; + }; + +}; +