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

FOAM FATAL IO ERROR: attempt to read beyond EOF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2023, 10:40
Default FOAM FATAL IO ERROR: attempt to read beyond EOF
  #1
New Member
 
Héloïse Magliano
Join Date: Feb 2023
Posts: 4
Rep Power: 4
HeloïseM is on a distinguished road
Hello everyone,

I'm new to OpenFoam and I'm trying to create a mesh using blockMesh: I want to have a cylindar mesh but with an empty cylinder in the middle.
Here is my blockMeshDict file :

convertToMeters 0.001;

vertices
(
(3 0 0) //0
(0 3 0) //1
(-3 0 0) //2
(0 -3 0) //3 bottom circle
(3 0 5) //4
(0 3 5) //5
(-3 0 5) //6
(0 -3 5) //7 top
(1 0 0) //8
(0 1 0) //9
(-1 0 0)
(0 -1 0)
(1 0 5)
(0 1 5)
(-1 0 5)
(0 -1 5)
(0 0 0)
(0 0 5)
);

blocks
(
hex (0 1 9 8 4 5 13 12) (25 25 100) simpleGrading (1 1 1)
);

edges
(
arc 0 1 (2.127 2.127 0) //(cx + rcos45 cy + rsin45 0) bottom arc
arc 8 9 (0.709 0.709 0)

arc 4 5 (2.127 2.127 1) // top arc
arc 12 13 (0.709 0.709 1)
);

boundary
(
walls
{

type wall;
faces
(
(0 1 9 8)
);
}
atmosphere
{
type patch;
faces
(
(4 5 13 12)

);
}
external sides
{
type patch;
faces
(
(1 0 4 5)
);
}
internal sides
{
type patch;
faces
(
(9 8 12 13)
);
}

);

mergePatchPairs
(
);

And when i do blockMesh i get this error message :

Create time

Creating block mesh from
"/students/2023/magliano/OpenFOAM/magliano-2.1.x/run/BFS/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches


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

file: /students/2023/magliano/OpenFOAM/magliano-2.1.x/run/BFS/constant/polyMesh/blockMeshDict::boundary at line 91.

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

FOAM exiting

Which is weird because it seems to me that the probleme isn't with the mesh itself but maybe I'm wrong.
Does someone could help me ?
HeloïseM is offline   Reply With Quote

Old   February 26, 2023, 11:14
Default
  #2
Senior Member
 
shinji nakagawa
Join Date: Mar 2009
Location: Japan
Posts: 113
Blog Entries: 1
Rep Power: 19
snak is on a distinguished road
Hi HeloïseM,

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

file: /students/2023/magliano/OpenFOAM/magliano-2.1.x/run/BFS/constant/polyMesh/blockMeshDict::boundary at line 91.
From this message, boundary condition section in your blockMeshDict is suspected.

Boundary name should be one word without space in it. "external sides" and "internal sides" could be the cause of the error. "external-sides" and "internal-sides" will be OK.
snak is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 attempt to read beyond EOF unoder OpenFOAM Running, Solving & CFD 12 October 22, 2024 19:32
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 12:32
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 00:56.