2 set duplicate block elements on
5 create sphere radius 4 inner radius 2
6 move volume 1 z 7 include_merged
11 webcut volume all with general plane zx
12 webcut volume all with general plane zy
14 delete Volume 7 4 2 1 3 8
16 # set default_material properly
18 block 1 name "MAT_ELASTIC1" attribute count 2
19 block 1 attribute index 1 2
20 block 1 attribute index 2 0.2
23 # set default_material properly
25 block 2 name "MAT_ELASTIC2" attribute count 2
26 block 2 attribute index 1 12
27 block 2 attribute index 2 0.2
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
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
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
51 create displacement on surface 17 42 dof all fix 0
54 create displacement on surface 38 29 dof 1 fix 0
56 create displacement on surface 40 31 dof 2 fix 0
60 volume all scheme tetmesh
61 volume 6 size auto factor 10
62 volume 5 size auto factor 10
67 block 10 name "MORTAR_SLAVE_IN"
69 block 11 name "MORTAR_MASTER_IN"
72 save as "/Users/karollewandowski/Desktop/Meshes/Contact/bouncing_ball.cub" overwrite