3 create vertex -130 -5 0
12 create vertex {x} -5 0
13 create vertex {-1*x} 5 0
16 create curve vertex 6 vertex 2
17 create curve vertex 2 vertex 1
18 create curve vertex 1 vertex 5
19 create curve vertex 5 vertex 6
22 create curve vertex 5 vertex 3
23 create curve vertex 3 vertex 4
24 create curve vertex 4 vertex 6
26 create surface curve 1 2 3 4
27 create surface curve 5 6 7 4
29 sweep surface 1 vector 0 0 1 distance 20
30 sweep surface 2 vector 0 0 1 distance 20
34 move volume 3 x 0 y 0 z 40
35 split surface 13 across location position 0 -5 60 location position 0 5 60
37 split surface 7 across location position -120 -5 0 location position -120 5 0
38 split surface 12 across location position 120 -5 0 location position 120 5 0
42 move volume 4 x 0 y 0 z 30
46 chop volume 1 with volume 4
47 chop volume 2 with volume 5
48 chop volume 3 with volume 6
55 block 1 name 'MAT_ELASTIC'
56 block 1 attribute count 2
57 block 1 attribute index 1 2800
58 block 1 attribute index 2 0.38
60 #surface 6 size auto factor 7
61 #surface 6 scheme trimesh
64 volume 7 9 11 scheme Tetmesh
65 volume 7 9 11 size auto factor 7
69 volume 8 10 12 13 scheme Tetmesh
70 volume 8 10 12 13 size auto factor 8
71 mesh volume 8 10 12 13
74 create displacement on curve 42 dof 1 dof 2 dof 3 fix 0
75 create displacement on curve 47 dof 3 dof 2 fix 0
76 create force on curve 37 vector 0 0 10 0 0 0
78 #actual geometry boundries curves on which you don't allow nodes to move
79 sideset 100 curve 92 100 101 44 43 2 94 108 110 118 117 51 50 6 21 18 36 34 25 10 13 35 33 27 37
81 #actual geometry boundries vertices on which you don't allow nodes to move (we also include vertices of the force curve because we don't allow it move)
82 nodeset 101 vertex 25 26 4 3 5 6 2 1 28 27
84 #actual geometry boundries surfaces from which you don't allow nodes to move out (nodes can only move on the surface)
85 sideset 102 surface 16 4 50 78 67 44 56 61 73 18 9 71 66 75 51 46 54 59 24 60 55 45 49 21
87 #The edges between 102 and 10200,10201,.... will allow nodes to move out from surface 102
88 Sideset 10200 surface 77 65 69 74
96 #color Volume 7 mediumturquoise
97 #color Volume 11 mediumturquoise
98 #color Volume 12 mediumturquoise
99 #color Volume 13 mediumturquoise
100 #color Volume 8 mediumturquoise
101 #color Volume 10 mediumturquoise
102 #color Volume 9 mediumturquoise
104 color Volume all white
105 color Surface 6 firebrick
107 #ADJUST FOR THE NEW VERSION OF MESH CUTTING
109 block 2 curve 100 118 110 6 94 35 117 44 51 43 34 13 2 101 21 10 36 50 25 18 27 33 148 144 128 133 141 138 131 129
110 block 3 vertex 4 3 26 25 27 28 2 1
112 delete sideset 102 200 201 10200 100
115 create sheet extended from surface 6
116 move curve 157 midpoint location curve 16 include_merged
117 surface 82 scale x 1 y 1 z 0.5 about vertex 17
119 surface 82 size auto factor 4
120 surface 82 scheme trimesh
122 #move surface 82 z 0.1 include_merged
124 sideset 400 surface 82
128 imprint volume 9 with volume 11
131 volume 9 scheme Tetmesh
132 volume 9 size auto factor 7
136 save as "/Users/zahur/Desktop/mixed_modeI_III_75.cub" overwrite
138 hardcopy "/Users/zahur/Desktop/mesh_45deg1.bmp" bmp