-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTest_two_reference_frames.any
More file actions
51 lines (40 loc) · 1.27 KB
/
Test_two_reference_frames.any
File metadata and controls
51 lines (40 loc) · 1.27 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
#include "InstantaneousAxisOfRotation.any"
Main = {
AnyFolder Model ={
AnyFixedRefFrame Frame ={ AnyDrawRefFrame drw={}; };
AnySeg Object1 ={ Mass=1; Jii={0,0,0}; };
AnyStdJoint StdJoint = {
AnyFixedRefFrame &ref1=.Frame;
AnySeg &ref2=.Object1;
};
AnySeg Object2 ={ Mass=1; Jii={0,0,0}; AnyDrawRefFrame drw={}; };
AnyKinLinear lin ={
AnyFixedRefFrame &ref1=.Frame;
AnySeg &ref2=.Object2;
};
AnyKinRotational rot ={
AnyFixedRefFrame &ref1=.Frame;
AnySeg &ref2=.Object2;
Type =RotAxesAngles;
};
AnyKinEqInterPolDriver Lindrv ={
Type =Bspline;
AnyKinLinear &ref=.lin;
T={0,0.25,0.5,1};
Data={1*{0,0.5,0.75,1},1*{0,0.5,0.75,1},1*{0,0.5,0.75,1}};
};
AnyKinEqInterPolDriver rotdrv ={
AnyKinRotational &ref=.rot;
Type =Bspline;
T={0,0.25,0.5,1};
Data=1*{0*{0,0.5,0.75,1},2*{0,0.5,0.75,1},10*{0,0.5,0.75,1}};
//Data=1*{0*{0,0.5,0.75,1},0*{0,0.5,0.75,1},10*{0,0.5,0.75,1}};
};
InstantaneousAxisOfRotation IAOR (Body1=.Object1, Body2=.Object2) ={};
};
AnyBodyStudy study ={
AnyFolder &ref=.Model;
Gravity ={0,0,-9.81};
tEnd=0.99;
};
};