ill defined primitive entry 'boundary'
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. |
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 It should be something like this (in bold are the lines that were added): Code:
boundary Best regards, Bruno |
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++ -*----------------------------------*\ 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::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #2 Foam::polyMesh::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::polyMesh::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::polyMesh::polyMesh(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 |
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 Best regards, Bruno |
:D 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. :D |
ill defined primitiveEntry at boundary
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 Code:
esi-comp@esicomp01:~/OpenFOAM/dhaval222/run/SteadyState/TestCase16part$ blockMesh Can I please get some help with this error? May be a second eye.:confused: Thanks in advance! Regards, Dhaval |
Hey guys,
Got it. :D 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 |
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! |
Quote:
check them :) |
1 Attachment(s)
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. |
add the whole case file here
|
Check that all your boundary definitions have spaces between the scalar or vector values...I have had that problem before.
|
i have same problem,can anyone help me?
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::primitiveEntry::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; } } |
same error with "blocks"
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 (
:confused::confused::confused: 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::primitiveEntry::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 ( ); // ************************************************** *********************** // |
You need a space between hex and ( .
|
ill defined primitiveEntry
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::primitiveEntry::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; } } // ************************************************** *********************** // |
Hi,
I think your problem is related to this: Code:
airfoil surface Cheers, Yann |
All times are GMT -4. The time now is 11:42. |