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

ill defined primitive entry 'boundary'

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2013, 13:12
Unhappy ill defined primitive entry 'boundary'
  #1
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 14
francisco.angel is on a distinguished road
Hello, Im trying to create my first geometry in open foam and for that edited the blockMeshDict file from the cavity tutorial to this:
convertToMeters 1;

vertices
(
(0,-0.25,0)
(0.25,0,0)
(0,0.25,0)
(-0.25,0,0)
(0,-0.25,0.1)
(0.25,0,0.1)
(0,0.25,0.1)
(-0.25,0,0.1)
(0,-0.25,1)
(0,0.25,1)
(0.25,0,1)
(0,-0.05,1)
(0.05,0,1)
(0,0.05,1)
(-0.05,0,1)
(0,-0.05,1.20)
(0.05,0,1.20)
(0,0.05,1.20)
(-0.05,0,1.20)
);

blocks
(
hex (0 1 2 3 8 9 10 11) (20 20 30) simpleGrading (1 1 1)
hex (12 13 14 15 16 17 18 19 20) (10 10 20) simpleGrading (1 1 1)
);

edges
(
arc 0 2 (0.25,0,0)
arc 2 0 (-0.25,0,0)
arc 4 6 (0.25,0,0.1)
arc 6 4 (-0.25,0,0.1)
arc 8 10 (0,0.25,1)
arc 10 8 (0,-0.25,1)
arc 12 14 (0.05,0,1)
arc 14 12 (-0.05,0,1)
arc 16 18 (0.05,0,1.2)
arc 18 16 (-0.05,0,1.2)
);

