CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

gmshToFoam error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2021, 06:53
Default gmshToFoam error
  #1
Member
 
İbrahim
Join Date: Jun 2017
Posts: 31
Rep Power: 9
erkampasha is on a distinguished road
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
erkampasha is offline   Reply With Quote

Old   March 22, 2021, 14:52
Default
  #2
Senior Member
 
Join Date: Oct 2011
Posts: 242
Rep Power: 17
naffrancois is on a distinguished road
Hello,

Not an openfoam user but two things that comes to my mind looking at your geo file:
- z=cte planes are not affected any Physical Surface (slip wall ? symmetry ?)
- No Physical Volume is present in geo file, then I suspect gmsh does not write any 3D element
naffrancois is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 07:35
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24


All times are GMT -4. The time now is 14:58.