Commit 2f2ec880 authored by florez's avatar florez
Browse files

wall with rips

parent 973adb6c
This source diff could not be displayed because it is too large. You can view the blob instead.
//+
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 5, .2, 2};
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.3; dist = 0.75;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {0.75-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.5-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {2.25-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Volume{6}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.05;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall.msh";
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.1; dist = 3.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_0.msh";
\ No newline at end of file
$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
4
0 4 "fixpoint"
2 2 "front"
2 3 "bottom"
3 1 "Volume"
$EndPhysicalNames
$Entities
16 24 10 1
1 -0.01 0 0 1 4
2 3.01 0 0 0
3 -0.01 0 1.5 0
4 3.01 0 1.5 0
5 3.01 0.1 0 0
6 2.99 0.1 0 0
7 2.99 0.02 0 0
8 0.01 0.02 0 0
9 0.01 0.1 0 0
10 -0.01 0.1 0 0
11 3.01 0.1 1.5 0
12 2.99 0.1 1.5 0
13 2.99 0.02 1.5 0
14 0.01 0.02 1.5 0
15 0.01 0.1 1.5 0
16 -0.01 0.1 1.5 0
1 -0.01000010000000007 -1e-07 -1e-07 3.0100001 1e-07 1e-07 0 2 1 -2
2 -0.0100001 -1e-07 -9.999999994736442e-08 -0.009999900000000001 1e-07 1.5000001 0 2 1 -3
3 -0.01000009999999985 -1e-07 1.4999999 3.0100001 1e-07 1.5000001 0 2 4 -3
4 3.0099999 -1e-07 -9.999999994736442e-08 3.0100001 1e-07 1.5000001 0 2 2 -4
5 3.0099999 -1.000000000028756e-07 -1e-07 3.0100001 0.1000001 1e-07 0 2 2 -5
6 2.9899999 0.0999999 -1e-07 3.0100001 0.1000001 1e-07 0 2 6 -5
7 2.9899999 0.0199999 -1e-07 2.9900001 0.1000001 1e-07 0 2 7 -6
8 0.00999989999999995 0.0199999 -1e-07 2.9900001 0.0200001 1e-07 0 2 8 -7
9 0.009999900000000001 0.0199999 -1e-07 0.0100001 0.1000001 1e-07 0 2 8 -9
10 -0.0100001 0.0999999 -1e-07 0.0100001 0.1000001 1e-07 0 2 10 -9
11 -0.0100001 -1.000000000028756e-07 -1e-07 -0.009999900000000001 0.1000001 1e-07 0 2 1 -10
12 3.0099999 -1.000000000028756e-07 1.4999999 3.0100001 0.1000001 1.5000001 0 2 4 -11
13 2.9899999 0.0999999 1.4999999 3.0100001 0.1000001 1.5000001 0 2 12 -11
14 2.9899999 0.0199999 1.4999999 2.9900001 0.1000001 1.5000001 0 2 13 -12
15 0.00999989999999995 0.0199999 1.4999999 2.9900001 0.0200001 1.5000001 0 2 14 -13
16 0.009999900000000001 0.0199999 1.4999999 0.0100001 0.1000001 1.5000001 0 2 14 -15
17 -0.0100001 0.0999999 1.4999999 0.0100001 0.1000001 1.5000001 0 2 16 -15
18 -0.0100001 -1.000000000028756e-07 1.4999999 -0.009999900000000001 0.1000001 1.5000001 0 2 3 -16
19 -0.0100001 0.0999999 -9.999999994736442e-08 -0.009999900000000001 0.1000001 1.5000001 0 2 10 -16
20 0.009999900000000001 0.0999999 -9.999999994736442e-08 0.0100001 0.1000001 1.5000001 0 2 9 -15
21 0.009999849999999999 0.01999985 -1.499999999765578e-07 0.01000015 0.02000015 1.50000015 0 2 14 -8
22 2.98999985 0.01999985 -1.499999999765578e-07 2.99000015 0.02000015 1.50000015 0 2 13 -7
23 2.9899999 0.0999999 -9.999999994736442e-08 2.9900001 0.1000001 1.5000001 0 2 6 -12
24 3.0099999 0.0999999 -9.999999994736442e-08 3.0100001 0.1000001 1.5000001 0 2 5 -11
1 -0.01000010000000007 -1e-07 -9.999999994736442e-08 3.0100001 1e-07 1.5000001 1 2 4 1 4 3 -2
2 -0.01000010000000007 -1.000000000028756e-07 -1e-07 3.0100001 0.1000001 1e-07 1 3 8 5 -6 -7 -8 9 -10 -11 1
3 -0.01000010000000007 -1.000000000028756e-07 1.4999999 3.0100001 0.1000001 1.5000001 0 8 3 18 17 -16 15 14 13 -12
4 -0.0100001 -1.000000000028756e-07 -9.999999994736442e-08 -0.009999900000000001 0.1000001 1.5000001 0 4 2 18 -19 -11
5 -0.0100001 0.0999999 -9.999999994736442e-08 0.0100001 0.1000001 1.5000001 0 4 10 20 -17 -19
6 0.009999849999999999 0.01999985 -1.499999999765578e-07 0.01000015 0.10000015 1.50000015 0 4 16 -20 -9 -21
7 0.009999850000000032 0.01999985 -1.499999999765578e-07 2.99000015 0.02000015 1.50000015 0 4 8 -22 -15 21
8 2.98999985 0.01999985 -1.499999999765578e-07 2.99000015 0.10000015 1.50000015 0 4 14 -23 -7 -22
9 3.0099999 -1.000000000028756e-07 -9.999999994736442e-08 3.0100001 0.1000001 1.5000001 0 4 4 12 -24 -5
10 2.9899999 0.0999999 -9.999999994736442e-08 3.0100001 0.1000001 1.5000001 0 4 6 24 -13 -23
1 -0.01000014999999999 -1.499999999973745e-07 -1.499999999765578e-07 3.01000015 0.10000015 1.50000015 1 1 10 1 2 3 4 5 6 7 8 9 10
$EndEntities
$Nodes
51 2340 1 2340
0 1 0 1
1
-0.01 0 0
0 2 0 1
2
3.01 0 0
0 3 0 1
3
-0.01 0 1.5
0 4 0 1
4
3.01 0 1.5
0 5 0 1
5
3.01 0.1 0
0 6 0 1
6
2.99 0.1 0
0 7 0 1
7
2.99 0.02 0
0 8 0 1
8
0.01 0.02 0
0 9 0 1
9
0.01 0.1 0
0 10 0 1
10
-0.01 0.1 0
0 11 0 1
11
3.01 0.1 1.5
0 12 0 1
12
2.99 0.1 1.5
0 13 0 1
13
2.99 0.02 1.5
0 14 0 1
14
0.01 0.02 1.5
0 15 0 1
15
0.01 0.1 1.5
0 16 0 1
16
-0.01 0.1 1.5
1 1 0 31
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
0.17875 0 0
0.3674999999999999 0 0
0.55625 0 0
0.7450000000000002 0 0
0.9337500000000001 0 0
1.1225 0 0
1.31125 0 0
1.5 0 0
1.68875 0 0
1.8775 0 0
2.066249999999999 0 0
2.254999999999999 0 0
2.44375 0 0
2.6325 0 0
2.82125 0 0
0.08437499999999999 0 0
0.273125 0 0
0.461875 0 0
0.6506250000000001 0 0
0.8393750000000001 0 0
1.028125 0 0
1.216875 0 0
1.405625 0 0
1.594375 0 0
1.783125 0 0
1.971874999999999 0 0
2.160625 0 0
2.349375 0 0
2.538125 0 0
2.726875 0 0
2.915625 0 0
1 2 0 15
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-0.01 0 0.1875
-0.01 0 0.375
-0.01 0 0.5625
-0.01 0 0.75
-0.01 0 0.9375
-0.01 0 1.125
-0.01 0 1.3125
-0.01 0 0.09375
-0.01 0 0.28125
-0.01 0 0.46875
-0.01 0 0.65625
-0.01 0 0.84375
-0.01 0 1.03125
-0.01 0 1.21875
-0.01 0 1.40625
1 3 0 31
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
2.82125 0 1.5
2.6325 0 1.5
2.44375 0 1.5
2.255 0 1.5
2.06625 0 1.5
1.8775 0 1.5
1.68875 0 1.5
1.5 0 1.5
1.31125 0 1.5
1.122500000000001 0 1.5
0.9337500000000012 0 1.5
0.745000000000001 0 1.5
0.5562500000000008 0 1.5
0.3675000000000006 0 1.5
0.1787500000000004 0 1.5
2.915625 0 1.5
2.726875 0 1.5
2.538125 0 1.5
2.349375 0 1.5
2.160625 0 1.5
1.971875 0 1.5
1.783125 0 1.5
1.594375 0 1.5
1.405625 0 1.5
1.216875 0 1.5
1.028125000000001 0 1.5
0.8393750000000009 0 1.5
0.6506250000000007 0 1.5
0.4618750000000005 0 1.5
0.2731250000000003 0 1.5
0.08437500000000009 0 1.5
1 4 0 15
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
3.01 0 0.1875
3.01 0 0.375
3.01 0 0.5625
3.01 0 0.75
3.01 0 0.9375
3.01 0 1.125
3.01 0 1.3125
3.01 0 0.09375
3.01 0 0.28125
3.01 0 0.46875
3.01 0 0.65625
3.01 0 0.84375
3.01 0 1.03125
3.01 0 1.21875
3.01 0 1.40625
1 5 0 1
109
3.01 0.05 0
1 6 0 1
110
3 0.1 0
1 7 0 1
111
2.99 0.06 0
1 8 0 29
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
0.2086666666666667 0.02 0
0.4073333333333334 0.02 0
0.606 0.02 0
0.8046666666666664 0.02 0
1.003333333333333 0.02 0
1.202 0.02 0
1.400666666666666 0.02 0
1.599333333333333 0.02 0
1.798 0.02 0
1.996666666666668 0.02 0
2.195333333333334 0.02 0
2.394000000000001 0.02 0
2.592666666666668 0.02 0
2.791333333333334 0.02 0
0.1093333333333333 0.02 0
0.3080000000000001 0.02 0
0.5066666666666667 0.02 0
0.7053333333333333 0.02 0
0.9039999999999999 0.02 0
1.102666666666667 0.02 0
1.301333333333333 0.02 0
1.5 0.02 0
1.698666666666667 0.02 0
1.897333333333334 0.02 0
2.096000000000001 0.02 0
2.294666666666668 0.02 0
2.493333333333334 0.02 0
2.692000000000001 0.02 0
2.890666666666667 0.02 0
1 9 0 1
141
0.01 0.06 0
1 10 0 1
142
0 0.1 0
1 11 0 1
143
-0.01 0.05 0
1 12 0 1
144
3.01 0.05 1.5
1 13 0 1
145
3 0.1 1.5
1 14 0 1
146
2.99 0.06 1.5
1 15 0 29
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
0.2086666666666667 0.02 1.5
0.4073333333333334 0.02 1.5
0.606 0.02 1.5
0.8046666666666664 0.02 1.5
1.003333333333333 0.02 1.5
1.202 0.02 1.5
1.400666666666666 0.02 1.5
1.599333333333333 0.02 1.5
1.798 0.02 1.5
1.996666666666668 0.02 1.5
2.195333333333334 0.02 1.5
2.394000000000001 0.02 1.5
2.592666666666668 0.02 1.5
2.791333333333334 0.02 1.5
0.1093333333333333 0.02 1.5
0.3080000000000001 0.02 1.5
0.5066666666666667 0.02 1.5
0.7053333333333333 0.02 1.5
0.9039999999999999 0.02 1.5
1.102666666666667 0.02 1.5
1.301333333333333 0.02 1.5
1.5 0.02 1.5
1.698666666666667 0.02 1.5
1.897333333333334 0.02 1.5
2.096000000000001 0.02 1.5
2.294666666666668 0.02 1.5
2.493333333333334 0.02 1.5
2.692000000000001 0.02 1.5
2.890666666666667 0.02 1.5
1 16 0 1
176
0.01 0.06 1.5
1 17 0 1
177
0 0.1 1.5
1 18 0 1
178
-0.01 0.05 1.5
1 19 0 15
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
-0.01 0.1 0.1875
-0.01 0.1 0.375
-0.01 0.1 0.5625
-0.01 0.1 0.75
-0.01 0.1 0.9375
-0.01 0.1 1.125
-0.01 0.1 1.3125
-0.01 0.1 0.09375
-0.01 0.1 0.28125
-0.01 0.1 0.46875
-0.01 0.1 0.65625
-0.01 0.1 0.84375
-0.01 0.1 1.03125
-0.01 0.1 1.21875
-0.01 0.1 1.40625
1 20 0 15
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
0.01 0.1 0.1875
0.01 0.1 0.375
0.01 0.1 0.5625
0.01 0.1 0.75
0.01 0.1 0.9375
0.01 0.1 1.125
0.01 0.1 1.3125
0.01 0.1 0.09375
0.01 0.1 0.28125
0.01 0.1 0.46875
0.01 0.1 0.65625
0.01 0.1 0.84375
0.01 0.1 1.03125
0.01 0.1 1.21875
0.01 0.1 1.40625
1 21 0 15
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
0.01 0.02 1.3125
0.01 0.02 1.125
0.01 0.02 0.9375
0.01 0.02 0.75
0.01 0.02 0.5625
0.01 0.02 0.375
0.01 0.02 0.1875
0.01 0.02 1.40625
0.01 0.02 1.21875
0.01 0.02 1.03125
0.01 0.02 0.84375
0.01 0.02 0.65625
0.01 0.02 0.46875
0.01 0.02 0.28125
0.01 0.02 0.09375
1 22 0 15
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
2.99 0.02 1.3125
2.99 0.02 1.125
2.99 0.02 0.9375
2.99 0.02 0.75
2.99 0.02 0.5625
2.99 0.02 0.375
2.99 0.02 0.1875
2.99 0.02 1.40625
2.99 0.02 1.21875
2.99 0.02 1.03125
2.99 0.02 0.84375
2.99 0.02 0.65625
2.99 0.02 0.46875
2.99 0.02 0.28125
2.99 0.02 0.09375
1 23 0 15
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
2.99 0.1 0.1875
2.99 0.1 0.375
2.99 0.1 0.5625
2.99 0.1 0.75