|
a |
|
b/Tests/Symmetry/test_LegDynamicSymmetryCheck.Main.any |
|
|
1 |
//define = [ |
|
|
2 |
// {'BM_LEG_MODEL': '_LEG_MODEL_TLEM2_'}, |
|
|
3 |
// {'BM_LEG_MODEL': '_LEG_MODEL_TLEM1_'}, |
|
|
4 |
//] |
|
|
5 |
//fatal_warnings = [ |
|
|
6 |
// "Penetration of surface", |
|
|
7 |
// "Number of allowed iterations for contact solution has been exceeded", |
|
|
8 |
//] |
|
|
9 |
//save_study= "Main.Study" |
|
|
10 |
|
|
|
11 |
#define ANYBODY_PATH_OUTPUT "." |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
#include "libdef.any" |
|
|
15 |
|
|
|
16 |
// ---------------------------------------------------------- |
|
|
17 |
// Model configuration: |
|
|
18 |
// For more info on body model configuration options please load the model and double click on: |
|
|
19 |
// #path HTML_DOC "<AMMR_PATH_DOC>/bm_config/index.html" |
|
|
20 |
// ---------------------------------------------------------- |
|
|
21 |
|
|
|
22 |
#define BM_ARM_RIGHT OFF |
|
|
23 |
#define BM_ARM_LEFT OFF |
|
|
24 |
|
|
|
25 |
#define BM_TRUNK_MUSCLES OFF |
|
|
26 |
|
|
|
27 |
#ifndef TEST_NAME |
|
|
28 |
#define BM_LEG_MODEL 2 |
|
|
29 |
#define TEST_NAME "test_LegDynamicSymmetryCheck.Main_1" |
|
|
30 |
#endif |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
#define BM_SCALING _SCALING_LENGTHMASSFAT_ |
|
|
34 |
|
|
|
35 |
// Use interpolation drivers to define motion |
|
|
36 |
#define DriverSelection "FreePostureMove" |
|
|
37 |
|
|
|
38 |
// actual model |
|
|
39 |
#include "DynamicTest/FreePostureFullBodyStatic.Main.any" |
|
|
40 |
Main = { |
|
|
41 |
|
|
|
42 |
Main.HumanModel.Anthropometrics.SegmentDimensions.PelvisWidth = 0.18; |
|
|
43 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Right.ThighLength = 0.4; |
|
|
44 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Right.ShankLength = 0.3; |
|
|
45 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Right.FootLength = 0.25; |
|
|
46 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Right.TalusLength = 0.05; |
|
|
47 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Left.ThighLength = 0.4; |
|
|
48 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Left.ShankLength = 0.3; |
|
|
49 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Left.FootLength = 0.25; |
|
|
50 |
Main.HumanModel.Anthropometrics.SegmentDimensions.Left.TalusLength = 0.05; |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
Main.Study ={ |
|
|
55 |
|
|
|
56 |
AnyInt test1= assert(ltfun(Main.Study.SymmetryCheck.Leg.Muscle.Comparison.MaxFtDif,1.5), |
|
|
57 |
"Leg model symmetry"); |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
}; |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
AnyOperation& RunTest = Main.RunApplication; |
|
|
64 |
}; |
|
|
65 |
|