|
n1 = 30.0; |
|
n2 = 5.0; |
|
n3 = 3; |
|
x_ninf = -6.0; |
|
x_pinf = 20.0; |
|
y_inf = 6.0; |
|
|
|
|
|
R = 0.5; |
|
x0 = 0.0; |
|
y0 = 0.0; |
|
Point(1) = { x0, y0, 0, 1/n1}; |
|
Point(2) = { x0+R,y0+0.0, 0, 1/n1}; |
|
Point(3) = { x0+0.0,y0+R, 0, 1/n1}; |
|
Point(4) = { x0-R,y0+0.0, 0, 1/n1}; |
|
Point(5) = { x0+0.0,y0-R, 0, 1/n1}; |
|
|
|
x0 = 1.5*1.866*R; |
|
y0 = 1.5*R; |
|
Point(6) = { x0, y0, 0, 1/n1}; |
|
Point(7) = { x0+R,y0+0.0, 0, 1/n1}; |
|
Point(8) = { x0+0.0,y0+R, 0, 1/n1}; |
|
Point(9) = { x0-R,y0+0.0, 0, 1/n1}; |
|
Point(10) = { x0+0.0,y0-R, 0, 1/n1}; |
|
|
|
x0 = 1.5*1.866*R; |
|
y0 = -1.5*R; |
|
Point(11) = { x0, y0, 0, 1/n1}; |
|
Point(12) = { x0+0.5,y0+0.0, 0, 1/n1}; |
|
Point(13) = { x0+0.0,y0+0.5, 0, 1/n1}; |
|
Point(14) = { x0-0.5,y0+0.0, 0, 1/n1}; |
|
Point(15) = { x0+0.0,y0-0.5, 0, 1/n1}; |
|
|
|
|
|
Point(16) = {x_ninf, -y_inf, 0, 1/n3}; |
|
Point(17) = {x_ninf, 0, 0, 1/n3}; |
|
Point(18) = {x_ninf, y_inf, 0, 1/n3}; |
|
Point(19) = {x_pinf, -y_inf, 0, 1/n3}; |
|
Point(20) = {x_pinf, 0, 0, 1/n2}; |
|
Point(21) = {x_pinf, y_inf, 0, 1/n3}; |
|
|
|
|
|
y0 = 1.5*R; |
|
Point(22) = {5.0, y0, 0, 1/n1}; |
|
Point(23) = {5.0, 0.0, 0, 1/n1}; |
|
Point(24) = {5.0, -y0, 0, 1/n1}; |
|
Point(25) = {x_pinf, y0, 0, 1/n2}; |
|
Point(26) = {x_pinf, 0.0, 0, 1/n2}; |
|
Point(27) = {x_pinf, -y0, 0, 1/n2}; |
|
|
|
|
|
Circle(1) = {2, 1, 3}; |
|
Circle(2) = {3, 1, 4}; |
|
Circle(3) = {4, 1, 5}; |
|
Circle(4) = {5, 1, 2}; |
|
|
|
Circle(5) = {7, 6, 8}; |
|
Circle(6) = {8, 6, 9}; |
|
Circle(7) = {9, 6, 10}; |
|
Circle(8) = {10, 6, 7}; |
|
|
|
Circle(9) = {12, 11, 13}; |
|
Circle(10) = {13, 11, 14}; |
|
Circle(11) = {14, 11, 15}; |
|
Circle(12) = {15, 11, 12}; |
|
|
|
|
|
|
|
Line(13) = {18, 21}; |
|
|
|
Line(14) = {21, 25}; |
|
|
|
Line(15) = {25, 20}; |
|
|
|
Line(16) = {20, 27}; |
|
|
|
Line(17) = {27, 19}; |
|
|
|
Line(18) = {19, 16}; |
|
|
|
Line(19) = {16, 17}; |
|
|
|
Line(20) = {17, 18}; |
|
|
|
Line(21) = {17, 4}; |
|
|
|
Line(22) = {5, 14}; |
|
|
|
Line(23) = {3, 9}; |
|
|
|
Line(24) = {7, 22}; |
|
|
|
Line(25) = {12, 24}; |
|
|
|
Line(26) = {24, 23}; |
|
|
|
Line(27) = {23, 22}; |
|
|
|
Line(28) = {22, 25}; |
|
|
|
Line(29) = {23, 20}; |
|
|
|
Line(30) = {24, 27}; |
|
|
|
Line(31) = {2, 23}; |
|
|
|
Curve Loop(1) = {13, 14, -28, -24, 5, 6, -23, 2, -21, 20}; |
|
|
|
Plane Surface(1) = {1}; |
|
|
|
Curve Loop(2) = {7, 8, 24, -27, -31, 1, 23}; |
|
|
|
Plane Surface(2) = {2}; |
|
|
|
Curve Loop(3) = {28, 15, -29, 27}; |
|
|
|
Plane Surface(3) = {3}; |
|
|
|
Curve Loop(4) = {16, -30, 26, 29}; |
|
|
|
Plane Surface(4) = {4}; |
|
|
|
Curve Loop(5) = {31, -26, -25, 9, 10, -22, 4}; |
|
|
|
Plane Surface(5) = {5}; |
|
|
|
Curve Loop(6) = {21, 3, 22, 11, 12, 25, 30, 17, 18, 19}; |
|
|
|
Plane Surface(6) = {6}; |
|
|
|
Physical Surface("Fluid", 1) = {1, 3, 4, 2, 5, 6}; |
|
|
|
Physical Curve("Inlet", 2) = {20, 19}; |
|
|
|
Physical Curve("Freestream", 3) = {13, 18}; |
|
|
|
Physical Curve("Outlet", 4) = {14, 15, 16, 17}; |
|
|
|
Physical Curve("Cyl1", 5) = {2, 1, 4, 3}; |
|
|
|
Physical Curve("Cyl2", 6) = {6, 5, 8, 7}; |
|
|
|
Physical Curve("Cyl3", 7) = {10, 9, 12, 11}; |
|
|