Static Rifle Hold Analysis by Inverse Dynamic

Hello,

I am a student and would like to run an inverse dynamic analysis for a static rifle hold (that is where the model just assumes the firing stance) and get a read on how muscles are activated.

  1. I have positioned the model in the firing stance (almost)
  2. I have imported the rifle from SOLIDWORKS. It is currently not enabled in the preview ( // )

PROBLEMS:

  1. ERROR(OBJ.MCH.KIN2) : 2n incercare.main.any(75) : Study.InitialConditions : Model is kinematically over-constrained
    Although I have not made hard constrains yet. Only changed the joint angles in the Mannequin.any

Other messages:
Constraint violations for study 'Main.Study' :
Constraint #23 is above tolerance 1e-06, error = 0.019033, constr. #2 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #26 is above tolerance 1e-06, error = 0.186024, constr. #5 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #29 is above tolerance 1e-06, error = 0.023206, constr. #8 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #32 is above tolerance 1e-06, error = 0.024051, constr. #11 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #35 is above tolerance 1e-06, error = 0.068982, constr. #14 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #38 is above tolerance 1e-06, error = 0.113704, constr. #17 in 'Main.HumanModel.BodyModel.Trunk.JointsLumbar.SpineRhythmDrv'.
Constraint #67 is above tolerance 1e-06, error = 0.488889, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.JointsCervicalSpine.Flexion.CervicalFlexionRhythmDrv'.
Constraint #84 is above tolerance 1e-06, error = 0.071102, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider1.Slider1Jnt.Constraints'.
Constraint #89 is above tolerance 1e-06, error = 0.010157, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider1.LinDrv'.
Constraint #90 is above tolerance 1e-06, error = 0.059688, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider2.Slider1Jnt.Constraints'.
Constraint #95 is above tolerance 1e-06, error = 0.010075, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider2.LinDrv'.
Constraint #96 is above tolerance 1e-06, error = 0.046042, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider3.Slider1Jnt.Constraints'.
Constraint #101 is above tolerance 1e-06, error = 0.009564, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider3.LinDrv'.
Constraint #102 is above tolerance 1e-06, error = 0.034512, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider4.Slider1Jnt.Constraints'.
Constraint #107 is above tolerance 1e-06, error = 0.004344, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider4.LinDrv'.
Constraint #108 is above tolerance 1e-06, error = 0.035182, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider5.Slider1Jnt.Constraints'.
Constraint #113 is above tolerance 1e-06, error = 0.005195, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Slider5.LinDrv'.
Constraint #117 is above tolerance 1e-06, error = 0.060329, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc1.Disc.LinDrvRight'.
Constraint #118 is above tolerance 1e-06, error = 0.060329, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc1.Disc.LinDrvLeft'.
Constraint #125 is above tolerance 1e-06, error = 0.136000, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc1.Disc.drv'.
Constraint #129 is above tolerance 1e-06, error = 0.054800, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc2.Disc.LinDrvRight'.
Constraint #130 is above tolerance 1e-06, error = 0.054800, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc2.Disc.LinDrvLeft'.
Constraint #137 is above tolerance 1e-06, error = 0.121000, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc2.Disc.drv'.
Constraint #141 is above tolerance 1e-06, error = 0.053090, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc3.Disc.LinDrvRight'.
Constraint #142 is above tolerance 1e-06, error = 0.053090, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc3.Disc.LinDrvLeft'.
Constraint #149 is above tolerance 1e-06, error = 0.111000, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc3.Disc.drv'.
Constraint #153 is above tolerance 1e-06, error = 0.042149, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc4.Disc.LinDrvRight'.
Constraint #154 is above tolerance 1e-06, error = 0.042149, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc4.Disc.LinDrvLeft'.
Constraint #161 is above tolerance 1e-06, error = 0.096000, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc4.Disc.drv'.
Constraint #165 is above tolerance 1e-06, error = 0.032420, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc5.Disc.LinDrvRight'.
Constraint #166 is above tolerance 1e-06, error = 0.032420, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc5.Disc.LinDrvLeft'.
Constraint #173 is above tolerance 1e-06, error = 0.086000, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.Disc5.Disc.drv'.
Constraint #174 is above tolerance 1e-06, error = 0.053095, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.LinTopDrv'.
Constraint #175 is above tolerance 1e-06, error = 0.120988, constr. #1 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.LinTopDrv'.
Constraint #178 is above tolerance 1e-06, error = 0.071064, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.LinBottomDrv'.
Constraint #183 is above tolerance 1e-06, error = 0.093883, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.MeasuringSegmentRight.Drv1'.
Constraint #184 is above tolerance 1e-06, error = 0.003606, constr. #1 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.MeasuringSegmentRight.Drv1'.
Constraint #189 is above tolerance 1e-06, error = 0.093883, constr. #0 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.MeasuringSegmentLeft.Drv1'.
Constraint #190 is above tolerance 1e-06, error = 0.003606, constr. #1 in 'Main.HumanModel.BodyModel.Trunk.Buckle.JointsAndDrivers.MeasuringSegmentLeft.Drv1'.
Constraint #222 is above tolerance 1e-06, error = 0.017632, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #223 is above tolerance 1e-06, error = 0.016074, constr. #1 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #224 is above tolerance 1e-06, error = 0.012061, constr. #2 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #227 is above tolerance 1e-06, error = 0.549639, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.CylRotDrv2'.
Constraint #239 is above tolerance 1e-06, error = 0.008000, constr. #2 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.FE.Constraints'.
Constraint #242 is above tolerance 1e-06, error = 0.005558, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #243 is above tolerance 1e-06, error = 0.000436, constr. #1 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #244 is above tolerance 1e-06, error = 0.004250, constr. #2 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #245 is above tolerance 1e-06, error = 0.003239, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.PSLinDistalConstraint'.
Constraint #246 is above tolerance 1e-06, error = 0.011390, constr. #1 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.PSLinDistalConstraint'.
Constraint #257 is above tolerance 1e-06, error = 0.003557, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.ScapulaAIThoraxNodeDriver'.
Constraint #258 is above tolerance 1e-06, error = 0.680088, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.SternoClavicularRotationRhythm'.
Constraint #259 is above tolerance 1e-06, error = 0.003941, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.ScapulaTSThoraxNodeDriver'.
Constraint #260 is above tolerance 1e-06, error = 0.000003, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.ConoideumLigamentDrv'.
Constraint #261 is above tolerance 1e-06, error = 0.007005, constr. #0 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #262 is above tolerance 1e-06, error = 0.000442, constr. #1 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #263 is above tolerance 1e-06, error = 0.002780, constr. #2 in 'Main.HumanModel.BodyModel.Right.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #288 is above tolerance 1e-06, error = 0.043279, constr. #3 in 'Main.HumanModel.BodyModel.Right.Leg.Jnt.PatellaFemur.Constraints'.
Constraint #289 is above tolerance 1e-06, error = 0.022902, constr. #4 in 'Main.HumanModel.BodyModel.Right.Leg.Jnt.PatellaFemur.Constraints'.
Constraint #290 is above tolerance 1e-06, error = 0.004613, constr. #0 in 'Main.HumanModel.BodyModel.Right.Leg.Jnt.PatellaMovement'.
Constraint #321 is above tolerance 1e-06, error = 0.017632, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #322 is above tolerance 1e-06, error = 0.016074, constr. #1 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #323 is above tolerance 1e-06, error = 0.012061, constr. #2 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.SphericalJoint.Constraints'.
Constraint #326 is above tolerance 1e-06, error = 2.202217, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.CylRotDrv2'.
Constraint #338 is above tolerance 1e-06, error = 0.008000, constr. #2 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.FE.Constraints'.
Constraint #341 is above tolerance 1e-06, error = 0.005558, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #342 is above tolerance 1e-06, error = 0.000436, constr. #1 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #343 is above tolerance 1e-06, error = 0.004250, constr. #2 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.PSProximalConstraints'.
Constraint #344 is above tolerance 1e-06, error = 0.003239, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.PSLinDistalConstraint'.
Constraint #345 is above tolerance 1e-06, error = 0.011390, constr. #1 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.PSLinDistalConstraint'.
Constraint #356 is above tolerance 1e-06, error = 0.003558, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.ScapulaAIThoraxNodeDriver'.
Constraint #357 is above tolerance 1e-06, error = 0.680088, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.SternoClavicularRotationRhythm'.
Constraint #358 is above tolerance 1e-06, error = 0.003941, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.ScapulaTSThoraxNodeDriver'.
Constraint #359 is above tolerance 1e-06, error = 0.000003, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.ConoideumLigamentDrv'.
Constraint #360 is above tolerance 1e-06, error = 0.007005, constr. #0 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #361 is above tolerance 1e-06, error = 0.000442, constr. #1 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #362 is above tolerance 1e-06, error = 0.002780, constr. #2 in 'Main.HumanModel.BodyModel.Left.ShoulderArm.Jnt.HandGloveLinDrv'.
Constraint #387 is above tolerance 1e-06, error = 0.022902, constr. #3 in 'Main.HumanModel.BodyModel.Left.Leg.Jnt.PatellaFemur.Constraints'.
Constraint #388 is above tolerance 1e-06, error = 0.043279, constr. #4 in 'Main.HumanModel.BodyModel.Left.Leg.Jnt.PatellaFemur.Constraints'.
Constraint #389 is above tolerance 1e-06, error = 0.004613, constr. #0 in 'Main.HumanModel.BodyModel.Left.Leg.Jnt.PatellaMovement'.
Constraint #432 is above tolerance 1e-06, error = 0.135753, constr. #0 in 'Main.Model.ModelEnvironmentConnection.CenterOfMassDriver'.
Constraint #434 is above tolerance 1e-06, error = 0.016735, constr. #0 in 'Main.Model.ModelEnvironmentConnection.Right.HeelFloorContraint'.
Constraint #435 is above tolerance 1e-06, error = 0.100051, constr. #1 in 'Main.Model.ModelEnvironmentConnection.Right.HeelFloorContraint'.
Constraint #436 is above tolerance 1e-06, error = 0.024137, constr. #2 in 'Main.Model.ModelEnvironmentConnection.Right.HeelFloorContraint'.
Constraint #437 is above tolerance 1e-06, error = 0.082476, constr. #0 in 'Main.Model.ModelEnvironmentConnection.Right.ToeDirectionContraint'.
Constraint #438 is above tolerance 1e-06, error = 0.051085, constr. #1 in 'Main.Model.ModelEnvironmentConnection.Right.ToeDirectionContraint'.
Constraint #439 is above tolerance 1e-06, error = 0.016735, constr. #0 in 'Main.Model.ModelEnvironmentConnection.Left.HeelFloorContraint'.
Constraint #440 is above tolerance 1e-06, error = 0.100051, constr. #1 in 'Main.Model.ModelEnvironmentConnection.Left.HeelFloorContraint'.
Constraint #441 is above tolerance 1e-06, error = 0.024137, constr. #2 in 'Main.Model.ModelEnvironmentConnection.Left.HeelFloorContraint'.
Constraint #442 is above tolerance 1e-06, error = 0.082476, constr. #0 in 'Main.Model.ModelEnvironmentConnection.Left.ToeDirectionContraint'.
Constraint #443 is above tolerance 1e-06, error = 0.051085, constr. #1 in 'Main.Model.ModelEnvironmentConnection.Left.ToeDirectionContraint'.

This is the code from the main since i cannot upload it (new user).
#include "libdef.any"

Main =
{
// BodyModel configuration:
// Specify which limb segments to include, the type of muscles, joints, scaling etc
#include "Model/BodyModelConfiguration.any"

// Include the Human model from AMMR
#include "<ANYBODY_PATH_BODY>\HumanModel.any"

// Define desired posture or movement of the model
#include "Model\Mannequin.any"

// Compose the model used by the study
AnyFolder Model =
{
// Center of Mass (COM) position in the ground YZ plane
// COM balance driver can be excluded with:
// #define EXCLUDE_COM_BALANCE_DRIVERS
AnyVector CenterOfMassXZ = {0,0};

 //PUS DE MINE!
 
 
 // Definition of additional AnyRefNode object in the human model
#include "Model\HumanRefNodes.any"
 



 // Positioning of the right and left feet. 
 // Ground-foot constraints can be excluded with:
 // #define EXCLUDE_FOOT_CONSTRAINTS
 Environment.GlobalRef.RightFootPrint = {
    AnyVec3 HeelPosition = {-0.08, 0, 0.14};
    AnyVec3 ToeDirection = {1, 0, 0.1}; 
 };
 Environment.GlobalRef.LeftFootPrint = {
    AnyVec3 HeelPosition = {-0.08, 0, -0.14};
    AnyVec3 ToeDirection = {1, 0, -0.1}; 
 };

// Include the body part of the Human model
AnyFolder &BodyModel = .HumanModel.BodyModel;

// Include the default mannequin drivers
AnyFolder &DefaultMannequinDrivers = .HumanModel.DefaultMannequinDrivers;

// Environment files are used to include objects surrounding human,
// e.g. global reference frame
#include "Model\Environment.any"   



    // AnyScript file for the ARMA from SolidWorks

// #include "Input\Hope_ARMA.any"
// AnyScript file for the ARMA from SolidWorks
// #include "Input\Hope_ARMA.Stock___1.any"

AnyFolder ModelEnvironmentConnection = 
{
  // This file contains all contraints to simulate the standing human
  #include "Model/JointsAndDrivers.any"
  
  // Ground reaction force prediction
  #include "Model/GRFPrediction.any"
};

};
// Define Study for running kinematics and inverse dynamics simulation analyses
AnyBodyStudy Study =
{
// Include the Model within the Study
AnyFolder &Model = .Model;

Gravity={0.0, -9.81, 0.0};
nStep = 11;

// Overdeterminate solver is needed while using the 
// soft default mannequin drivers.

// Kinematics.SolverType = KinSolOverDeterminate;
// InitialConditions.SolverType = Kinematics.SolverType ;

This post has been answered outside forum

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.