|
[Sponsors] |
[Other] Meshing Error: Bad token - could not get word |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 31, 2018, 13:07 |
Meshing Error: Bad token - could not get word
|
#1 |
New Member
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7 |
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. |
|
January 1, 2019, 05:22 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
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 |
|
January 1, 2019, 06:23 |
|
#3 | |
New Member
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7 |
Quote:
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? |
||
January 1, 2019, 11:07 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
https://develop.openfoam.com/Development/OpenFOAM-plus and open an issue |
||
January 2, 2019, 15:33 |
|
#5 | |
New Member
Dewi Madden
Join Date: Dec 2018
Posts: 3
Rep Power: 7 |
Quote:
https://develop.openfoam.com/snippets/18 |
||
January 6, 2019, 08:28 |
|
#6 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Your snippet seems to have been lost, or wasn't saved. Opened an issue for you: https://develop.openfoam.com/Develop...us/issues/1155 |
||
November 11, 2020, 05:09 |
|
#7 |
Member
Join Date: Mar 2015
Posts: 36
Rep Power: 11 |
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 Thanks for any help. |
|
Tags |
gmsh, gmshtofoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 22:44 |
MPI error in parallel application | usv001 | OpenFOAM Programming & Development | 2 | September 14, 2017 11:30 |
[ANSYS Meshing] only automatic meshing works, | kazra | ANSYS Meshing & Geometry | 2 | February 23, 2017 11:38 |
[Gmsh] 3D coil mesh: can't create the volume? | RomainBou | OpenFOAM Meshing & Mesh Conversion | 3 | July 18, 2016 05:09 |
Singularity of grid?Volume meshing vs face meshing | Ken | Main CFD Forum | 0 | September 4, 2003 11:09 |