Skip to content

Commit 95fe594

Browse files
authored
Merge pull request #58 from su2code/tut_unst_cylinder
Add unsteady laminar cylinder with vortex shedding
2 parents 60d11cd + 5791524 commit 95fe594

6 files changed

+197423
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
D = 0.005;
2+
L = 30*D;
3+
4+
5+
X = 150*D;
6+
7+
//+
8+
Point(1) = {0, 0, 0, 1.0};
9+
//+
10+
Point(2) = {+L, 0, 0, 1.0};
11+
Point(3) = {-L, 0, 0, 1.0};
12+
//+
13+
Point(4) = {0, +L, 0, 1.0};
14+
Point(5) = {0, -L, 0, 1.0};
15+
//+
16+
Point(6) = {0, -D, 0, 1.0};
17+
Point(7) = {0, +D, 0, 1.0};
18+
//+
19+
Point(8) = {+D, .0, 0, 1.0};
20+
Point(9) = {-D, .0, 0, 1.0};
21+
22+
Point(10) = {L, +L, 0, 1.0};
23+
Point(11) = {L, -L, 0, 1.0};
24+
25+
R = 0.5*D;
26+
Point(12) = {R*2^0.5, R*2^0.5, 0, 1.0};
27+
Point(13) = {R*2^0.5, -R*2^0.5, 0, 1.0};
28+
29+
Point(14) = {X, +L, 0, 1.0};
30+
Point(15) = {X, -L, 0, 1.0};
31+
Point(16) = {X, 0, 0, 1.0};
32+
33+
34+
//+ upper right
35+
Circle(1) = {7, 1, 12};
36+
Circle(2) = {8, 1,12};
37+
//+ lower right
38+
Circle(3) = {8, 1, 13};
39+
Circle(4) = {13, 1, 6};
40+
//+ lower left
41+
Circle(5) = {6, 1, 9};
42+
//+ upper left
43+
Circle(6) = {9, 1, 7};
44+
45+
//+
46+
Circle(7) = {5, 1, 3};
47+
//+
48+
Circle(8) = {3, 1, 4};
49+
50+
//+
51+
Line(10) = {8, 2};
52+
//+
53+
Line(11) = {7, 4};
54+
//+
55+
Line(12) = {9, 3};
56+
//+
57+
Line(13) = {6, 5};
58+
59+
Line(14) = {12, 10};
60+
Line(15) = {13, 11};
61+
62+
//+
63+
Line(16) = {4, 10};
64+
//+
65+
Line(17) = {5, 11};
66+
//+
67+
Line(18) = {2, 10};
68+
//+
69+
Line(19) = {2, 11};
70+
71+
72+
//+
73+
Line(20) = {10, 14};
74+
//+
75+
Line(21) = {2, 16};
76+
//+
77+
Line(22) = {11, 15};
78+
//+
79+
Line(23) = {16, 15};
80+
//+
81+
Line(24) = {16, 14};
82+
//+
83+
Curve Loop(1) = {12, 8, -11, -6};
84+
//+
85+
Plane Surface(1) = {1};
86+
//+
87+
Curve Loop(2) = {7, -12, -5, 13};
88+
//+
89+
Plane Surface(2) = {2};
90+
//+
91+
Curve Loop(3) = {11, 16, -14, -1};
92+
//+
93+
Plane Surface(3) = {3};
94+
//+
95+
Curve Loop(4) = {13, 17, -15, 4};
96+
//+
97+
Plane Surface(4) = {4};
98+
//+
99+
Curve Loop(5) = {14, -18, -10, 2};
100+
//+
101+
Plane Surface(5) = {5};
102+
//+
103+
Curve Loop(6) = {15, -19, -10, 3};
104+
//+
105+
Plane Surface(6) = {6};
106+
//+
107+
Curve Loop(7) = {-18, 21, 24, -20};
108+
//+
109+
Plane Surface(7) = {7};
110+
//+
111+
Curve Loop(8) = {19, 22, -23, -21};
112+
//+
113+
Plane Surface(8) = {8};
114+
//+
115+
Transfinite Curve {8, 6, 7, 5} = 40 Using Progression 1;
116+
//+
117+
Transfinite Curve {1, 16, 4, 17} = 40 Using Progression 1;
118+
//+
119+
Transfinite Curve {2, 3} = 80 Using Progression 1.00;
120+
Transfinite Curve {18, 19} = 80 Using Progression 1.02;
121+
Transfinite Curve {23, 24} = 80 Using Progression 1.01;
122+
//+
123+
Transfinite Curve {20, 21, 22} = 180 Using Progression 1;
124+
//+
125+
Transfinite Curve {10, 14, 11, 12, 13, 15} = 150 Using Progression 1.02;
126+
//+
127+
Transfinite Surface {1};
128+
//+
129+
Transfinite Surface {2};
130+
//+
131+
Transfinite Surface {4};
132+
//+
133+
Transfinite Surface {6};
134+
//+
135+
Transfinite Surface {5};
136+
//+
137+
Transfinite Surface {3};
138+
//+
139+
Transfinite Surface {7};
140+
//+
141+
Transfinite Surface {8};
142+
//+
143+
Recombine Surface {1, 2, 4, 6, 5, 3, 7, 8};
144+
//+
145+
Physical Curve("farfield_in", 25) = {8, 7};
146+
//+
147+
Physical Curve("farfield_side", 26) = {16, 17, 22, 20};
148+
//+
149+
Physical Curve("farfield_out", 27) = {24, 23};
150+
//+
151+
Physical Curve("cylinder", 28) = {6, 1, 2, 3, 4, 5};
152+
//+
153+
Physical Surface("interior", 29) = {1, 2, 4, 6, 5, 3, 7, 8};

0 commit comments

Comments
 (0)