CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

FOAM FATAL IO ERROR attempt to read beyond EOF

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 3 Post By Hisham
  • 1 Post By neiht
  • 1 Post By Pier84
  • 1 Post By galoisati

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2005, 04:57
Default Hello everybody. Just regis
  #1
unoder
Guest
 
Posts: n/a
Hello everybody.

Just registered for an account and am going through the tutorial in order to learn OpenFOAM and something about numerical fluid simulation. I hope you can help me with this problem:

At this moment I came to page 39, chapter 2.1.6.3. Foam is version 1.1 running on Suse linux 9.2.

I type in the command: "mapFields . cavityFine
/ . cavityGrade/ -consistent", but why do I then get the following error message?

------ begin -------
martin@linux:~/OpenFOAM/martin-1.1/run/tutorials/icoFoam> mapFields . cavityFine
/ . cavityGrade/ -consistent
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : mapFields . cavityFine/ . cavityGrade/ -consistent
Date : May 21 2005
Time : 23:32:15
Host : linux
PID : 11708
Root :
Case :
Nprocs : 1
Source: "." "cavityFine/"
Target: "." "cavityGrade/"

Create databases as time

Source time: 0.7
Target time: 0.7
Create meshes

Source mesh size: 1681 Target mesh size: 400


Consistently creating and mapping fields for time 0.7

interpolating p


--> FOAM FATAL IO ERROR : attempt to read beyond EOF

file: ./cavityGrade//0.7/p::internalField at line 30.

Function: ITstream::read(token& t)
in file: db/IOstreams/Tstreams/ITread.C at line: 70.

FOAM exiting

martin@linux:~/OpenFOAM/martin-1.1/run/tutorials/icoFoam>

------ end -------


Best regards,
Martin Jørgensen
  Reply With Quote

Old   August 14, 2005, 04:11
Default Hi there, Just for the arch
  #2
unoder
Guest
 
Posts: n/a
Hi there,

Just for the archive: I don't know what was wrong but overwriting the tutorials directory including subdirectories with the original files solved the problem.

Strange error message, IMO.


Best regards,
Martin Jørgensen
  Reply With Quote

Old   June 21, 2008, 20:02
Default artin: I have the same issue
  #3
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
artin:
I have the same issue with parafoam as you did. When I try to view the cavity case mesh with parafoam in accordance with the openfoam tutorial documentation, I get the eof error. However, unlike your case, I am not being able to solve it by reloading the tutorial files. Any suggestions?

Thanks
Musa
musahossein is offline   Reply With Quote

Old   July 13, 2008, 03:28
Default I have the exact same problem.
  #4
New Member
 
Daniel Jessop
Join Date: Mar 2009
Posts: 2
Rep Power: 0
danj is on a distinguished road
I have the exact same problem...
danj is offline   Reply With Quote

Old   September 21, 2011, 16:36
Default
  #5
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
This problem seems to arise when you use an older version input method in files for a newer version of OpenFOAM. Check that the way your data is written (or copy pasted from say a website) is consistent with your installed version file format (written like the examples)
holodeck10, aow and Turin Turambar like this.
Hisham is offline   Reply With Quote

Old   May 28, 2013, 07:42
Default
  #6
New Member
 
QuocThien
Join Date: Apr 2013
Posts: 16
Rep Power: 13
neiht is on a distinguished road
i think wrong definition uniform or nonuniform scalar. it needs to add scalar value after
TeddyL likes this.
neiht is offline   Reply With Quote

Old   August 29, 2016, 04:45
Default
  #7
New Member
 
Pierluigi Olmati
Join Date: Apr 2016
Location: Tokyo
Posts: 21
Rep Power: 10
Pier84 is on a distinguished road
Hi,

Try to check the format. Sometime I have this error when I forget " ; ".

Cheers,
Pierluigi
Santhosh91 likes this.
Pier84 is offline   Reply With Quote

