CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   FOAM FATAL IO ERROR attempt to read beyond EOF (https://www.cfd-online.com/Forums/openfoam-solving/58743-foam-fatal-io-error-attempt-read-beyond-eof.html)

unoder August 9, 2005 03:57

Hello everybody. Just regis
 
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

unoder August 14, 2005 03:11

Hi there, Just for the arch
 
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

musahossein June 21, 2008 19:02

artin: I have the same issue
 
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

danj July 13, 2008 02:28

I have the exact same problem.
 
I have the exact same problem...

Hisham September 21, 2011 15:36

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)

neiht May 28, 2013 06:42

i think wrong definition uniform or nonuniform scalar. it needs to add scalar value after

Pier84 August 29, 2016 03:45

Hi,

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

Cheers,
Pierluigi

Yingchen September 20, 2016 05:47

same problem
 
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.:)

mikethe1wheelnut June 11, 2022 21:00

Quote:

Originally Posted by Yingchen (Post 618586)
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..

galoisati January 10, 2024 05:57

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.

bany April 16, 2024 03:03

Quote:

Originally Posted by galoisati (Post 862875)
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.


All times are GMT -4. The time now is 12:11.