-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdiode.geo
70 lines (70 loc) · 1.1 KB
/
diode.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
67
68
69
70
mesh_size = 0.02; // 0.02 is pretty good
//+
Point(1) = {-0.5, 0, 0, 1.0};
//+
Point(2) = {-0.5, -0.5, 0, 1.0};
//+
Point(3) = {0, -0.5, 0, 1.0};
//+
Point(4) = {0, -1.5, 0, 1.0};
//+
Point(5) = {3, -1.5, 0, 1.0};
//+
Point(6) = {3, -0.5, 0, 1.0};
//+
Point(7) = {3.5, -0.5, 0, 1.0};
//+
Point(8) = {3.5, 0, 0, 1.0};
//+
Point(9) = {3.0, 0, 0, 1.0};
//+
Point(10) = {0, 0, 0, 1.0};
//+
Line(1) = {2, 3};
//+
Line(2) = {3, 4};
//+
Line(3) = {4, 5};
//+
Line(4) = {5, 6};
//+
Line(5) = {6, 7};
//+
Line(6) = {7, 8};
//+
Line(7) = {8, 9};
//+
Line(8) = {9, 6};
//+
Line(9) = {9, 10};
//+
Line(10) = {10, 1};
//+
Line(11) = {1, 2};
//+
Line(12) = {3, 10};
//+
Curve Loop(1) = {10, 11, 1, 12};
//+
Plane Surface(1) = {1};
//+
Curve Loop(2) = {9, -12, 2, 3, 4, -8};
//+
Plane Surface(2) = {2};
//+
Curve Loop(3) = {7, 8, 5, 6};
//+
Plane Surface(3) = {3};
//+
MeshSize{ PointsOf{ Surface{1, 2, 3}; } } = mesh_size;//+
Physical Curve(1) = {11};
//+
Physical Curve(2) = {6};
//+
Physical Curve(3) = {1, 2, 3, 4, 5};
//+
Physical Curve(4) = {10, 7, 9};
//+
Physical Surface(5) = {2};
Physical Surface(6) = {1};
Physical Surface(7) = {3};