-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathkin2.fbl
56 lines (55 loc) · 1.1 KB
/
kin2.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
51
52
53
54
55
56
# run the simulations and generate the images
ulin Kinematic coupling
sys ccx solve2 > solve-k.log
read solve2.frd new
read solve2.inp nom
frame
view elem
rot -z
rot u 90
rot l 45
rot u 45
tra l 30
plot fv all
# movie counter
valu counter 0
# number of modes
valu num 10
# increment for modes
valu incr 1
# loop over movies
while counter < num
valu counter + counter incr
# convert counter value to integer
valu counter int counter
# build output file name from prefix, counter and extension
valu target & Refs2/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
ulin Axial tension in part 2
rot x
rot c -90
rot u 20
ds 12 e 7
view disp
scal d 100
frame
plot fv all
hcpy png Refs2/se1-kin
ulin Vertical load at the end of part 2
rot y
rot c 180
ds 14 e 7
scal d
scal d 5
hcpy png Refs2/se2-kin
sys dat2txt.py solve2
sys gnuplot frequency.plt
sys mv f.png Refs2/f-kin.png