boundary
(
pared
{
type wall;
faces
(
(0 1 2 3)
(4 6 10 8)
(6 4 8 10)
(8 9 13 12)
(9 10 14 13)
(10 11 15 14)
(11 8 12 15)
salida
{
type patch;
faces
(
(0 2 6 4)
(2 0 4 6)
(16 17 18 19)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
Im triying to construct a cylindrical geometry with inflow in top and outflow in the bottom section. I read about axial symmetry but I was triying to construct in the simpler way possible to start.
The error console gives is:

Create time

Creating block mesh from
"/home/francisco/Escritorio/horno/constant/polyMesh/blockMeshDict"


--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'boundary' on line 63 and ending at line 94"

file: /home/francisco/Escritorio/horno/constant/polyMesh/blockMeshDict at line 94.

From function primitiveEntry::readEntry(const dictionary&, Istream&)
in file lnInclude/IOerror.C at line 132.

FOAM exiting

In my actual knowledge the error is totally obscure for me.
francisco.angel is offline   Reply With Quote

Old   January 29, 2013, 19:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Greetings Francisco and welcome to the forum!

Please use the "[CODE]" markers for isolating source code... in advanced editing mode, it's the "#" button

Now, the error tells you that the problem starts at "boundary", so let's look at what "boundary" defines:
Code:
boundary
(
    pared
    {
        type wall;
        faces
        (
                (0 1 2 3)
                (4 6 10 8)
                (6 4 8 10)
                (8 9 13 12)
                (9 10 14 13)
                (10 11 15 14)
                (11 8 12 15)               
    salida
    {
        type patch;
        faces
        (
            (0 2 6 4)
            (2 0 4 6)
            (16 17 18 19)
        );
    }
);
Notice the sudden drop in the list between "pared" and "salida"?
It should be something like this (in bold are the lines that were added):
Code:
boundary
(
    pared
    {
        type wall;
        faces
        (
                (0 1 2 3)
                (4 6 10 8)
                (6 4 8 10)
                (8 9 13 12)
                (9 10 14 13)
                (10 11 15 14)
                (11 8 12 15)               
       );
    }

    salida
    {
        type patch;
        faces
        (
            (0 2 6 4)
            (2 0 4 6)
            (16 17 18 19)
        );
    }
);
If you don't want to keep designing meshes for blockMesh using text only, try SwiftBlock: http://openfoamwiki.net/index.php/Contrib/SwiftBlock

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 30, 2013, 09:58
Default
  #3
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 14
francisco.angel is on a distinguished road
Thanks for the answer, after your response I continue work in the file but still getting errors, I was capable of catching a couple ( ,'s in vertices definition, bad definition of arcs). Following recomendation of another post I try to construct the geometry by parts to isolate the error. Succesfully construct the inferior part, now when I try to add the intermediate part I obtain an error I im incapable of repair. Please help.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
        (0      -0.25   0       )     //0
        (0.25   0       0       )     //1
        (0      0.25    0       )       //2
        (-0.25  0       0       )       //3
        (0      -0.25   0.1     )       //4
        (0.25   0       0.1     )       //5
        (0      0.25    0.1     )       //6
        (-0.25  0       0.1     )       //7
        (0      -0.25   1       )       //8
        (0.25    0      1       )       //9
        (0      0.25    1       )       //10  
        (-0.25  0       1       )       //11
           );

blocks
(
    hex (0 1 2 3 8 9 10 11) (20 20 30) simpleGrading (1 1 1)
  );

edges
(
        arc 0 1 (0.17678 -0.17678 0)
        arc 1 2 (0.17678 0.17678  0)
        arc 2 3 (-0.17678 0.17678 0)
        arc 3 0 (-0.17678 -0.17678 0)
        arc 4 5 (0.17678 -0.17678 0.1)
        arc 5 6 (0.17678 0.17678  0.1)
        arc 6 7 (-0.17678 0.17678 0.1)
        arc 7 4 (-0.17678 -0.17678 0.1)
        arc 8 9 (0.17678 -0.17678 1)
        arc 9 10 (0.17678 0.17678  1)
        arc 10 11 (-0.17678 0.17678 1)
        arc 11 8 (-0.17678 -0.17678 1)
      
);

boundary
(
 entrada
{
type patch;
faces
(
(8 9 10 11)
);
}
 salida
    {
        type patch;
        faces
        (
            (0 1 5 4)
            (1 2 6 5)
            (2 3 7 6)
            (3 0 4 7)
        );
    }
    pared
    {
        type wall;
        faces
        (
                (0 1 2 3)
                (4 5 9 8)
                (5 6 10 9)
                (6 7 11 10)
                (7 4 9 11)
                  	);
    }	

);

mergePatchPairs
(
);

// ************************************************************************* //
This is the message from blockMesh

Create time

Creating block mesh from
"/home/francisco/Escritorio/horno/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology


--> FOAM FATAL ERROR:
face 0 in patch 1 does not have neighbour cell face: 4(0 1 5 4)

From function polyMesh::facePatchFaceCells(const faceList& patchFaces,const labelListList& pointCells,const faceListList& cellsFaceShapes,const label patchID)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 127.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam:olyMesh::facePatchFaceCells(Foam::List<Foam ::face> const&, Foam::List<Foam::List<int> > const&, Foam::List<Foam::List<Foam::face> > const&, int) const in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3 Foam:olyMesh::setTopology(Foam::List<Foam::cellS hape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::List<int>&, Foam::List<int>&, int&, int&, Foam::List<Foam::cell>&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4 Foam:olyMesh:olyMesh(Foam::IOobject const&, Foam::Xfer<Foam::Field<Foam::Vector<double> > > const&, Foam::List<Foam::cellShape> const&, Foam::List<Foam::List<Foam::face> > const&, Foam::List<Foam::word> const&, Foam::PtrList<Foam::dictionary> const&, Foam::word const&, Foam::word const&, bool) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#5 Foam::blockMesh::createTopology(Foam::IOdictionary const&, Foam::word const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libblockMesh.so"
#6 Foam::blockMesh::blockMesh(Foam::IOdictionary const&, Foam::word const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libblockMesh.so"
#7
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/blockMesh"
#8 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#9
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/blockMesh"
Abortado
francisco.angel is offline   Reply With Quote

Old   January 30, 2013, 10:02
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Franscisco,

I can't test your file right now. But in the meantime, I forgot to mention a feature that can assist you in debugging the "blockMeshDict" file - run paraFoam like this:
Code:
paraFoam -block
It will show you how conceptually the mesh will look like.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 30, 2013, 14:16
Default
  #5
New Member
 
Francisco Angel
Join Date: Dec 2012
Posts: 26
Rep Power: 14
francisco.angel is on a distinguished road
thanks again for the answer, with the command you indicated I was capable of debugg the error, almost all the errors reported were in the end caused for creting combinations of blocks and faces that can cause and element of the discretization could end being in two boundary conditions.
Based on geometry of another thread I divided my domain in more blocks to allow each of the faces being the complete side of one block.
More code but now I undertand more the logic of the program.
Thanks again for the time dedicated to answer me.
francisco.angel is offline   Reply With Quote

Old   December 10, 2013, 12:03
Default ill defined primitiveEntry at boundary
  #6
New Member
 
Dhaval Shiyani
Join Date: Sep 2012
Posts: 7
Rep Power: 14
cfdjunkie is on a distinguished road
Hello guys,

Sorry to keep on this error but I am trying to run a blockMeshDict file for a cylindrical domain with multiple inlet faces.

Code:
 // blockMesh :  Block mesh description file
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
FoamFile
{
version  2.0;
format   ascii;

root     "";
case     "";
instance "";
local    "";

class dictionary;
object blockMeshDict;
}
// ************************************
  
   convertToMeters 1;

    //0.3048m column diameter
    //0.5017m length

   vertices
   (
    ( 0.0762 0.0  0.0762) // Vertex LowerOuterSquare0 = 0 
    ( 0.0381 0.0 0.0762) // Vertex LowerOuterSquare1 = 1 
    ( 0.0 0.0 0.0762) // Vertex LowerOuterSquare2 = 2 
    (-0.0381 0.0 0.0762) // Vertex LowerOuterSquare3 = 3 
    (-0.0762 0.0  0.0762) // Vertex LowerOuterSquare4 = 4 
    (-0.0762 0.0 0.0381) // Vertex LowerOuterSquare5 = 5 
    (-0.0762 0.0 0.0) // Vertex LowerOuterSquare6 = 6 
    (-0.0762 0.0 -0.0381) // Vertex LowerOuterSquare7 = 7 
    (-0.0762 0.0 -0.0762) // Vertex LowerOuterSquare8 = 8 
    (-0.0381 0.0 -0.0762) // Vertex LowerOuterSquare9 = 9 
    ( 0.0 0.0 -0.0762) // Vertex LowerOuterSquare10 = 10 
    ( 0.0381 0.0 -0.0762) // Vertex LowerOuterSquare11 = 11 
    ( 0.0762 0.0 -0.0762) // Vertex LowerOuterSquare12 = 12 
    ( 0.0762 0.0 -0.0381) // Vertex LowerOuterSquare13 = 13 
    ( 0.0762 0.0 0.0) // Vertex LowerOuterSquare14 = 14 
    ( 0.0762 0.0 0.0381) // Vertex LowerOuterSquare15 = 15 

    ( 0.14079924078089 0.0 0.0583209550292597) // Vertex BottomCircle16 = 16 
    ( 0.107763073549542 0.0 0.107763073356118) // Vertex BottomCircle17 = 17 
    ( 0.0583209550292597 0.0 0.14079924078089) // Vertex BottomCircle18 = 18 
    ( 0.0 0.0 0.1524) // Vertex BottomCircle19 = 19 
    (-0.0583209550292597 0.0 0.14079924078089) // Vertex BottomCircle20 = 20 
    (-0.107763073549542 0.0 0.107763073356118) // Vertex BottomCircle21 = 21 
    (-0.14079924078089 0.0 0.0583209550292597) // Vertex BottomCircle22 = 22 
    (-0.1524 0.0 0.0) // Vertex BottomCircle23 = 23 
    (-0.14079924078089 0.0 -0.0583209550292597) // Vertex BottomCircle24 = 24 
    (-0.107763073549542 0.0 -0.107763073356118) // Vertex BottomCircle25 = 25 
    (-0.0583209550292597 0.0 -0.14079924078089) // Vertex BottomCircle26 = 26 
    ( 0.0 0.0 -0.1524) // Vertex BottomCircle27 = 27 
    ( 0.0583209550292597 0.0 -0.14079924078089) // Vertex BottomCircle28 = 28 
    ( 0.107763073549542 0.0 -0.107763073356118) // Vertex BottomCircle29 = 29 
    ( 0.14079924078089 0.0 -0.0583209550292597) // Vertex BottomCircle30 = 30 
    ( 0.1524 0.0 0.0) // Vertex BottomCircle31 = 31 

    ( 0.0762 0.5017  0.0762) // Vertex UpperOuterSquare32 = 32 
    ( 0.0381 0.5017 0.0762) // Vertex UpperOuterSquare33 = 33 
    ( 0.0 0.5017 0.0762) // Vertex UpperOuterSquare34 = 34 
    (-0.0381 0.5017 0.0762) // Vertex UpperOuterSquare35 = 35 
    (-0.0762 0.5017 0.0762) // Vertex UpperOuterSquare36 = 36 
    (-0.0762 0.5017 0.0381) // Vertex UpperOuterSquare37 = 37 
    (-0.0762 0.5017 0.0) // Vertex UpperOuterSquare38 = 38 
    (-0.0762 0.5017 -0.0381) // Vertex UpperOuterSquare39 = 39 
    (-0.0762 0.5017 -0.0762) // Vertex UpperOuterSquare40 = 40 
    (-0.0381 0.5017 -0.0762) // Vertex UpperOuterSquare41 = 41 
    ( 0.0 0.5017 -0.0762) // Vertex UpperOuterSquare42 = 42 
    ( 0.0381 0.5017 -0.0762) // Vertex UpperOuterSquare43 = 43 
    ( 0.0762 0.5017 -0.0762) // Vertex UpperOuterSquare44 = 44 
    ( 0.0762 0.5017 -0.0381) // Vertex UpperOuterSquare45 = 45 
    ( 0.0762 0.5017 0.0) // Vertex UpperOuterSquare46 = 46 
    ( 0.0762 0.5017 0.0381) // Vertex UpperOuterSquare47 = 47 

    ( 0.14079924078089 0.5017 0.0583209550292597) // Vertex TopCircle48 = 48 
    ( 0.107763073549542 0.5017 0.107763073356118) // Vertex TopCircle49 = 49 
    ( 0.0583209550292597 0.5017 0.14079924078089) // Vertex TopCircle50 = 50 
    ( 0.0 0.5017 0.1524) // Vertex TopCircle51 = 51 
    (-0.0583209550292597 0.5017 0.14079924078089) // Vertex TopCircle52 = 52 
    (-0.107763073549542 0.5017 0.107763073356118) // Vertex TopCircle53 = 53 
    (-0.14079924078089 0.5017 0.0583209550292597) // Vertex TopCircle54 = 54 
    (-0.1524 0.5017 0.0) // Vertex TopCircle55 = 55 
    (-0.14079924078089 0.5017 -0.0583209550292597) // Vertex TopCircle56 = 56 
    (-0.107763073549542 0.5017 -0.107763073356118) // Vertex TopCircle57 = 57 
    (-0.0583209550292597 0.5017 -0.14079924078089) // Vertex TopCircle58 = 58 
    ( 0.0 0.5017 -0.1524) // Vertex TopCircle59 = 59 
    ( 0.0583209550292597 0.5017 -0.14079924078089) // Vertex TopCircle60 = 60 
    ( 0.107763073549542 0.5017 -0.107763073356118) // Vertex TopCircle61 = 61 
    ( 0.14079924078089 0.5017 -0.0583209550292597) // Vertex TopCircle62 = 62 
    ( 0.1524 0.5017 0.0) // Vertex TopCircle63 = 63 

    ( 0.0381 0.0 0.0381) // Vertex LowerInnerSquare64 = 64 
    ( 0.0 0.0 0.0381) // Vertex LowerInnerSquare65 = 65 
    (-0.0381 0.0 0.0381) // Vertex LowerInnerSquare66 = 66 
    (-0.0381 0.0 0.0) // Vertex LowerInnerSquare67 = 67 
    (-0.0381 0.0 -0.0381) // Vertex LowerInnerSquare68 = 68 
    (0.0 0.0 -0.0381) // Vertex LowerInnerSquare69 = 69 
    (0.0381 0.0 -0.0381) // Vertex LowerInnerSquare70 = 70 
    (0.0381 0.0 0.0) // Vertex LowerInnerSquare71 = 71 

    ( 0.0381 0.5017 0.0381) // Vertex UpperInnerSquare72 = 72 
    ( 0.0 0.5017 0.0381) // Vertex UpperInnerSquare73 = 73 
    (-0.0381 0.5017 0.0381) // Vertex UpperInnerSquare74 = 74 
    (-0.0381 0.5017 0.0) // Vertex UpperInnerSquare75 = 75 
    (-0.0381 0.5017 -0.0381) // Vertex UpperInnerSquare76 = 76 
    (0.0 0.5017 -0.0381) // Vertex UpperInnerSquare77 = 77 
    (0.0381 0.5017 -0.0381) // Vertex UpperInnerSquare78 = 78 
    (0.0381 0.5017 0.0) // Vertex UpperInnerSquare79 = 79 

    (0.0 0.0 0.0) // Vertex Origin80 = 80 
    (0.0 0.5017 0.0) // Vertex OriginTop81 = 81 

    
   );                

   blocks
   (
    //Square block1
    hex (4 3 66 5 36 35 74 37) (5 5 30) simpleGrading (1 1 1)

    //Square block2
    hex (3 2 65 66 35 34 73 74) (5 5 30) simpleGrading (1 1 1)

    //Square block3
    hex (2 1 64 65 34 33 72 73) (5 5 30) simpleGrading (1 1 1)

    //Square block4
    hex (1 0 15 64 33 32 47 72) (5 5 30) simpleGrading (1 1 1)

    //Square block5
    hex (
       5 66 67 6
       37 74 75 38
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block6
    hex (
       66 65 80 67
       74 73 81 75
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block7
    hex (
       65 64 71 80
       73 72 79 81
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block8
    hex (
       64 15 14 71
       72 47 47 79
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block9
    hex (
       6 67 68 7
       38 75 76 39
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block10
    hex (
       67 80 69 68
       75 81 77 76
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block11
    hex (
       80 71 70 69
       81 79 78 77
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block12
    hex (
       71 14 13 70
       79 46 45 78
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block13
    hex (
       7 68 9 8
       39 76 41 40
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block14
    hex (
       68 69 10 9
       76 77 42 41
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block15
    hex (
       69 70 11 10
       77 78 43 42
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //Square block16
    hex (
       70 13 12 11
       78 45 44 43
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //slice1
    hex (
         19 2 3 20
         51 34 35 52
       )
    (5 5 30)
    simpleGrading (1 1 1)

    //slice2
    hex (
         20 3 4 21
         52 35 36 53 
       )
   (5 5 30)
simpleGrading (1 1 1)

   //slice3
   hex (
        21 3 4 22
        53 36 37 54
       )
   (5 5 30)
simpleGrading (1 1 1)

   //slice4
   hex (
        22 5 6 23
        54 37 38 55
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice5
   hex (
        23 6 7 24
        55 38 39 56
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice6
   hex (
        24 7 8 25
        56 39 40 57
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice7
   hex (
        25 8 9 26
        57 40 41 58
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice8
   hex (
        26 9 10 27
        58 41 42 59
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice9
   hex (
        27 10 11 28
        59 42 43 60
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice10
   hex (
        28 11 12 29
        60 43 44 61
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice11
   hex (
        29 12 13 30
        61 44 45 62
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice12
   hex (
        30 13 14 31
        62 45 46 63
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice13
   hex (
        31 14 15 16
        63 46 47 48
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice14
   hex (
        16 15 0 17
        48 47 32 49
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice15
   hex (
        17 0 1 18
        49 32 33 50
       )
   (5 5  30)
simpleGrading (1 1 1)

   //slice16
   hex (
        18 1 2 19
        50 33 34 51
       )
   (5 5  30)
simpleGrading (1 1 1)

   );


   //create arcs 1/16th the size of the circle
   edges
   (
    arc 16 17 ( 0.126715968971897 0  0.0846689034268966)
    arc 17 18 ( 0.0846689034268966 0  0.126715968971897)
    arc 18 19 ( 0.0297317650417222 0  0.149471676740123)
    arc 19 20 (-0.0297317650417222 0  0.149471676740123)
    arc 20 21 (-0.0846689034268966 0  0.126715968971897)
    arc 21 22 (-0.126715968971897 0  0.0846689034268966)
    arc 22 23 (-0.149471676740123 0  0.0297317650417222)
    arc 23 24 (-0.149471676740123 0 -0.0297317650417222)
    arc 24 25 (-0.126715968971897 0 -0.0846689034268966)
    arc 25 26 (-0.0846689034268966 0 -0.126715968971897)
    arc 26 27 (-0.0297317650417222 0 -0.149471676740123)
    arc 27 28 ( 0.0297317650417222 0 -0.149471676740123)
    arc 28 29 ( 0.0846689034268966 0 -0.126715968971897)
    arc 29 30 ( 0.126715968971897 0 -0.0846689034268966)
    arc 30 31 ( 0.149471676740123 0 -0.0297317650417222)
    arc 31 16 ( 0.149471676740123 0  0.0297317650417222)

    arc 48 49 ( 0.126715968971897 0.5017  0.0846689034268966)
    arc 49 50 ( 0.0846689034268966 0.5017  0.126715968971897)
    arc 50 51 ( 0.0297317650417222 0.5017  0.149471676740123)
    arc 51 52 (-0.0297317650417222 0.5017  0.149471676740123)
    arc 52 53 (-0.0846689034268966 0.5017  0.126715968971897)
    arc 53 54 (-0.126715968971897 0.5017  0.0846689034268966)
    arc 54 55 (-0.149471676740123 0.5017  0.0297317650417222)
    arc 55 56 (-0.149471676740123 0.5017 -0.0297317650417222)
    arc 56 57 (-0.126715968971897 0.5017 -0.0846689034268966)
    arc 57 58 (-0.0846689034268966 0.5017 -0.126715968971897)
    arc 58 59 (-0.0297317650417222 0.5017 -0.149471676740123)
    arc 59 60 ( 0.0297317650417222 0.5017 -0.149471676740123)
    arc 60 61 ( 0.0846689034268966 0.5017 -0.126715968971897)
    arc 61 62 ( 0.126715968971897 0.5017 -0.0846689034268966)
    arc 62 63 ( 0.149471676740123 0.5017 -0.0297317650417222)
    arc 63 48 ( 0.149471676740123 0.5017  0.0297317650417222)
   );

   boundary
   (
    inlet1 
    {
    type wall;
    faces
    (
     (17 16 48 49)
    );
    }

    inlet2
    {
    type wall;
    faces
    (
     (18 17 49 50)
    );
    }
   
    inlet3
    {
    type wall;
    faces
    (
     (19 18 50 51)
    );
    }

    inlet4
    {
    type wall;
    faces
    (
     (20 19 51 52)
    );
    }
 
    inlet5
    {
    type wall;
    faces
    (
     (21 20 52 53)
    );
    }

    inlet6
    {
    type wall;
    faces
    (
     (22 21 53 54)
    );
    }

    inlet7
    {
    type wall;
    faces
    (
     (23 22 54 55)
    );
    }

    inlet8
    {
    type wall;
    faces
    (
     (24 23 55 56)
    );
    }

    inlet9
    {
    type wall;
    faces
    (
     (25 24 56 57)
    );
    }

    inlet10
    {
    type wall;
    faces
    (
     (26 25 57 58)
    );
    }

    inlet11
    {
    type wall;
    faces
    (
     (27 26 58 59)
    );
    }

    inlet12
    {
    type wall;
    faces
    (
     (28 27 59 60)
    );
    }

    inlet13
    {
    type wall;
    faces
    (
     (29 28 60 61)
    );
    }

    inlet14
    {
    type wall;
    faces
    (
     (30 29 61 62)
    );
    }

    inlet15
    {
    type wall;
    faces
    (
     (31 30 62 63)
    );
    }

    inlet16
    {
    type wall;
    faces
    (
     (16 31 63 48)
    );
    }

    hotPlate
    {
    type wall;
    faces
    (
     (16 15 0 17)
     (17 0 1 18)
     (18 1 2 19)
     (19 2 3 20)
     (20 3 4 21)
     (21 4 5 22)
     (22 5 6 23)
     (23 6 7 24)
     (24 7 8 25)
     (25 8 9 26)
     (26 9 10 27)
     (27 10 11 28)
     (28 11 12 29)
     (29 12 13 30)
     (30 13 14 31)
     (31 14 15 16)
     (15 64 1 0)
     (64 65 2 1)
     (65 66 3 2)
     (66 5 4 3)
     (14 71 64 15)
     (71 80 65 64)
     (80 67 66 65)
     (67 6 5 66)
     (13 70 71 14)
     (70 69 80 71)
     (69 68 67 80))
     (68 7 6 67)
     (12 11 70 13)
     (11 10 69 70)
     (10 9 68 69)
     (9 8 7 68) 
    );
    }
 
    outlet
    {
    type wall;
    faces
    (
     (48 47 32 49)
     (49 32 33 50)
     (50 33 34 51)
     (51 34 35 52)
     (52 35 36 53)
     (53 36 37 54)
     (54 37 38 55)
     (55 38 39 56)
     (56 39 40 57)
     (57 40 41 58)
     (58 41 42 59)
     (59 42 43 60)
     (60 43 44 61)
     (61 44 45 62)
     (62 45 46 63)
     (63 46 47 48)
     (47 72 33 32)
     (72 73 34 33)
     (73 74 35 34)
     (74 37 36 35)
     (46 79 72 47)
     (79 81 73 72)
     (81 75 74 73)
     (75 38 37 74)
     (45 78 79 46)
     (78 77 81 79)
     (77 76 75 81)
     (76 39 38 75)
     (44 43 78 45)
     (43 42 77 78)
     (42 41 76 77)
     (41 40 39 76)
    );

    }

);

mergePatchPairs
(
);

/***************************************************************/
However when I run blockMesh on this file I get the same ill defined primitiveEntry at boundary error,
Code:
esi-comp@esicomp01:~/OpenFOAM/dhaval222/run/SteadyState/TestCase16part$ blockMesh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.2                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9240f8b967db
Exec   : blockMesh
Date   : Dec 10 2013
Time   : 10:45:05
Host   : "esicomp01"
PID    : 24267
Case   : /home/esi-comp/OpenFOAM/dhaval222/run/SteadyState/TestCase16part
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from
    "/home/esi-comp/OpenFOAM/dhaval222/run/SteadyState/TestCase16part/constant/polyMesh/blockMeshDict"


--> FOAM FATAL IO ERROR: 
"ill defined primitiveEntry starting at keyword 'boundary' on line 458 and ending at line 692"

file: /home/esi-comp/OpenFOAM/dhaval222/run/SteadyState/TestCase16part/constant/polyMesh/blockMeshDict at line 692.

    From function primitiveEntry::readEntry(const dictionary&, Istream&)
    in file lnInclude/IOerror.C at line 132.

FOAM exiting
After reviewing this thread it seems to me that this is because of any syntax errors in the boundary condition definitions of the dict file. But after going through the blockMeshDict, I cannot for the life of me figure out any syntax errors that I have made.
Can I please get some help with this error? May be a second eye.
Thanks in advance!

Regards,
Dhaval
cfdjunkie is offline   Reply With Quote

Old   December 10, 2013, 12:45
Default
  #7
New Member
 
Dhaval Shiyani
Join Date: Sep 2012
Posts: 7
Rep Power: 14
cfdjunkie is on a distinguished road
Hey guys,

Got it. There is one extra parenthesis in the hotPlate/faces section.
Please don't waste your time to reply to the previous thread.

Thanks a lot!

Dhaval
cfdjunkie is offline   Reply With Quote

Old   June 12, 2016, 06:28
Default
  #8
Member
 
Fatemeh
Join Date: Dec 2015
Location: Isfahan,Iran
Posts: 39
Rep Power: 11
fatemehfarshi62 is on a distinguished road
Hi every one!
I have a similar problem too. I have checked all my blockMeshdict file but no result
some of my typical blocks are as following:
hex (104 105 131 130 208 209 235 234) (20 80 10) simpleGrading (
1
(
(0.1 0.15 0.5)
(0.8 0.7 1)
(0.1 0.15 2)
)
2
) //b11lfp

hex (52 53 79 78 26 27 105 104) (20 36 8) simpleGrading (
1
(
(0.125 0.222 0.5)
(0.75 0.556 1)
(0.125 0.222 2)
)
2
) //b11bmc
hex (26 27 105 104 182 183 209 208) (20 36 10) simpleGrading (
1
(
(0.125 0.222 0.5)
(0.75 0.556 1)
(0.125 0.222 2)
)
2
) //b11smc
hex (0 1 27 26 156 157 183 182) (20 80 10) simpleGrading (
1
(
(0.1 0.15 0.5)
(0.8 0.7 1)
(0.1 0.15 2)
)
2
) //b11rfp





hex (105 106 132 131 209 210 236 235) (30 80 10) simpleGrading (
2
(
(0.1 0.15 0.5)
(0.8 0.7 1)
(0.1 0.15 2)
)
2
) //b12lfp


hex (53 54 80 79 27 28 106 105) (30 36 8) simpleGrading (
2
(
(0.125 0.222 0.5)
(0.75 0.556 1)
(0.125 0.222 2)
)
2
) //b12bmc
hex (27 28 106 105 183 184 210 209) (30 36 10) simpleGrading (
2
(
(0.125 0.222 0.5)
(0.75 0.556 1)
(0.125 0.222 2)
)
2
) //b12smc
hex (1 2 28 27 157 158 184 183) (30 80 10) simpleGrading (
2
(
(0.1 0.15 0.5)
(0.8 0.7 1)
(0.1 0.15 2)
)
2
) //b12rfp

but I face this error:

--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'blocks' on line 299 and ending at line 1753"

can any one please please tell me what to do?
thanks!
fatemehfarshi62 is offline   Reply With Quote

Old   June 13, 2016, 03:39
Default
  #9
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Quote:
--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'blocks' on line 299 and ending at line 1753"
it usually happens when the file misses ) or } or ] or ;
check them
Adolf likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   June 14, 2016, 01:26
Default
  #10
Member
 
Fatemeh
Join Date: Dec 2015
Location: Isfahan,Iran
Posts: 39
Rep Power: 11
fatemehfarshi62 is on a distinguished road
Dear Dr. Samkhaniani,
Thanks a lot for you kind reply. I have checked my file several times but no result
I have attached my blockMesh file. Would you please please take a look at it?
thanks again and again and best regards.
Attached Files
File Type: doc blockMeshDict.doc (151.0 KB, 6 views)
fatemehfarshi62 is offline   Reply With Quote

Old   June 14, 2016, 04:04
Default
  #11
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
add the whole case file here
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   April 19, 2018, 04:16
Default
  #12
New Member
 
AliG
Join Date: Mar 2018
Location: San Francisco
Posts: 6
Rep Power: 8
axjjienn is on a distinguished road
Check that all your boundary definitions have spaces between the scalar or vector values...I have had that problem before.
axjjienn is offline   Reply With Quote

Old   May 21, 2018, 22:16
Default i have same problem,can anyone help me?
  #13
New Member
 
zein elserfy
Join Date: May 2018
Posts: 25
Rep Power: 8
zeinelserfy is on a distinguished road
Create time

Create mesh for time = 0


SIMPLE: convergence criteria
field p tolerance 1e-05
field U tolerance 1e-05
field nuTilda tolerance 1e-05

Reading field p



--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'exit*' on line 29 and ending at line 57"

file: /home/zels496/OpenFOAM-in-Box-18.02/OpenFOAM-dev/tutorials/incompressible/simpleFoam/airFoil2D/airfoiltry/0/p at line 57.

From function void Foam:rimitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 189.

FOAM exiting
----------------------------------------------------------------------------------------------------------------------
that is the error message ,the p file is shown below
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type freestreamPressure;
}
exit
{
type freestreamPressure;
}
top
{
type freestreamPressure;
}
bottom
{
type freestreamPressure;
}
aerofoil
{
type zeroGradient;
}
front
{
type empty;
}
back
{
type empty;
}
}
zeinelserfy is offline   Reply With Quote

Old   July 17, 2021, 21:24
Unhappy same error with "blocks"
  #14
New Member
 
Lauren Meaders
Join Date: Jul 2021
Posts: 1
Rep Power: 0
lmeaders is on a distinguished road
I get the following error when I attempt to run my blockMeshDict file. Please let me know if you see any bugs in my code. I made sure there was a space between simpleGrading and (





Please note that that the shape I am creating is a square cylinder within a rectangular wind tunnel. I have sliced it in half along the x axis as it is symmetric so i am only modeling the upper half.



Creating block mesh from
"/home/lmeaders/OpenFOAM/lmeaders-7/run/project/cavity/squarecyl/system/blockMeshDict"


--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'blocks' on line 75 and ending at line 171"

file: /home/lmeaders/OpenFOAM/lmeaders-7/run/project/cavity/squarecyl/system/blockMeshDict at line 171.

From function void Foam:rimitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 185.

FOAM exiting




My code:







/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.01;

vertices
(

// botttom left block -0.5<z<0.5
(-25 0 0.5) // v0
(-1 0 0.5)// v1
(-1 0.5 0.5) // v2
(-25 0.5 0.5) //v3

(-25 0 -0.5) // v12
(-1 0 -0.5)// v13
(-1 0.5 -0.5) // v14
(-25 0.5 -0.5) //v15

// Top Left block
// v3 v2
(-1 10 0.5) // v4
(-25 10 0.5) //v5
// v15 v14
(-1 10 -0.5) // v16
(-25 10 -0.5) //v17

// center block
// v2
(1 0.5 0.5) // v9
(1 10 0.5) // v11
// v4

// v14
(1 0.5 -0.5) // v21
(1 10 -0.5) // v23
// v16

// bottom right
(1 0 0.5) // v6
(65 0 0.5) // v7
(65 0.5 0.5) // v8
// v9

(1 0 -0.5) // v18
(65 0 -0.5) // v19
(65 0.5 -0.5) // v20
// v21

// top right
// v9 v8
(65 10 0.5) // v10
// v 11

// v21 v20
(65 10 -0.5) // v22
// v23
);


blocks
(

// bottom left
hex(0 1 2 3 12 13 14 15) (60 30 1) simpleGrading (1 1 1)

// top left
hex(3 2 4 5 15 14 16 17) (60 30 1) simpleGrading (1 1 1)

// center
hex(2 9 11 4 14 21 23 16) (60 30 1) simpleGrading (1 1 1)

// bottom right
hex(6 7 8 9 18 19 20 21) (60 30 1) simpleGrading (1 1 1)

// top right
hex(9 8 10 11 21 20 22 23) (60 30 1) simpleGrading (1 1 1)

);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 3 15 12)
(3 5 17 15)
);
}

outlet
{
type patch;
faces
(
(7 8 10 19)
(8 10 22 20)
);
}

wall
{
type wall;
faces
(
(5 4 16 17)
(4 11 23 16)
(11 10 22 23)
(0 1 13 12)
(6 7 19 18)
);
}

obstacle
{
type wall;
faces
(
(2 14 13 1)
(14 21 9 2)
(18 6 9 21)
);
}

frontAndBack
{
type empty;
faces
(
(0 1 2 3)
(3 2 4 5)
(2 9 11 4)
(6 7 8 9)
(9 8 10 11)

(12 13 14 15)
(15 14 16 17)
(14 21 23 16)
(18 19 20 21)
(21 20 22 23)
);
}
);

mergePatchPairs
(
);


// ************************************************** *********************** //
lmeaders is offline   Reply With Quote

Old   July 18, 2021, 02:52
Default
  #15
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You need a space between hex and ( .
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   September 8, 2022, 06:44
Default ill defined primitiveEntry
  #16
New Member
 
anonymous
Join Date: Jul 2022
Posts: 1
Rep Power: 0
Quincy is on a distinguished road
Dear foamers please i need your help. i am trying to renumber a mesh around an airfoil. i used gmsh. after checking the mesh on the terminal, its ok. as i try to renumber the mesh in openfoam, i get the following message.


--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'airfoil' on line 45 and ending at line 63"

file: /home/quincy/Desktop/openfoamtuto/0/p at line 63.

From function void Foam:rimitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 168.

FOAM exiting





here also is the p file i am being directed to


/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
left
{
type freestreamPressure;
freestreamValue uniform 0;
}

outlet
{
type freestreamPressure;
freestreamValue uniform 0;
}

top
{
type zeroGradient;
}

bottom
{
type zeroGradient;
}

airfoil surface
{
type zeroGradient;
}

front
{
type empty;
}

back
{
type empty;
}
}

// ************************************************** *********************** //
Quincy is offline   Reply With Quote

Old   September 8, 2022, 07:11
Default
  #17
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi,

I think your problem is related to this:

Code:
airfoil surface
{
type zeroGradient;
}
You cannot have whitespaces in a patch name.

Cheers,
Yann
Yann is offline   Reply With Quote

Reply

Tags
blockmesh, boundary file., ill defined


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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 06:58
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
how to give boundary conditions:-calculated type of primitive boundary field suniljain OpenFOAM Running, Solving & CFD 1 March 20, 2010 01:19
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54


All times are GMT -4. The time now is 07:21.