CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Meshing Error: Bad token - could not get word

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By djmads

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2018, 14:07
Unhappy Meshing Error: Bad token - could not get word
  #1
New Member
 
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7
djmads is on a distinguished road
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:perator>>(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.
arashgmn and TENE like this.
djmads is offline   Reply With Quote

Old   January 1, 2019, 06:22
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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
olesen is offline   Reply With Quote

Old   January 1, 2019, 07:23
Default
  #3
New Member
 
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7
djmads is on a distinguished road
Quote:
Originally Posted by olesen View Post
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?
djmads is offline   Reply With Quote

Old   January 1, 2019, 12:07
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by djmads View Post
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
olesen is offline   Reply With Quote

Old   January 2, 2019, 16:33
Default
  #5
New Member
 
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7
djmads is on a distinguished road
Quote:
Originally Posted by olesen View Post
I do not know where to open a new issue. Please find the snippet here:

https://develop.openfoam.com/snippets/18
djmads is offline   Reply With Quote

Old   January 6, 2019, 09:28
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by djmads View Post
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
olesen is offline   Reply With Quote

Old   November 11, 2020, 06:09
Default
  #7
Member
 
Join Date: Mar 2015
Posts: 36
Rep Power: 11
K.C. is on a distinguished road
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.
K.C. is offline   Reply With Quote

Reply

Tags
gmsh, gmshtofoam


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
wrong token type - expected Scalar, found on line 0 the word 'nan' zhi OpenFOAM Running, Solving & CFD 6 January 12, 2021 23:44
MPI error in parallel application usv001 OpenFOAM Programming & Development 2 September 14, 2017 12:30
[ANSYS Meshing] only automatic meshing works, kazra ANSYS Meshing & Geometry 2 February 23, 2017 12:38
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 06:09
Singularity of grid?Volume meshing vs face meshing Ken Main CFD Forum 0 September 4, 2003 12:09


All times are GMT -4. The time now is 07:51.