title tiger cask by Gus Aramayo
nike3d
c accuracy 12
c delta - offset for interior cylinder surface of part 1
c rad - radius of interior cylinder surface
c th - gap between cylinder container and other parts
c sth - shell thickness of cylinder
c bth - box thickness
parameter delta 2 rad [%delta+6] th .125 sth .25 bth 1;
sid 1 sv; c top of box and top of foam
sid 2 sv; c bottom of box and bottom of foam
sid 3 sv; c left of box and foam
sid 4 sv; c right of box and foam
sid 5 sv; c front of box and foam
sid 6 sv; c back of box and foam
sid 7 sv; c between two halves of box
sid 8 sv; c between two halves of foam
sid 9 sv; c front cap and front foam
sid 10 sv; c back cap and back foam
sid 11 sv; c between cylinder and foam
sid 12 sv; c front cap and contents
sid 13 sv; c back cap and contents
sid 14 sv; c between cylinder and contents
sd 1 cy 0 0 0 0 0 1 8
sd 2 sp 0 0 [14+%th] [8-%th]
sd 3 sp 0 0 [86-%th] [8-%th]
sd 4 cy 0 0 0 0 0 1 [8-%th]
sd 5 sp 0 0 14 8.01
sd 6 cy 0 0 0 0 0 1 [8+%th]
sd 7 cy 0 %delta 0 0 0 1 %rad
sd 8 cy 0 [-%delta] 0 0 0 1 %rad
sd 9 cy %delta 0 0 0 0 1 %rad
sd 10 cy [-%delta] 0 0 0 0 1 %rad
C mat 1 3 shell c container
C mat 2 3 c contents
C mat 3 3 c wood
C mat 4 3 endmat c foam
velocity 0 0 [sqrt(386.4*360)]
plane 1 0 0 100 0 0 1 .001 ston ;
block -1 -7;-1 -7;1 45;-8 8 -8 8 6 94 c cylinder
orpt - 0 0 50
sii -1 -2;-1 -2;;11 m 
orpt + 0 0 50
sii -1 -2;-1 -2;;14 m 
thic %sth mate 1 sfi -1 -2;-1 -2;;sd 1 endpart
block 1 5 11 15;1 5 11 15;-1;-8 -8 8 8 -8 -8 8 8 0 c cylinder cap
dei 1 2 0 3 4;1 2 0 3 4;;
sf 2 2 0 3 2 0 sd 7
sf 2 3 0 3 3 0 sd 8
sf 2 2 0 2 3 0 sd 9
sf 3 2 0 3 3 0 sd 10
sf 1 0 0 1 0 0 sd 1 
sf 4 0 0 4 0 0 sd 1
sf 0 1 0 0 1 0 sd 1 
sf 0 4 0 0 4 0 sd 1 
sf 0 0 0 0 0 0 sd 5
orpt - 0 0 50
si 0 0 0 0 0 0 10 m
orpt + 0 0 50
si 0 0 0 0 0 0 13 m
mate 1 thic %sth 
endpart
block 1 5 11 15;1 5 11 15;-1;-8 -8 8 8 -8 -8 8 8 0 c cylinder cap
sf 2 2 0 3 2 0 cy 0 %delta 0 0 0 1 %rad
sf 2 3 0 3 3 0 cy 0 [-%delta] 0 0 0 1 %rad
sf 2 2 0 2 3 0 cy %delta 0 0 0 0 1 %rad
sf 3 2 0 3 3 0 cy [-%delta] 0 0 0 0 1 %rad
mate 1 thic %sth dei 1 2 0 3 4;1 2 0 3 4;;
sf 1 0 0 1 0 0 sd 1 sf 4 0 0 4 0 0 sd 1
sf 0 1 0 0 1 0 sd 1 sf 0 4 0 0 4 0 sd 1 sf 0 0 0 0 0 0 sd 5
orpt - 0 0 50
si 0 0 0 0 0 0 9 m
orpt + 0 0 50
si 0 0 0 0 0 0 12 m
lct 1 rxy mz 100;lrep 1;endpart
block 1 3 6 9 11;1 3 6 9 11;1 3 5 15 17 19; c material in cylinder
-8 -8 0 8 8 -8 -8 0 8 8 10.5 10.5 [14+%th] [86-%th] 89.5 89.5
dei 1 2 0 4 5;1 2 0 4 5;1 3 0 4 6;dei 2 4;1 2 0 4 5;1 2 0 5 6;
dei 1 2 0 4 5;2 4;1 2 0 5 6;mate 9 sii -1 -5;-1 -5;3 4;14 s
si 2 2 6 4 4 6 12 s sii -1 -5;-1 -5;4 5;12 s
si 2 2 1 4 4 1 13 s sii -1 -5;-1 -5;2 3;13 s
sfi -1 -5;-1 -5;3 4;sd 4 sfi -1 -5;-1 -5;1 3;sd 2 sfi -1 -5;-1 -5;4 6;sd 3
sf 2 2 1 4 4 1 sd 2 sf 2 2 6 4 4 6 sd 3 pb 2 2 2 4 2 5 y -3
pb 2 4 2 4 4 5 y 3 pb 2 2 2 2 4 5 x -3 pb 4 2 2 4 4 5 x 3 
endpart
block 1 5 6;1 2 13 14;1 2 40 41; c upper half of box
0 9 [9+%bth] [-12-%bth] -12 12 [12+%bth] [-%bth] 0 100 [100+%bth]
mate 3 de 1 2 2 2 3 3 sw 0 0 4 0 0 4 1
si 2 2 2 2 3 3 1 m si 1 2 2 2 2 3 3 m si 1 3 2 2 3 3 4 m
si 1 2 3 2 3 3 5 m si 1 2 2 2 3 2 6 m si 1 0 0 1 0 0 7 m
endpart
block 1 5 6;1 2 13 14;1 2 40 41; c lower half of box
0 9 [9+%bth] [-12-%bth] -12 12 [12+%bth] [-%bth] 0 100 [100+%bth]
si 2 2 2 2 3 3 2 m si 1 2 2 2 2 3 3 m si 1 3 2 2 3 3 4 m
si 1 2 3 2 3 3 5 m si 1 2 2 2 3 2 6 m si 1 0 0 1 0 0 7 s
de 1 2 2 2 3 3 sw 0 0 4 0 0 4 1 mate 3 lct 1 ryz;lrep 1;
endpart
block 1 4 5;1 2 8 9;1 3 13 15;0 9 9 -12 -12 12 12 0 6 94 100 c upper foam
dei 2 3;1 2 0 3 4;1 3;de 1 2 2 2 3 3 mate 4
pb 2 2 0 2 3 0 x 8 pb 1 2 0 2 2 0 y -8 pb 1 3 0 2 3 0 y 8
sfi 1 2;-2 -3;2 3;sd 6 sf 2 2 2 2 3 3 sd 6 si 3 0 0 3 0 0 1 s
si 0 1 0 0 1 0 3 s si 0 4 0 0 4 0 4 s si 0 0 4 0 0 4 5 s
si 0 0 1 0 0 1 6 s si 1 0 0 1 0 0 8 m si 1 2 3 2 3 3 9 s
si 1 2 2 2 3 2 10 s si 2 2 2 2 3 3 11 s sii 1 2;-2 -3;2 3;11 s
endpart
block 1 4 5;1 2 8 9;1 3 13 15;0 9 9 -12 -12 12 12 0 6 94 100 c lowwer foam
dei 2 3;1 2 0 3 4;1 3;de 1 2 2 2 3 3 mate 4
pb 2 2 0 2 3 0 x 8 pb 1 2 0 2 2 0 y -8 pb 1 3 0 2 3 0 y 8
sfi 1 2;-2 -3;2 3;sd 6
sf 2 2 2 2 3 3 sd 6 si 1 0 0 1 0 0 2 s si 0 1 0 0 1 0 3 s
si 0 4 0 0 4 0 4 s si 0 0 4 0 0 4 5 s si 0 0 1 0 0 1 6 s
si 1 0 0 1 0 0 8 s si 1 2 3 2 3 3 9 s si 1 2 2 2 3 2 10 s
si 2 2 2 2 3 3 11 s sii 1 2;-2 -3;2 3;11 s lct 1 ryz;lrep 1;endpart
bptol 6 8 -1 bptol 1 2 .35 bptol 1 3 .35 c use stp .001 to merge
merge
rx   30.0 ry   25.0 pexp 20 0 0 1 2 3 4;5 7;; tvv
