CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Meshing Error: Bad token - could not get word (https://www.cfd-online.com/Forums/openfoam-meshing/213553-meshing-error-bad-token-could-not-get-word.html)

djmads December 31, 2018 13:07

Meshing Error: Bad token - could not get word
 
Hello folks,

This is my first forum post so forgive me if I am a little new to some features of OpenFOAM. It is my hope that I can continue to learn more as I pursue my PhD.

I am using OpenFOAM v1812 and attempting to convert an ASCII V2 mesh to OpenFOAM using gmshToFoam command. When I do this, I obtain the following:

[ofuser@db8afc29162f Waverider]$ gmshToFoam nonweiler_research_W.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : v1812 OPENFOAM=1812
Arch : "LSB;label=32;scalar=64"
Exec : gmshToFoam nonweiler_research_W.msh
Date : Dec 31 2018
Time : 17:56:05
Host : db8afc29162f
PID : 407
I/O : uncollated
Case : /home/ofuser/workingDir/OpenFOAM/Waverider
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Starting to read points at line 2
Vertices to be read:55547
Vertices read:55547

Starting to read cells at line 55552
Cells to be read:283348

Mapping region 1 to Foam patch 0
Mapping region 4 to Foam patch 1
Mapping region 3 to Foam patch 2
Mapping region 5 to Foam patch 3
Mapping region 2 to Foam patch 4
Mapping region 6 to Foam cellZone 0
Cells:
total:270902
hex :0
prism:0
pyr :19674
tet :251228

CellZones:
Zone Size
0 270902



--> FOAM FATAL IO ERROR:
Bad token - could not get word

file: input at line 0.

From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
in file primitives/strings/word/wordIO.C at line 45.

FOAM exiting

===========================================

I am trying to understand how to fix this issue so any suggestions would be appreciated. I am on Mac if that helps.

olesen January 1, 2019 05:22

Either a bug, or bad input - would need to have the file (or something similar) to figure out what is going wrong.
Consider tracking it as a gitlab issue (you can add files there too).
/mark

djmads January 1, 2019 06:23

Quote:

Originally Posted by olesen (Post 720484)
Either a bug, or bad input - would need to have the file (or something similar) to figure out what is going wrong.
Consider tracking it as a gitlab issue (you can add files there too).
/mark



Could I send you the geo and mesh file? There may be some errors actually in the geo file mainly with respect to the mesh generation. If you can give me some feedback on it that would be great. Anywhere I can send it to?

olesen January 1, 2019 11:07

Quote:

Originally Posted by djmads (Post 720493)
Could I send you the geo and mesh file? There may be some errors actually in the geo file mainly with respect to the mesh generation. If you can give me some feedback on it that would be great. Anywhere I can send it to?


https://develop.openfoam.com/Development/OpenFOAM-plus

and open an issue

djmads January 2, 2019 15:33

Quote:

Originally Posted by olesen (Post 720501)

I do not know where to open a new issue. Please find the snippet here:

https://develop.openfoam.com/snippets/18

olesen January 6, 2019 08:28

Quote:

Originally Posted by djmads (Post 720643)
I do not know where to open a new issue. Please find the snippet here:

https://develop.openfoam.com/snippets/18


Your snippet seems to have been lost, or wasn't saved.
Opened an issue for you:

https://develop.openfoam.com/Develop...us/issues/1155

K.C. November 11, 2020 05:09

Problem solved?
I got into trouble with the same error message:


Code:

Create time

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:10
    Surface 1    side
    Surface 2    front1
    Surface 3    front2
    Surface 4    back1
    Surface 5    back2
    Surface 6    fronts
    Surface 7    backs
    Volume 8    fluid1
    Volume 9    fluid2
    Volume 10    steel

Starting to read points at line 78
Vertices to be read: 29104
Vertices read: 29104

Starting to read cells at line 58346
Cells to be read:125762

Mapping region 7 to Foam patch 0
Mapping region 6 to Foam patch 1
Mapping region 5 to Foam patch 2
Mapping region 3 to Foam patch 3
Mapping region 1 to Foam patch 4
Mapping region 4 to Foam patch 5
Mapping region 2 to Foam patch 6
Mapping region 10 to Foam cellZone 0
Mapping region 9 to Foam cellZone 1
Mapping region 8 to Foam cellZone 2
Cells:
    total: 119628
    hex  : 0
    prism: 0
    pyr  : 0
    tet  : 119628

CellZones:
Zone    Size
    0    24366
    1    43181
    2    52081



--> FOAM FATAL IO ERROR:
Bad token - could not get word

file: input at line 0.

    From Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
    in file primitives/strings/word/wordIO.C at line 48.

FOAM exiting

working with OF5 ob Ubuntu 18.04 LTS.
Thanks for any help.


All times are GMT -4. The time now is 17:24.