|
[Sponsors] |
July 19, 2019, 14:34 |
gmshToFoam error
|
#1 |
New Member
Bryan
Join Date: Jul 2019
Posts: 1
Rep Power: 0 |
I am using Gmsh version 4.4.0, OpenFOAM v4.1, and Ubuntu 16.04.
I am receiving the following error when using a msh file saved using version 4 ASCII: Starting to read mesh format at line 2 Read format version 4.1 ascii 0 Starting to read physical names at line 5 Physical names:6 Surface 1 back Surface 2 front Surface 3 bottom Surface 4 outlet Surface 5 top Surface 6 inlet Skipping tag $Entities at line 14 Starting to read points at line 50 Vertices to be read:27 --> FOAM FATAL IO ERROR: Attempt to get back from bad stream file: IStringStream.sourceFile at line 0. From function bool Foam::Istream::getBack(Foam::token&) in file db/IOstreams/IOstreams/Istream.C at line 56. FOAM exiting I then tried to save using version 2 ASCII and received this error: Starting to read mesh format at line 2 Read format version 2.2 ascii 0 Starting to read physical names at line 5 Physical names:6 Surface 1 back Surface 2 front Surface 3 bottom Surface 4 outlet Surface 5 top Surface 6 inlet Skipping tag $ParametricNodes at line 14 Starting to read cells at line 756 Cells to be read:3653 Unhandled element 15 at line 758 Unhandled element 15 at line 759 Unhandled element 15 at line 760 Unhandled element 15 at line 761 Unhandled element 15 at line 762 Unhandled element 15 at line 763 Unhandled element 15 at line 764 Unhandled element 15 at line 765 Unhandled element 15 at line 766 Unhandled element 15 at line 767 Unhandled element 1 at line 768 Unhandled element 1 at line 769 . . . Unhandled element 1 at line 919 Unhandled element 1 at line 920 --> FOAM FATAL ERROR: 11 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-4.1/src/OpenFOAM/lnInclude/HashTableI.H at line 134. FOAM exiting Since it is most likely my geo file code, here it is: SetFactory("OpenCASCADE"); Circle(1) = {5, 0, 0, 1, 0, 2*Pi}; Point(2) = {0, -10, 0, 1.0}; Point(3) = {0, 10 , 0, 1.0}; Point(4) = {15 , 10 , 0, 1.0}; Point(5) = {15 , -10 , 0, 1.0}; Line(2) = {2, 3}; Line(3) = {3, 4}; Line(4) = {4, 5}; Line(5) = {5, 2}; Curve Loop(1) = {3, 4, 5, 2}; Curve Loop(2) = {1}; Plane Surface(1) = {1, 2}; newEntities[] = Extrude { 0,0,0.1 } { Surface{1}; }; Physical Surface("back") = {1}; Physical Surface("front") = {newEntities[0]}; Physical Surface("bottom") = {newEntities[2]}; Physical Surface("outlet") = {newEntities[3]}; Physical Surface("top") = {newEntities[4]}; Physical Surface("inlet") = {newEntities[5]}; Physical Volume(100) = {newEntities[1]}; Thanks in advance! Bryan |
|
March 7, 2020, 05:05 |
Same Error.
|
#2 |
New Member
zohair
Join Date: Oct 2013
Posts: 13
Rep Power: 12 |
Hi ,
I am also getting the same error, with gmsh 4 and open foam 2.1. I have to check whether this is due the version sets. Btw, did you find any resolution. ? Best Zohair |
|
March 7, 2020, 05:09 |
Update :
|
#3 | |
New Member
zohair
Join Date: Oct 2013
Posts: 13
Rep Power: 12 |
Quote:
I changed the ASCII to 1, and it worked. I believe it the version matching that is required. Best Zohair |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DPM udf error | haghshenasfard | FLUENT | 0 | April 13, 2016 06:35 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 20:30 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 07:24 |