-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHumanStanding.main.any
More file actions
99 lines (80 loc) · 3.08 KB
/
HumanStanding.main.any
File metadata and controls
99 lines (80 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// NOTE: for the operation AnyOperationShellExec to work, you must include a vlaid license file in the folder "AnyFE2APDL"
#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};
// 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"
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
//# BEGIN SNIPPET 1
AnyBodyStudy Study = {
// Include the Model within the Study
AnyFolder &Model = .Model;
Gravity={0.0, -9.81, 0.0};
§tEnd = 10;§
nStep = §5§;
//# END SNIPPET 1
//# BEGIN SNIPPET 2
AnyMechOutputFileForceExport §FE_out§ = {
§FileName = "files_in/clavload.xml";
UseRefFrameOnOff = On;
RefFrame = &Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Clavicula.localrefframe;
AllSegmentsInStudyOnOff = Off;
XMLformatOnOff = On;
//AllSegmentsInStudyOnOff = Off;
Segments = {&Main.HumanModel.BodyModel.Right.ShoulderArm.Seg.Clavicula};§
};
//# END SNIPPET 2
// Overdeterminate solver is needed while using the
// soft default mannequin drivers.
Kinematics.SolverType = KinSolOverDeterminate;
InitialConditions.SolverType = Kinematics.SolverType ;
//# BEGIN SNIPPET 3
}; // End of Study folder
§AnyOperationShellExec ConvertToAPDL = {
Show = On;
FileName = "AnyFE2APDL.exe";
WorkDir = "AnyFE2APDL";
Arguments = "-i ../files_in/clavload.xml -o ../files_out -t ../examples/APDLTemplate.txt";
};§
//# END SNIPPET 3
// This is readymade simulation package including some pre-processing steps and the InverseDynamics analysis
#include "Model\RunAppSequence.any"
}; //Main