Old   September 20, 2016, 06:47
Post same problem
  #8
New Member
 
Yingchen Cao
Join Date: May 2015
Posts: 2
Rep Power: 0
Yingchen is on a distinguished road
I had the same problem. I forgot the blank space in the dict file. So if you have the same problem, just pay attention to the format.
Yingchen is offline   Reply With Quote

Old   June 11, 2022, 22:00
Default
  #9
Member
 
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by Yingchen View Post
I had the same problem. I forgot the blank space in the dict file. So if you have the same problem, just pay attention to the format.

Looks to me like you have to do more than pay attention to the format. A lot of functionality that in principle should be there, isn't. For example, I've found that in some places, you can put a hard-coded number, but not a variable. I'll limit myself to documenting problems that are stopping me in my tracks.. ..well.. quick example:


Code:
    {
        name    cs;
        type    cellSet;
        action  new;
        source  cylinderToCell;
        sourceInfo
        {
            point1 (0 0 -100);
            point2 (0 0  100);
            centre (0 0 0);
            radius $cylinderRadius;
        }
    }

Those numbers after point1 and point2 and center? those can't be variables. oh, and "innerRadius" following radius doesn't do anything. that might be a .org vrs .com issue though..
mikethe1wheelnut is offline   Reply With Quote

Old   January 10, 2024, 06:57
Default
  #10
New Member
 
atilla altintas
Join Date: Oct 2010
Posts: 7
Rep Power: 16
galoisati is on a distinguished road
Hi,



I have solved a similar error by changing the fvSchemes file, default sheme from Gauss upwind to Gauss linear as below:



divSchemes
{
default Gauss linear;
div(phi,U) Gauss upwind;
div(phi,T) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}


I hope it helps to someone.
R2P3 likes this.
galoisati is offline   Reply With Quote

Old   April 16, 2024, 04:03
Default
  #11
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 8
bany is on a distinguished road
Quote:
Originally Posted by galoisati View Post
Hi,



I have solved a similar error by changing the fvSchemes file, default sheme from Gauss upwind to Gauss linear as below:



divSchemes
{
default Gauss linear;
div(phi,U) Gauss upwind;
div(phi,T) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
}


I hope it helps to someone.

Hi, I met the same error.
The "default Gauss upwind;" does not work. However, "default Gauss upwind phi;" does work.
bany is offline   Reply With Quote

Old   October 20, 2024, 13:21
Default
  #12
New Member
 
Teddy Liu
Join Date: May 2024
Posts: 5
Rep Power: 2
TeddyL is on a distinguished road
Maybe should pay attention to the comment syntax of the code, I once used "/*...*/" syntax to debug in my code, and it gave this error, but the "//" for comment is fine. (I used openfoam-v2212, it took me hours to figure that out) I hope this would do help for someone.
TeddyL is offline   Reply With Quote

Old   October 22, 2024, 19:32
Default
  #13
New Member
 
William Peace
Join Date: Jan 2021
Location: United Kingdom
Posts: 10
Rep Power: 5
WJPeace1 is on a distinguished road
I've also had the same issue with v2312. This seems to happen anytime I change the divSchemes for some reason...
WJPeace1 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
FOAM FATAL IO ERROR msrinath80 OpenFOAM Running, Solving & CFD 4 July 30, 2008 11:06
[Commercial meshers] FOAM FATAL ERROR points deallocated hoerl OpenFOAM Meshing & Mesh Conversion 0 October 30, 2006 08:47
Parallel FOAM FATAL IO ERROR msrinath80 OpenFOAM Running, Solving & CFD 1 July 28, 2006 13:48
FOAM FATAL ERROR derath OpenFOAM Pre-Processing 1 June 10, 2006 15:20
FOAM FATAL IO ERROR sita OpenFOAM Running, Solving & CFD 2 August 23, 2005 05:37


All times are GMT -4. The time now is 18:34.