v0.14.0
bouncing_ball.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 
4 
5 create sphere radius 4 inner radius 2
6 move volume 1 z 7 include_merged
7 
8 brick x 20 y 20 z 1
9 
10 
11 webcut volume all with general plane zx
12 webcut volume all with general plane zy
13 
14 delete Volume 7 4 2 1 3 8
15 
16 # set default_material properly
17 block 1 volume 5
18 block 1 name "MAT_ELASTIC1" attribute count 2
19 block 1 attribute index 1 2
20 block 1 attribute index 2 0.2
21 
22 
23 # set default_material properly
24 block 2 volume 6
25 block 2 name "MAT_ELASTIC2" attribute count 2
26 block 2 attribute index 1 12
27 block 2 attribute index 2 0.2
28 
29 block 6 volume 5
30 block 6 name "BODY_FORCES"
31 block 6 attribute count 4
32 block 6 attribute index 1 0.001
33 block 6 attribute index 2 0
34 block 6 attribute index 3 0
35 block 6 attribute index 4 1
36 
37 
38 block 12 volume 5
39 block 12 name "DAMPER_BALL"
40 block 12 attribute count 2
41 block 12 attribute index 1 1
42 block 12 attribute index 2 -1
43 
44 
45 block 4 surface 30
46 block 4 name "SPRING_BC"
47 block 4 attribute count 2
48 block 4 attribute index 1 1e-5
49 block 4 attribute index 2 1e-5
50 
51 create displacement on surface 17 42 dof all fix 0
52 
53 # x-direction
54 create displacement on surface 38 29 dof 1 fix 0
55 # y-direction
56 create displacement on surface 40 31 dof 2 fix 0
57 
58 
59 
60 volume all scheme tetmesh
61 volume 6 size auto factor 10
62 volume 5 size auto factor 10
63 mesh volume all
64 
65 
66 block 10 surface 39
67 block 10 name "MORTAR_SLAVE_IN"
68 block 11 surface 30
69 block 11 name "MORTAR_MASTER_IN"
70 
71 
72 save as "/Users/karollewandowski/Desktop/Meshes/Contact/bouncing_ball.cub" overwrite
73 list tet