bad stream error
what have to do to resolve this error?
Code:
ehsan@Ehsan-com:~/Desktop/WR_2$ paraFoam |
Quote:
|
FOAM FATAL IO ERROR: Attempt to get back from bad stream
1 Attachment(s)
I am facing a similar problem.
First I have written a gmsh script file by the name of rectBlock.geo, and then I have save the mesh file by the name rectBlock.msh. when I used the command gmshToFoam rectBlock.msh, I got the following error. I am in the run directory of openfoam. --> 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 files are attached Any help. |
Hi,
gmshToFoam can convert only version 2 of Gmsh format. You MSH file is version 4. Use "-format msh2" command line switch when you generate MSH file (or select "Verion 2 ASCII" if you use Export from GUI). |
Really helpful, Thank you!!
|
All times are GMT -4. The time now is 01:12. |