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

[blockMesh] error EOF in blockMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2012, 16:31
Default error EOF in blockMesh
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Hi Foamers,

when i was working on a case using chtMultiRegionFoam, i found this error message while running blockMesh.
Quote:

Create time

Creating block mesh from
"/home/khattab/ahmed.2.0.1/tutorials/heatTransfer/chtMultiRegionFoam/Graetz/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches


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

file: /home/khattab/ahmed.2.0.1/tutorials/heatTransfer/chtMultiRegionFoam/Graetz/constant/polyMesh/blockMeshDict::boundary at line 211.

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

FOAM exiting
mentioned line 211 is the one containing ); before line of mergePatchPairs colored in red

Quote:
outlet
{
type patch;
faces
(
(25 26 38 37)
(26 27 39 38)
(27 28 40 39)
(28 29 41 40)
(29 30 42 41)
(30 31 43 42)
(31 32 44 43)
(32 33 45 44)
(33 34 46 45)
(34 35 47 46)
(35 36 48 47)
(36 37 49 48)
);

}
);

mergePatchPairs
(
);
Ahmed Khattab is offline   Reply With Quote

Old   May 6, 2012, 19:05
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi Ahmed,

Without seeing more of the file, I can only assume that you're missing this part of the file:
Code:
boundary
(
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 7, 2012, 03:33
Default
  #3
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Ahmed,

Without seeing more of the file, I can only assume that you're missing this part of the file:
Code:
boundary
(
Best regards,
Bruno
Hi Bruno,
thanks for your reply but this part is exist in the file, i didn't show it to avoid large thread.

Ahmed Khattab is offline   Reply With Quote

Old   May 7, 2012, 08:25
Default
  #4
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Hi
Please post complete blockMehDict.
Use dropbox to upload large file and to avoid long threads.
Generally we miss out braces and place the co-responding one correctly , and the compiler checks only for extra character i.e braces in this case.
__________________
________________________________________
Regards,
CFDkid

It never gets easier You just get Better

Last edited by kid; May 7, 2012 at 08:58.
kid is offline   Reply With Quote

Old   May 9, 2012, 05:27
Question
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by kid View Post
Hi
Please post complete blockMehDict.
Use dropbox to upload large file and to avoid long threads.
Generally we miss out braces and place the co-responding one correctly , and the compiler checks only for extra character i.e braces in this case.
HI CFDkid
thanks for your reply, i found problem in attaching file so i copy it in my reply. i added some line to my file so the problem became in line276 (red colored).
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.01;

vertices
(
    (0  11          11)        // point 0

    (0  11          1)         // point 01
    (0  16          2.3397459) // point 02
    (0  19.66025    6)         // point 03
    (0  21          11)        // point 04
    (0  19.66025    16)        // point 05
    (0  16          19.66025)  // point 06
    (0  11          21)        // point 07
    (0  6           19.66025)  // point 08
    (0  2.3397459   16)        // point 09
    (0  1           11)        // point 10
    (0  2.3397459   6)         // point 11
    (0  6           2.3397459) // point 12

    (0  11          0)       // point 13
    (0  16.5        1.47372) // point 14
    (0  20.52628    5.5)     // point 15
    (0  22          11)      // point 16
    (0  20.52628    16.5)    // point 17
    (0  16.5        20.52628)// point 18
    (0  11          22)      // point 19
    (0  5.5         2.052628)// point 20
    (0  1.47372     16.5)    // point 21
    (0  0           11)      // point 22
    (0  1.47372     5.5)     // point 23
    (0  5.5         1.47372) // point 24
   
    (100  11          1)         // point 25
    (100  16          2.3397459) // point 26
    (100  19.66025    6)         // point 27
    (100  21          11)        // point 28
    (100  19.66025    16)        // point 29
    (100  16          19.66025)  // point 30
    (100  11          21)        // point 31
    (100  6           19.66025)  // point 32
    (100  2.3397459   16)        // point 33
    (100  1           11)        // point 34
    (100  2.3397459   6)         // point 35
    (100  6           2.3397459) // point 36

    (100  11          0)       // point 37
    (100  16.5        1.47372) // point 38
    (100  20.52628    5.5)     // point 39
    (100  22          11)      // point 40
    (100  20.52628    16.5)    // point 41
    (100  16.5        20.52628)// point 42
    (100  11          22)      // point 43
    (100  5.5         2.052628)// point 44
    (100  1.47372     16.5)    // point 45
    (100  0           11)      // point 46
    (100  1.47372     5.5)     // point 47
    (100  5.5         1.47372) // point 48
    (0  11          11)        // point 49
    (100  11        11)        // point 50
    (100  11        11)        // point 51
);

blocks

(

  hex (1  13 14 2  26 38 37 25) (10 10 10) simpleGrading (1 1 1)

  hex (2  14 15 3  27 39 38 26) (10 10 10) simpleGrading (1 1 1)

  hex (3  15 16 4  28 40 39 27) (10 10 10) simpleGrading (1 1 1)
  hex (4  16 17 5  29 41 40 28) (10 10 10) simpleGrading (1 1 1)
  hex (5  17 18 6  30 42 41 29) (10 10 10) simpleGrading (1 1 1)
  hex (6  18 19 7  31 43 42 30) (10 10 10) simpleGrading (1 1 1)
  hex (7  19 20 8  32 44 43 31) (10 10 10) simpleGrading (1 1 1)
  hex (8  20 21 9  33 45 44 32) (10 10 10) simpleGrading (1 1 1)
  hex (9  21 22 10 34 46 45 33) (10 10 10) simpleGrading (1 1 1)
  hex (10 22 23 11 35 47 46 34) (10 10 10) simpleGrading (1 1 1)
  hex (11 23 24 12 36 48 47 35) (10 10 10) simpleGrading (1 1 1)
  hex (12 24 13 1  25 37 48 36) (10 10 10) simpleGrading (1 1 1)
  

);

edges
(
arc 1  3  (0  16          2.3397459)
arc 2  4  (0  19.66025    6)
arc 3  5  (0  21          11)
arc 4  6  (0  19.66025    16)
arc 5  7  (0  16          19.66025)
arc 6  8  (0  11          21)        // point 07
arc 7  9  (0  6           19.66025)  // point 08
arc 8  10 (0  2.3397459   16)        // point 09
arc 9  11 (0  1           11)        // point 10
arc 10 12 (0  2.3397459   6)         // point 11
arc 11 1  (0  6           2.3397459) // point 12


arc 13 15 (0  16.5        1.47372)
arc 14 16 (0  20.52628    5.5)
arc 15 17 (0  22          11)
arc 16 18 (0  20.52628    16.5)
arc 17 19 (0  16.5        20.52628)
arc 18 20 (0  11          22)
arc 19 21 (0  5.5         2.052628)
arc 20 22 (0  1.47372     16.5)
arc 21 23 (0  0           11)
arc 22 24 (0  1.47372     5.5)
arc 23 13 (0  5.5         1.47372)


arc 25 27 (100  16          2.3397459) // point 26
arc 26 28 (100  19.66025    6)         // point 27
arc 27 29 (100  21          11)        // point 28
arc 28 30 (100  19.66025    16)        // point 29
arc 29 31 (100  16          19.66025)  // point 30
arc 30 32 (100  11          21)        // point 31
arc 31 33 (100  6           19.66025)  // point 32
arc 32 34 (100  2.3397459   16)        // point 33
arc 33 35 (100  1           11)        // point 34
arc 34 36 (100  2.3397459   6)         // point 35
arc 35 25 (100  6           2.3397459) // point 36



arc 37 39 (100  16.5        1.47372)
arc 38 40 (100  20.52628    5.5)
arc 39 41 (100  22          11)
arc 40 42 (100  20.52628    16.5)
arc 41 43 (100  16.5        20.52628)
arc 42 44 (100  11          22)
arc 43 45 (100  5.5         2.052628)
arc 44 46 (100  1.47372     16.5)
arc 45 47 (100  0           11)
arc 46 48 (100  1.47372     5.5)
arc 47 37 (100  5.5         1.47372)
);

boundary
(
    internal face
    {
        type wall;

        faces
        (
            (1  2  26  25)
            (2  3  27  26)
            (3  4  28  27)
            (4  5  29  28)
            (5  6  30  29)
            (6  7  31  30)
            (7  8  32  31)
            (8  9  33  32)
            (9  10 34  33)
            (10 11 35  34)
            (11 12 36  35)
            (12 1  25  36)
        );
    }
    outer face
    {
        type wall;
        faces
        (
            (13 37 38 14)
            (14 38 39 15)
            (15 39 40 16)
            (16 40 41 17)
            (17 41 42 18) 
            (18 42 43 19)
            (19 43 44 20)
            (20 44 45 21)
            (21 45 46 22)
            (22 46 47 23)
            (23 47 48 24)
            (24 48 37 13)
        );
    }
    inlet
    {
        type wall;
        faces
        (
            (1  13 14 2)
            (2  14 15 3)  
            (3  15 16 4)
            (4  16 17 5)
            (5  17 18 6)
            (6  18 19 7)
            (7  19 20 8)
            (8  20 21 9)
            (9  21 22 10)
            (10 22 23 11)
            (11 23 24 12)
            (12 24 13 1)
            
        );
    }
    outlet
    {
        type wall;
        faces
        (
            (25 26 38 37)
            (26 27 39 38)
            (27 28 40 39)
            (28 29 41 40)
            (29 30 42 41)
            (30 31 43 42)
            (31 32 44 43)
            (32 33 45 44)
            (33 34 46 45)
            (34 35 47 46)
            (35 36 48 47)
            (36 25 37 48)
       );
    }

    inlet_flow
   {
    type wall;
    faces
    (
       (0 1  2  49)
       (0 2  3  49)
       (0 3  4  49) 
       (0 4  5  49)
       (0 5  6  49)
       (0 6  7  49)
       (0 7  8  49)
       (0 8  9  49)
       (0 9  10 49)
       (0 10 11 49)
       (0 11 12 49)
       (0 12 1  49)
     );
     }

    outlet_flow
   {
    type wall;
    faces
    (
       (50 26  25 51)
       (50 27  26 51)
       (50 28  27 51) 
       (50 29  28 51)
       (50 30  29 51)
       (50 31  30 51)
       (50 32  31 51)
       (50 33  32 51)
       (50 34  33 51)
       (50 35  34 51)
       (50 36  35 51)
       (50 25  36 51)
     );
     }
   
 ); 


mergePatchPairs
(
);

// ************************************************************************* //
thanks in advance.
ahmed
Ahmed Khattab is offline   Reply With Quote

Old   May 9, 2012, 05:37
Default
  #6
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Hi,
Could you please see the bold character below in your blockMeshDict.
"internal face" has to be one single word and not separated word ,which happens to be in your case so join them by using a underScore or something.
And same should be done for "outer face"
Hope this helps.
__________________
________________________________________
Regards,
CFDkid

It never gets easier You just get Better

Last edited by kid; May 9, 2012 at 08:51.
kid is offline   Reply With Quote

Old   May 13, 2012, 07:02
Default
  #7
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Hi Kid,

it worked. i also figured out some faults and solved it.

thank you very much.
Ahmed Khattab is offline   Reply With Quote

Old   May 17, 2012, 01:37
Default
  #8
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
Your WelCome
__________________
________________________________________
Regards,
CFDkid

It never gets easier You just get Better
kid is offline   Reply With Quote

Reply

Tags
eof

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
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 bjdarrer OpenFOAM Installation 7 August 25, 2020 20:15
blockMesh wmake error for OpenFOAM5 on ubuntu on windows rclement OpenFOAM Programming & Development 2 March 5, 2018 17:57
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
[blockMesh] set of xyz data in blockMesh psk OpenFOAM Meshing & Mesh Conversion 12 August 27, 2013 09:37
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 12:59


All times are GMT -4. The time now is 01:20.