Open ldv1 opened 3 years ago
Same here.
Hi, I also have the same issue.
/---------------------------------------------------------------------------\ ========= | \ / F ield | OpenFOAM: The Open Source CFD Toolbox \ / O peration | Website: https://openfoam.org \ / A nd | Version: 8 \/ M anipulation | *---------------------------------------------------------------------------*/ Build : 8-1c9b5879390b Exec : gmshToFoam test1.msh Date : Aug 22 2021 Time : 11:22:07 Host : "DESKTOP-IVQE0BE" PID : 268 I/O : uncollated Case : /home/john/OpenFoamApps/buoyantCavity nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations
// * // 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:6 Surface 1 front Surface 2 back Surface 3 bottom Surface 4 left Surface 5 top Surface 6 right
Skipping tag $Entities at line 14 Starting to read points at line 44 Vertices to be read:22
--> 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
Looks like OpenFOAM can't handle the newer output of GMSH. See the following: https://www.cfd-online.com/Forums/openfoam-meshing/206228-issue-converting-mesh-gmsh-openfoam.html https://jontateixeira.github.io/posts/gmsh-exporting-old-msh-format/
I get this error even when using -format msh2 on the command line. I'm using OpenFOAM-10.
My mesh is pretty big - about 400M elts. The file size is about 30 Gb. But the machine I am using has 128 Gb of RAM.
Starting to read points at line 27
Vertices to be read:69510056
--> 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
Hi @SamMallinson, does this work with a smaller mesh?
@AleksZhuravlyov - once I got under 80 Melts - maybe a machine (RAM) related issue?
Hi,
I am using OpenFoam-8 on a Suse Linux box. I generated a simple 3D mesh with gmsh, and exported it in two flavors:
airfoil.msh
(native gmsh format) andairfoil.vtk
. RunninggmshToFoam airfoil.msh
, I get an error:With
vtkUnstructuredToFoam airfoil.vtk
, I getI would prefer to work with the gmsh format though. I can provide airfoil.msh for debugging. Thanks for the help.