CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] ill defined primitiveEntry starting problem in blockMesh dict (https://www.cfd-online.com/Forums/openfoam-meshing/235131-ill-defined-primitiveentry-starting-problem-blockmesh-dict.html)

Mamun April 2, 2021 08:19

ill defined primitiveEntry starting problem in blockMesh dict
 
1 Attachment(s)
hello everyone,
i am trying to simulate a 2d micro nozzle in open foam, its throat width 20 micrometer with expansion area ratio of 1.7 ( details in the attachment).


so, i tried to create my block Mesh dict with asymmetric of this geometry but i am getting a foam fatal error:


ill defined primitive Entry starting at keyword 'vertices' on line 20 and ending at line 107"




FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1e-06;

vertices
(
(00.00 0.00 -0.033) //0
(50.00 0.00 -0.033) //1
(145.0 0.00 -0.033) //2
(145.0 10.0 -0.033) //3
(145.0 17.0 -0.033) //4
(50.00 10.0 -0.033) //5
(00.00 34.0 -0.033) //6
(00.00 10.0 -0.033) //7
(00.00 0.00 0.033 //8
(50.00 0.00 0.033) //9
(145.0 0.00 0.033) //10
(145.0 10.0 0.033) //11
(145.0 17.0 0.033) //12
(50.00 10.0 0.033) //13
(00.00 34.0 0.033) //14
(00.00 10.0 0.033) //15

);

blocks
(
hex (0 1 5 7 8 9 13 15) channelRegion (150 25 1) simpleGrading (1 1 1)
hex (1 2 3 5 9 10 11 13) channelRegion (300 25 1) simpleGrading (1 1 1)
hex (5 3 4 5 13 11 12 13) channelRegion (150 60 1) simpleGrading (1 1 1)
hex (7 5 5 6 15 13 13 15) channelRegion (150 40 1) simpleGrading (1 1 1)

);

edges
(
);

patches
(
empty
sides
(
(0 1 5 7)
(8 9 13 15)
(1 2 3 5)
(9 10 11 13)
(5 3 4 5)
(13 11 12 13)
(7 5 5 6)
(15 13 13 15)


)
symmetry
symmetry
(
(0 1 9 8)
(1 2 10 9)

)

wall
walls
(
(6 5 13 14)
(5 4 12 13)

)

patch
inlet
(
(0 8 15 7)
(7 15 14 6)
)

patch
outlet
(
(2 10 11 3)
(3 11 12 4)
)
);

mergePatchPairs
(
);


// ************************************************** *********************** //

Yann April 2, 2021 08:59

Most of the time this error is related to a typo.

In your case, there is a closing bracket missing here:


Code:

(00.00 0.00  0.033        //8

Cheers,
Yann

Mamun April 3, 2021 05:24

blockMesh dict
 
--> FOAM FATAL ERROR:
face 0 in patch 2 does not have neighbor cell face: 4(6 5 13 14)


after closing the bracket it's okay. but how to solve this one?


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