|
a |
|
b/Application/Examples/ArmCurl/ArmCurl.Main.any |
|
|
1 |
#include "../libdef.any" |
|
|
2 |
|
|
|
3 |
//This is a model of a arm curl |
|
|
4 |
//The human body consist of a fullbody model |
|
|
5 |
|
|
|
6 |
//The objective of this example is to adjust the eccentricity of the cable wheel such that the |
|
|
7 |
//arm muscles experience a constant effort throughout the elbow flexion taking the change of |
|
|
8 |
//moment arms of the muscles into account. |
|
|
9 |
|
|
|
10 |
//It is not possible to obtain a completely constant muscle effort with only the eccentricity |
|
|
11 |
//as parameter. However, if more parameters were introduced into an actual design optimization, |
|
|
12 |
//then it is likely that an almost completely uniform effort profile could be obtained. |
|
|
13 |
|
|
|
14 |
//By chaning between the files "EnvironmentOptimized.any" and "Environment.any" it is possible to |
|
|
15 |
//to see the machine with adjusted eccentricity and the one with zero eccentricity |
|
|
16 |
|
|
|
17 |
Main = { |
|
|
18 |
|
|
|
19 |
// ---------------------------------------------------------- |
|
|
20 |
// Path to draw settings |
|
|
21 |
// ---------------------------------------------------------- |
|
|
22 |
#include "Model/DrawSettings.any" |
|
|
23 |
|
|
|
24 |
// ---------------------------------------------------------- |
|
|
25 |
// Body Model Configuration |
|
|
26 |
// ---------------------------------------------------------- |
|
|
27 |
#include "Model/BodyModelConfiguration.any" |
|
|
28 |
|
|
|
29 |
// The Mannequin file specifies load-time positions for all the segments |
|
|
30 |
// in the HumanModel. This is important for the model's ablity to resolve |
|
|
31 |
// all the kinematic constraints when the model is analyzed. |
|
|
32 |
// The mannequin file also drives those degrees of freedom of the human |
|
|
33 |
// model that are not governed by problem-specific drivers at run time. |
|
|
34 |
#include "Model/Mannequin.any" |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
// Model of the human body to be used for the analysis |
|
|
38 |
#include "<ANYBODY_PATH_BODY>/HumanModel.any" |
|
|
39 |
|
|
|
40 |
/// The actual model where all components are assembled |
|
|
41 |
AnyFolder Model={ |
|
|
42 |
/// Body model without default drivers |
|
|
43 |
AnyFolder &BodyModel=.HumanModel.BodyModel; |
|
|
44 |
/// Reference to the mannequin folder (used by drivers) |
|
|
45 |
AnyFolder &Mannequin =.HumanModel.Mannequin; |
|
|
46 |
|
|
|
47 |
#include "Model/EnvironmentOptimized.any" |
|
|
48 |
|
|
|
49 |
AnyFolder ModelEnvironmentConnection = { |
|
|
50 |
#include "Model/JointsAndDrivers.any" |
|
|
51 |
}; |
|
|
52 |
|
|
|
53 |
}; |
|
|
54 |
|
|
|
55 |
AnyBodyStudy Study = { |
|
|
56 |
AnyFolder &Model = .Model; |
|
|
57 |
tEnd = 10.0; |
|
|
58 |
Gravity = {0.0, -9.81, 0.0}; |
|
|
59 |
nStep = 21; |
|
|
60 |
}; // End of study |
|
|
61 |
|
|
|
62 |
// Include functions to generate a video: |
|
|
63 |
// -> Run `Study.VideoTool.Preview` to preview the camera view. |
|
|
64 |
// -> Run `Study.VideoTool.Create_Video` to generate video from the analysis. |
|
|
65 |
#include "Model/CreateVideo.any" |
|
|
66 |
|
|
|
67 |
// Include an operation sequence to run all required steps of your application (see Operations tab) |
|
|
68 |
#include "<ANYBODY_PATH_MODELUTILS>\Operations\RunAppSequence.any" |
|
|
69 |
|
|
|
70 |
}; //Main |
|
|
71 |
|