-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtriangulation_for_fluid.geo
66 lines (66 loc) · 1.08 KB
/
triangulation_for_fluid.geo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
SetFactory("OpenCASCADE");
lc = 0.04;
//+
Point(1) = {0,0,0,lc};
//+
Point(2) = {1,0,0,lc};
//+
Point(3) = {1,1,0,lc};
//+
Point(4) = {0,1,0,lc};
//+
Point(6) = {0.7, 0.5, 0, lc/2};
//+
Point(7) = {0.5, 0.7, -0, lc/2};
//+
Point(8) = {0.3, 0.5, -0, lc/2};
//+
Point(9) = {0.5, 0.3, 0, lc/2};
//+
Point(10) = {0.3, 0.4, -0, lc/2};
//+
Point(11) = {0.3, 0.6, -0, lc/2};
//+
Point(12) = {0.7, 0.6, 0, lc/2};
//+
Point(13) = {0.7, 0.4, 0, lc/2};
//+
Point(14) = {0.7, 0.3, 0, lc/2};
//+
Point(15) = {0.3, 0.3, -0, lc/2};
//+
Point(16) = {0.3, 0.7, -0, lc/2};
//+
Point(17) = {0.7, 0.7, 0, lc/2};
//+
Point(18) = {0.6, 0.7, 0, lc/2};
//+
Point(19) = {0.4, 0.7, -0, lc/2};
//+
Point(20) = {0.4, 0.3, -0, lc/2};
//+
Point(21) = {0.6, 0.3, 0, lc/2};
//+
Line(1) = {1,2};
//+
Line(2) = {2,3};
//+
Line(3) = {3,4};
//+
Line(4) = {4,1};
//+
Circle(5) = {0.5, 0.5, 0, 0.2, 0, 2*Pi};
//+
Curve Loop(1) = {1, 2, 3, 4};
//+
Curve Loop(2) = {5};
//+
Plane Surface(1) = {1, 2};
//+
Physical Curve("IN") = {1};
//+
Physical Curve("OUT") = {3};
//+
Physical Curve("WALL") = {4, 5, 2};
//+
Physical Surface("Domain") = {1};