v0.14.0
bouncing_mofem.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 
4 import step "/Users/karollewandowski/Desktop/mofem_logo2.step" heal
5 merge volume all
6 
7 #{t=0.25}
8 brick x 8 y {t} z 1
9 
10 move surface 405 location surface 397 include_merged
11 move volume 28 y {-t} include_merged
12 rotate volume all angle 90 about x include_merged
13 
14  volume all scale 4
15 
16 #
17 #
18 
19 # set default_material properly
20 block 1 volume 1 to 26
21 block 1 name "MAT_ELASTIC1" attribute count 2
22 block 1 attribute index 1 1
23 block 1 attribute index 2 0.2
24 
25 
26 # set default_material properly
27 block 2 volume 27 28
28 block 2 name "MAT_ELASTIC2" attribute count 2
29 block 2 attribute index 1 12
30 block 2 attribute index 2 0.2
31 
32 block 6 volume 1 to 27
33 block 6 name "BODY_FORCES"
34 block 6 attribute count 4
35 block 6 attribute index 1 0.0005
36 block 6 attribute index 2 0
37 block 6 attribute index 3 0
38 block 6 attribute index 4 1
39 
40 
41 #block 12 volume 5
42 #block 12 name "DAMPER_BALL"
43 #block 12 attribute count 2
44 #block 12 attribute index 1 1
45 #block 12 attribute index 2 -1
46 
47 
48 block 4 surface 395
49 block 4 name "SPRING_BC"
50 block 4 attribute count 2
51 block 4 attribute index 1 1e-5
52 block 4 attribute index 2 1e-5
53 
54 create displacement on surface 406 404 dof all fix 0
55 
56 create displacement on surface all with Y_Coord < .1 and Y_Coord > -0.1 dof 2 fix 0
57 create displacement on surface all with Y_Coord < .26 and Y_Coord > 0.24 dof 2 fix 0
58 
59 #
60 # x-direction
61 #create displacement on surface 38 29 dof 1 fix 0
62 # y-direction
63 #create displacement on surface 40 31 dof 2 fix 0
64 
65 
66 volume all scheme tetmesh
67 volume 1 to 26 size auto factor 10
68 #mesh volume 1 to 26
69 volume 27 28 size auto factor 10
70 mesh volume all
71 
72 block 10 surface 405
73 block 10 name "MORTAR_SLAVE_IN"
74 block 11 surface 397
75 block 11 name "MORTAR_MASTER_IN"
76 
77 color volume 1 to 26 white
78 color volume 27 blue
79 
80 save as "/Users/karollewandowski/Desktop/Meshes/Contact/bouncing_mofem.cub" overwrite
81 list tet
82