--- a +++ b/Application/Examples/ArmCurl/ArmCurl.Main.any @@ -0,0 +1,71 @@ +#include "../libdef.any" + +//This is a model of a arm curl +//The human body consist of a fullbody model + +//The objective of this example is to adjust the eccentricity of the cable wheel such that the +//arm muscles experience a constant effort throughout the elbow flexion taking the change of +//moment arms of the muscles into account. + +//It is not possible to obtain a completely constant muscle effort with only the eccentricity +//as parameter. However, if more parameters were introduced into an actual design optimization, +//then it is likely that an almost completely uniform effort profile could be obtained. + +//By chaning between the files "EnvironmentOptimized.any" and "Environment.any" it is possible to +//to see the machine with adjusted eccentricity and the one with zero eccentricity + +Main = { + + // ---------------------------------------------------------- + // Path to draw settings + // ---------------------------------------------------------- + #include "Model/DrawSettings.any" + + // ---------------------------------------------------------- + // Body Model Configuration + // ---------------------------------------------------------- + #include "Model/BodyModelConfiguration.any" + + // The Mannequin file specifies load-time positions for all the segments + // in the HumanModel. This is important for the model's ablity to resolve + // all the kinematic constraints when the model is analyzed. + // The mannequin file also drives those degrees of freedom of the human + // model that are not governed by problem-specific drivers at run time. + #include "Model/Mannequin.any" + + + // Model of the human body to be used for the analysis + #include "<ANYBODY_PATH_BODY>/HumanModel.any" + + /// The actual model where all components are assembled + AnyFolder Model={ + /// Body model without default drivers + AnyFolder &BodyModel=.HumanModel.BodyModel; + /// Reference to the mannequin folder (used by drivers) + AnyFolder &Mannequin =.HumanModel.Mannequin; + + #include "Model/EnvironmentOptimized.any" + + AnyFolder ModelEnvironmentConnection = { + #include "Model/JointsAndDrivers.any" + }; + + }; + + AnyBodyStudy Study = { + AnyFolder &Model = .Model; + tEnd = 10.0; + Gravity = {0.0, -9.81, 0.0}; + nStep = 21; + }; // End of study + + // Include functions to generate a video: + // -> Run `Study.VideoTool.Preview` to preview the camera view. + // -> Run `Study.VideoTool.Create_Video` to generate video from the analysis. + #include "Model/CreateVideo.any" + + // Include an operation sequence to run all required steps of your application (see Operations tab) + #include "<ANYBODY_PATH_MODELUTILS>\Operations\RunAppSequence.any" + +}; //Main +