Member
İbrahim
Join Date: Jun 2017
Posts: 31
Rep Power: 9
|
I would like to simulate flowing over cylinder. I have exported file with .msh extention.
My .geo script is as below;
Quote:
Point(1) = {0, 0, 0, 1.0};
Point(2) = {0.707106781, 0.707106781, 0, 1.0};
Point(3) = {-0.707106781, 0.707106781, 0, 1.0};
Point(4) = {-2, 2, 0, 1.0};
Point(5) = {2, 2, 0, 1.0};
Point(6) = {2, -2, 0, 1.0};
Point(7) = {-2, -2, 0, 1.0};
Point(8) = {0.707106781, -0.707106781, 0, 1.0};
Point(9) = {-0.707106781, -0.707106781, 0, 1.0};
Line(1) = {7, 6};
Line(2) = {7, 9};
Line(3) = {6, 8};
Line(4) = {4, 3};
Line(5) = {5, 2};
Line(6) = {4, 5};
Line(7) = {5, 6};
Line(8) = {7, 4};
Circle(9) = {3, 1, 2};
Circle(10) = {3, 1, 9};
Circle(11) = {9, 1, 8};
Circle(12) = {2, 1, 8};
Point(10) = {-5, 2, 0, 1.0};
Point(11) = {-5, 5, 0, 1.0};
Point(12) = {-2, 5, 0, 1.0};
Point(13) = {-5, -2, 0, 1.0};
Point(14) = {-5, -5, 0, 1.0};
Point(15) = {-2, -5, 0, 1.0};
Point(16) = {2, -5, 0, 1.0};
Point(17) = {2, 5, 0, 1.0};
Point(18) = {15, 5, 0, 1.0};
Point(19) = {15, 2, 0, 1.0};
Point(20) = {15, -2, 0, 1.0};
Point(21) = {15, -5, 0, 1.0};
Line(13) = {11, 12};
Line(14) = {10, 4};
Line(15) = {4, 12};
Line(16) = {10, 11};
Line(17) = {12, 17};
Line(18) = {17, 5};
Line(19) = {17, 18};
Line(20) = {18, 19};
Line(21) = {19, 5};
Line(22) = {19, 20};
Line(23) = {20, 6};
Line(24) = {6, 16};
Line(25) = {16, 21};
Line(26) = {21, 20};
Line(27) = {7, 15};
Line(28) = {15, 16};
Line(29) = {13, 7};
Line(30) = {14, 13};
Line(31) = {14, 15};
Line(32) = {10, 13};
Curve Loop(1) = {16, 13, -15, -14};
Surface(1) = {1};
Curve Loop(2) = {15, 17, 18, -6};
Surface(2) = {2};
Curve Loop(3) = {18, -21, -20, -19};
Surface(3) = {3};
Curve Loop(4) = {7, -23, -22, 21};
Surface(4) = {4};
Curve Loop(5) = {24, 25, 26, 23};
Surface(5) = {5};
Curve Loop(6) = {27, 28, -24, -1};
Surface(6) = {6};
Curve Loop(7) = {30, 29, 27, -31};
Surface(7) = {7};
Curve Loop(8) = {32, 29, 8, -14};
Surface(8) = {8};
Curve Loop(9) = {8, 4, 10, -2};
Surface(9) = {9};
Curve Loop(10) = {4, 9, -5, -6};
Surface(10) = {10};
Curve Loop(11) = {5, 12, -3, -7};
Surface(11) = {11};
Curve Loop(12) = {2, 11, -3, -1};
Surface(12) = {12};
Transfinite Curve {16} = 20 Using Progression 1;
Transfinite Curve {15} = 20 Using Progression 1;
Transfinite Curve {18} = 20 Using Progression 1;
Transfinite Curve {20} = 20 Using Progression 1;
Transfinite Curve {30} = 20 Using Progression 1;
Transfinite Curve {27} = 20 Using Progression 1;
Transfinite Curve {24} = 20 Using Progression 1;
Transfinite Curve {26} = 20 Using Progression 1;
Transfinite Curve {13} = 20 Using Progression 1;
Transfinite Curve {14} = 20 Using Progression 1;
Transfinite Curve {29} = 20 Using Progression 1;
Transfinite Curve {31} = 20 Using Progression 1;
Transfinite Curve {32} = 60 Using Progression 1;
Transfinite Curve {8} = 60 Using Progression 1;
Transfinite Curve {10} = 60 Using Progression 1;
Transfinite Curve {12} = 60 Using Progression 1;
Transfinite Curve {7} = 60 Using Progression 1;
Transfinite Curve {22} = 60 Using Progression 1;
Transfinite Curve {17} = 60 Using Progression 1;
Transfinite Curve {6} = 60 Using Progression 1;
Transfinite Curve {9} = 60 Using Progression 1;
Transfinite Curve {11} = 60 Using Progression 1;
Transfinite Curve {1} = 60 Using Progression 1;
Transfinite Curve {28} = 60 Using Progression 1;
Transfinite Curve {4} = 60 Using Progression 0.85;
Transfinite Curve {5} = 60 Using Progression 0.85;
Transfinite Curve {3} = 60 Using Progression 0.85;
Transfinite Curve {2} = 60 Using Progression 0.85;
Transfinite Curve {19} = 100 Using Progression 1;
Transfinite Curve {21} = 100 Using Progression 1;
Transfinite Curve {23} = 100 Using Progression 1;
Transfinite Curve {25} = 100 Using Progression 1;
Transfinite Surface {1};
Transfinite Surface {2};
Transfinite Surface {3};
Transfinite Surface {4};
Transfinite Surface {5};
Transfinite Surface {6};
Transfinite Surface {7};
Transfinite Surface {8};
Transfinite Surface {9};
Transfinite Surface {10};
Transfinite Surface {11};
Transfinite Surface {12};
Recombine Surface {1};
Recombine Surface {2};
Recombine Surface {3};
Recombine Surface {4};
Recombine Surface {5};
Recombine Surface {6};
Recombine Surface {7};
Recombine Surface {8};
Recombine Surface {9};
Recombine Surface {10};
Recombine Surface {11};
Recombine Surface {12};
Extrude {0, 0, 1} {
Surface{1}; Surface{2}; Surface{3}; Surface{4}; Surface{5}; Surface{6}; Surface{7}; Surface{8}; Surface{9}; Surface{10}; Surface{11}; Surface{12}; Layers {1}; Recombine;
}
Physical Surface("inlet", 297) = {41, 195, 173};
Physical Surface("upper", 298) = {45, 67, 97};
Physical Surface("lower", 299) = {185, 155, 133};
Physical Surface("outlet", 300) = {93, 115, 137};
Physical Surface("wall", 301) = {225, 243, 265, 287};
|
And i got output as below;
Quote:
Unhandled element 1 at line 59198
Unhandled element 1 at line 59199
Unhandled element 1 at line 59200
Unhandled element 1 at line 59201
Unhandled element 1 at line 59202
Unhandled element 1 at line 59203
Unhandled element 1 at line 59204
Unhandled element 1 at line 59205
Unhandled element 1 at line 59206
Unhandled element 1 at line 59207
Unhandled element 1 at line 59208
Unhandled element 1 at line 59209
Unhandled element 1 at line 59210
Unhandled element 1 at line 59211
Unhandled element 1 at line 59212
Unhandled element 1 at line 59213
Unhandled element 1 at line 59214
Unhandled element 1 at line 59215
Unhandled element 1 at line 59216
Unhandled element 1 at line 59217
--> FOAM FATAL ERROR:
10 not found in table. Valid entries: 0()
From function const T& Foam::HashTable<T, Key, Hash>:perator[](const Key&) const [with T = int; Key = int; Hash = Foam::Hash<int>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/HashTableI.H at line 126.
FOAM exiting
|
Thank you in advance for your helping
|