CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] bad stream error

Register Blogs Community New Posts Updated Threads Search

Like Tree24Likes
  • 1 Post By immortality
  • 2 Post By wyldckat
  • 2 Post By iftikhar
  • 19 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2013, 09:40
Default bad stream error
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
what have to do to resolve this error?
Code:
ehsan@Ehsan-com:~/Desktop/WR_2$ paraFoam 


--> FOAM FATAL IO ERROR: 
Attempt to get back from bad stream

file: /home/ehsan/Desktop/WR_2/1.2e-05/U_0 at line 26324.

    From function void Istream::getBack(token&)
    in file db/IOstreams/IOstreams/Istream.C at line 56.

FOAM exiting
kcavatar likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 7, 2013, 10:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
what have to do to resolve this error?
Code:
ehsan@Ehsan-com:~/Desktop/WR_2$ paraFoam 


--> FOAM FATAL IO ERROR: 
Attempt to get back from bad stream

file: /home/ehsan/Desktop/WR_2/1.2e-05/U_0 at line 26324.

    From function void Istream::getBack(token&)
    in file db/IOstreams/IOstreams/Istream.C at line 56.

FOAM exiting
Remove the file "1.2e-05/U_0". Problem solved.
immortality and sabrinacarson like this.
wyldckat is offline   Reply With Quote

Old   March 25, 2019, 11:01
Default FOAM FATAL IO ERROR: Attempt to get back from bad stream
  #3
New Member
 
Iftikhar Ali
Join Date: Aug 2017
Posts: 1
Rep Power: 0
iftikhar is on a distinguished road
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.
Attached Files
File Type: zip gmhOfProblem.zip (119.6 KB, 49 views)
ajit kumar and ugata88 like this.

Last edited by iftikhar; March 25, 2019 at 11:44. Reason: files attached
iftikhar is offline   Reply With Quote

Old   March 26, 2019, 09:25
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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).
alexeym is offline   Reply With Quote

Old   August 7, 2021, 21:05
Thumbs up
  #5
New Member
 
Aero_Cats!
Join Date: Jul 2021
Location: Indonesia
Posts: 7
Rep Power: 4
IFX21 is on a distinguished road
Really helpful, Thank you!!
IFX21 is offline   Reply With Quote

Reply


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 06:35
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 21:09.