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

attempt to read beyond EOF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2014, 06:39
Default attempt to read beyond EOF
  #1
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
Dear All,

I am trying to solve a time dependent problem. my conditions for one of the pressure inlet is

{
type totalPressure;
gamma 1.4;
p0 uniform ;
value tableFile;
tableFileCoeffs
{
fileName "$ADARSH/rubyFiles/test19/TABLES/PRESSURE_TABLE/PRESSURE_HOUSING_INLET.dat"
outOfBounds clamp;
}
}


while initiating the solution I got the following errors:

[CODE][/Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading thermophysical properties

Selecting thermodynamics package
{
type heheuPsiThermo;
mixture egrMixture;
transport sutherland;
thermo janaf;
equationOfState perfectGas;
specie specie;
energy absoluteEnthalpy;
}



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

file: /home/eatin/ADARSH/rubyFiles/test19/0/p.boundaryField.HOUSING_INLET.p0 at line 67.

From function ITstream::read(token&)
in file db/IOstreams/Tstreams/ITstream.C at line 83.

FOAM exiting
]


I don't know what is going wrong. please help me ASAP


Thanks in Advance,
Adarsh
adarsh tiwari is offline   Reply With Quote

Old   March 21, 2014, 11:34
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Does the file you are specifying have the same number of entries as the boundary has faces? What you are doing here in the code is setting the initial values on the patch to those in the file, the same as when the boundary is saved when your write out timesteps.
mturcios777 is offline   Reply With Quote

Old   March 22, 2014, 11:50
Default
  #3
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
Hi Marco,

First of all thanks for your quick response. I am very new in this field. I am not getting properly, what you are saying .

In single sentence I can say that I want to evaluate the flow pattern with the time dependent conditions.

I am giving the data in tabular form as mentioned in the User-Guide of FOAM 2.2.1.

Regards,
Adarsh R. Tiwari
adarsh tiwari is offline   Reply With Quote

Old   March 22, 2014, 22:22
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
I see. What the condition you have specified is trying to set the value over the field at the initial condition. What I think you want is to use the uniformFixedValue boundary condition, and set the uniformValue to the table you are using.
mturcios777 is offline   Reply With Quote

Old   March 23, 2014, 07:23
Default
  #5
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
Hi Marco,

I have attached my '0' Folder also few ones of my table files.
all other table files are in the same format.
Please tell me what went wrong.

Regards,
Adarsh R. Tiwari
Attached Files
File Type: zip 0.zip (9.1 KB, 16 views)
File Type: zip PRESSURE_TABLE.zip (79.7 KB, 10 views)
adarsh tiwari is offline   Reply With Quote

Old   March 24, 2014, 11:43
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
I think I see what the problem is, but just to be sure: the files PRESSURE_HOUSING_INLET and PRESSURE_HOUSING_OUTLET are the time dependant value of total pressure that you want at those particular boundaries?
mturcios777 is offline   Reply With Quote

Old   March 25, 2014, 22:36
Default
  #7
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
ya, actually I have to simulate the mass flow pattern out of the pressure and temperature specified. I tried to solve the issue and gave a run.

the case files initially i prepared with the help of 'http://www.openfoam.org/version2.1.0/boundary-conditions.php', later i modified it.

I am clueless about what is getting wrong.
Attached Files
File Type: zip a.zip (2.3 KB, 5 views)

Last edited by adarsh tiwari; March 26, 2014 at 02:51.
adarsh tiwari is offline   Reply With Quote

Old   March 26, 2014, 12:03
Default
  #8
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Your boundary conditions (p,T,U) look fine. The data files seem like they might be the problem. If they are similar as the files in PRESSURE_TABLE.zip, then you have to remember how to format a DataEntry of type tableFile. You can read the documentation here (specifically, the detailed description):

http://foam.sourceforge.net/docs/cpp/a02520.html

So, if I wanted (for example) as pressure that increased from 1e5 to 5e5 from 0.01 to 0.05 seconds linearly, my tableFile would look like:

Code:
(
    (0.0 1e5)
    (0.01 1e5)
    (0.02 2e5)
    (0.03 3e5)
    (0.04 4e5)
    (0.05 5e5)
);
Note that the first entry is a scalar and is always the simulated time. It must be monotonically increasing, and I think I saw some negative times in your specification, which could be messing you up. Why you have negative numbers in your time?
adarsh tiwari likes this.
mturcios777 is offline   Reply With Quote

Old   March 30, 2014, 14:47
Smile
  #9
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
hi Marco,

It seems that my problem is solved. initially it was with file location, now i have directly written the table in the case file.

the problem i faced was :: semi-colon ';' was not properly placed, i have done that and now getting some simulations done.

Thank you, Marco!!!

Last edited by adarsh tiwari; April 10, 2014 at 02:22.
adarsh tiwari is offline   Reply With Quote

Old   October 5, 2014, 20:06
Default error: attempt to read beyond EOF
  #10
New Member
 
krishh
Join Date: Apr 2012
Posts: 16
Rep Power: 14
krishtej23 is on a distinguished road
Hi Tiwari,

I too have the same error as you got. I checked many times about any semicolon which is missing but I didnt find any. I am unable to understand it. Please can you see the error and check the transportProperties.
Thanks in advance.
Krishna Teja.
Attached Files
File Type: zip files.zip (1.9 KB, 10 views)
krishtej23 is offline   Reply With Quote

Old   May 26, 2020, 02:11
Default
  #11
New Member
 
Adarsh
Join Date: Oct 2019
Posts: 5
Rep Power: 6
adarshfoam is on a distinguished road
Quote:
Originally Posted by adarsh tiwari View Post
Hi Marco,

I have attached my '0' Folder also few ones of my table files.
all other table files are in the same format.
Please tell me what went wrong.

Regards,
Adarsh R. Tiwari
Hi Adarsh I am also facing the same problem. did you get your problem solved
adarshfoam 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
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 09:46
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51


All times are GMT -4. The time now is 08:19.