Skip to content

Commit 0f817a8

Browse files
Added gmsh files for generating tutorial mesh
1 parent 146d49b commit 0f817a8

File tree

3 files changed

+142
-0
lines changed

3 files changed

+142
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
//+
2+
Point(1) = {0, 0, 0, 1.0};
3+
//+
4+
Point(2) = {-0.01, 0, 0, 1.0};
5+
//+
6+
Point(3) = {0.01, 0, 0, 1.0};
7+
//+
8+
Point(4) = {0.01, -0.005, 0, 1.0};
9+
//+
10+
Point(5) = {0.0, -0.005, 0, 1.0};
11+
//+
12+
Point(6) = {-0.01, -0.005, 0, 1.0};
13+
//+
14+
Line(1) = {6, 2};
15+
//+
16+
Line(2) = {5, 1};
17+
//+
18+
Line(3) = {4, 3};
19+
//+
20+
Line(4) = {2, 1};
21+
//+
22+
Line(5) = {1, 3};
23+
//+
24+
Line(6) = {6, 5};
25+
//+
26+
Line(7) = {5, 4};
27+
//+
28+
Curve Loop(1) = {1, 4, -2, -6};
29+
//+
30+
Plane Surface(1) = {1};
31+
//+
32+
Curve Loop(2) = {5, -3, -7, 2};
33+
//+
34+
Plane Surface(2) = {2};
35+
//+
36+
Physical Curve("inlet", 8) = {1};
37+
//+
38+
Physical Curve("outlet", 9) = {3};
39+
//+
40+
Physical Curve("side_3", 10) = {6, 7};
41+
//+
42+
Physical Curve("cht_interface_3_1", 11) = {4};
43+
//+
44+
Physical Curve("cht_interface_3_2", 12) = {5};
45+
//+
46+
Physical Surface("fluid", 13) = {1, 2};
47+
//+
48+
Transfinite Curve {1, 2, 3} = 20 Using Progression 0.8;
49+
//+
50+
Transfinite Curve {4, 6, 7, 5} = 80 Using Progression 1;
51+
//+
52+
Transfinite Surface {1} = {6, 5, 1, 2};
53+
//+
54+
Transfinite Surface {2} = {5, 4, 3, 1};
55+
//+
56+
Recombine Surface {1, 2};
57+
58+
Mesh 2;
59+
60+
Save "fluid_mesh.su2";
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//+
2+
Point(1) = {0, 0, 0, 1.0};
3+
//+
4+
Point(2) = {-0.01, 0, 0, 1.0};
5+
//+
6+
Point(3) = {-0.01, 0.01, 0, 1.0};
7+
//+
8+
Point(4) = {0, 0.01, 0, 1.0};
9+
//+
10+
Line(1) = {2, 3};
11+
//+
12+
Line(2) = {3, 4};
13+
//+
14+
Line(3) = {4, 1};
15+
//+
16+
Line(4) = {1, 2};
17+
//+
18+
Curve Loop(1) = {1, 2, 3, 4};
19+
//+
20+
Plane Surface(1) = {1};
21+
//+
22+
Physical Curve("isothermal_wall_1", 5) = {1};
23+
//+
24+
Physical Curve("cht_interface_1_2", 6) = {3};
25+
//+
26+
Physical Curve("side_1", 7) = {2};
27+
//+
28+
Physical Curve("cht_interface_1_3", 8) = {4};
29+
//+
30+
Physical Surface("solid_1", 9) = {1};
31+
//+
32+
Transfinite Curve {1, 2, 3, 4} = 40 Using Progression 1;
33+
//+
34+
Transfinite Surface {1} = {2, 1, 4, 3};
35+
//+
36+
Recombine Surface {1};
37+
//+
38+
Recombine Surface {1};
39+
40+
Mesh 2;
41+
42+
Save "solid_mesh_1.su2";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//+
2+
Point(1) = {0, 0, 0, 1.0};
3+
//+
4+
Point(2) = {0.01, 0, 0, 1.0};
5+
//+
6+
Point(3) = {0.01, 0.01, 0, 1.0};
7+
//+
8+
Point(4) = {0.0, 0.01, 0, 1.0};
9+
//+
10+
Line(1) = {1, 4};
11+
//+
12+
Line(2) = {4, 3};
13+
//+
14+
Line(3) = {3, 2};
15+
//+
16+
Line(4) = {2, 1};
17+
//+
18+
Curve Loop(1) = {1, 2, 3, 4};
19+
//+
20+
Surface(1) = {1};
21+
//+
22+
Physical Curve("cht_interface_2_1", 5) = {1};
23+
//+
24+
Physical Curve("cht_interface_2_3", 6) = {4};
25+
//+
26+
Physical Curve("isothermal_wall_2", 7) = {3};
27+
//+
28+
Physical Curve("side_2", 8) = {2};
29+
//+
30+
Physical Surface("solid_2", 9) = {1};
31+
//+
32+
Transfinite Curve {1, 4, 3, 2} = 40 Using Progression 1;
33+
//+
34+
Transfinite Surface {1} = {1, 2, 3, 4};
35+
//+
36+
Recombine Surface {1};
37+
38+
Mesh 2;
39+
40+
Save "solid_mesh_2.su2";

0 commit comments

Comments
 (0)