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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 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: 2
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.
TENE likes this.
djmads is offline   Reply With Quote

Old   January 1, 2019, 06:22
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 891
Rep Power: 24
olesen will become famous soon enough
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: 2
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: http://olesenm.github.io/
Posts: 891
Rep Power: 24
olesen will become famous soon enough
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: 2
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: http://olesenm.github.io/
Posts: 891
Rep Power: 24
olesen will become famous soon enough
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

Reply

Tags
gmsh, gmshtofoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 5 October 18, 2018 00:34
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 02:14.