v0.14.0
mixed_modeI_III.jou
Go to the documentation of this file.
1 reset
2 #{angle=45}
3 create vertex -130 -5 0
4 create vertex -130 5 0
5 
6 create vertex 130 -5 0
7 create vertex 130 5 0
8 
9 #{gama=angle*PI/180}
10 #{x=5/tan(gama)}
11 
12 create vertex {x} -5 0
13 create vertex {-1*x} 5 0
14 
15 
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
20 
21 
22 create curve vertex 5 vertex 3
23 create curve vertex 3 vertex 4
24 create curve vertex 4 vertex 6
25 
26 create surface curve 1 2 3 4
27 create surface curve 5 6 7 4
28 
29 sweep surface 1 vector 0 0 1 distance 20
30 sweep surface 2 vector 0 0 1 distance 20
31 
32 
33 brick x 260 y 10 z 40
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
36 
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
39 
40 
41 brick x 50 y 10 z 60
42 move volume 4 x 0 y 0 z 30
43 volume 4 copy
44 volume 4 copy
45 
46 chop volume 1 with volume 4
47 chop volume 2 with volume 5
48 chop volume 3 with volume 6
49 
50 imprint volume all
51 merge volume all
52 
53 
54 block 1 volume all
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
59 
60 #surface 6 size auto factor 7
61 #surface 6 scheme trimesh
62 #mesh surface 6
63 
64 volume 7 9 11 scheme Tetmesh
65 volume 7 9 11 size auto factor 7
66 mesh volume 7 9 11
67 
68 
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
72 
73 
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
77 
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
80 
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
83 
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
86 
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
89 
90 #crack surface
91 Sideset 200 surface 6
92 
93 #crack front
94 Sideset 201 curve 16
95 
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
103 
104 color Volume all white
105 color Surface 6 firebrick
106 
107 #ADJUST FOR THE NEW VERSION OF MESH CUTTING
108 
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
111 
112 delete sideset 102 200 201 10200 100
113 
114 
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
118 
119 surface 82 size auto factor 4
120 surface 82 scheme trimesh
121 mesh surface 82
122 #move surface 82 z 0.1 include_merged
123 
124 sideset 400 surface 82
125 
126 unite volume 9 7
127 
128 imprint volume 9 with volume 11
129 merge volume all
130 
131 volume 9 scheme Tetmesh
132 volume 9 size auto factor 7
133 mesh volume 9
134 
135 
136 save as "/Users/zahur/Desktop/mixed_modeI_III_75.cub" overwrite
137 
138 hardcopy "/Users/zahur/Desktop/mesh_45deg1.bmp" bmp
139 
140 
141 
142