-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathkin.fbl
50 lines (46 loc) · 970 Bytes
/
kin.fbl
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
# run the simulations and generate the images
ulin Kinematic coupling
sys cp kpin.inc pin.inc
sys ccx solve > solve-k.log
read solve.frd new
read solve.inp nom
frame
view elem
rot -z
rot u 90
rot l 45
rot u 45
tra l 30
plot fv all
# loop over movies
valu counter 0
while counter < 10
valu counter + counter 1
# convert counter value to integer
valu counter int counter
# build output file name from prefix, counter and extension
valu target & Refs/kin counter
valu target & target .gif
# make sure that the frequency is correctly displayed
ds counter e 4
# write 11 frames from the output of the subsequent command
movi frames auto
ds counter a 4
# store the movie under the target name target
sys mv movie.gif target
endwhile
ds 12 e 7
view disp
scal d 100
frame
rot -z
rot u 90
rot l 45
rot u 45
tra l 30
plot fv all
hcpy png Refs/se-kin
sys rm Eigenvalues_1.txt
sys dat2txt.py solve
sys gnuplot frequency.plt
sys mv f.png Refs/f-kin.png