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 at keyword 'boundary' (https://www.cfd-online.com/Forums/openfoam-meshing/233293-ill-defined-primitiveentry-starting-keyword-boundary.html)

PSander January 20, 2021 09:58

ill defined primitiveEntry starting at keyword 'boundary'
 
I have a simple blockMesh, but when I run it I get the error message "ill defined primitiveEntry starting at keyword 'boundary'".
I checked already for missing brackets or spaces, and compared it to tutorials, but I dont find a mistake.

Could you please tell me what did I do wrong?
Thanl you very much!


Code:

/*--------------------------------*- C++ -*---------------------------------/*--------------------------------*- 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 1;



vertices
(
    (0.5 0 0)                        //0        z0
    (1 0 0)                        //1
    (2 0 0)                        //2
    (2 0.707107 0)                //3
    (0.707107 0.707107 0)        //4
    (0.353553 0.353553 0)        //5
    (2 2 0)                        //6
    (0.707107 2 0)                //7
    (0 2 0)                        //8
    (0 1 0)                        //9
    (0 0.5 0)                        //10
    (-0.353553 0.353553 0)        //11
    (-0.5 0 0)
    (-1 0 0)
    (-2 0 0)                        //14
    (-2 0.707107 0)
    (-0.707107 0.707107 0)        //16
    (-2 2 0)
    (-0.707107 2 0)                //18

    ( 0 0 0)                        //dummy

    (0.5 0 10)                        //20        z+
    (1 0 10)                        //21
    (2 0 10)                        //22
    (2 0.707 10)                //23
    (0.707107 0.707107 10)        //24
    (0.353553 0.353553 10)        //25
    (2 2 10)                        //26
    (0.707107 2 10)                //27
    (0 2 10)
    (0 1 10)                        //29
    (0 0.5 10)
    (-0.353553 0.353553 10)        //31
    (-0.5 0 10)
    (-1 0 10)
    (-2 0 10)                        //34
    (-2 0.707107 10)
    (-0.707107 0.707107 10)        //36
    (-2 2 10)
    (-0.707107 2 10)                //38
);

blocks
(
hex (5 4 9 10 25 24 29 30) soil (1 1 1) simpleGrading (1 1 1)
hex (0 1 4 5 20 21 24 25) soil (1 1 1) simpleGrading (1 1 1)
hex (1 2 3 4 21 22 23 24) soil (1 1 1) simpleGrading (1 1 1)
hex (4 3 6 7 24 23 26 27) soil (1 1 1) simpleGrading (1 1 1)
hex (9 4 7 8 29 24 27 28) soil (1 1 1) simpleGrading (1 1 1)
hex (16 11 10 9 36 31 30 29) soil (1 1 1) simpleGrading (1 1 1)
hex (13 12 11 16 33 32 31 36) soil (1 1 1) simpleGrading (1 1 1)
hex (14 13 16 15 34 33 36 35) soil (1 1 1) simpleGrading (1 1 1)
hex (15 16 18 17 35 36 38 37) soil (1 1 1) simpleGrading (1 1 1)
hex (16 9 8 18 36 29 28 38) soil (1 1 1) simpleGrading (1 1 1)
);




edges
(
arc 0 5 (0.469846 0.171010 0)
arc 5 10 (0.171010 0.469846 0)
arc 1 4 (0.939693 0.342020 0)
arc 4 9 (0.342020 0.939693 0)
arc 20 25 (0.469846 0.171010 10)
arc 25 30 (0.171010 0.469846 10)
arc 21 24 (0.939693 0.342020 10)
arc 24 29 (0.342020 0.939693 10)
arc 12 11 (‐0.46984 0.171010 0)
arc 11 10 (‐0.17101 0.469846 0)
arc 13 16 (‐0.93969 0.342020 0)
arc 16 9 (‐0.34202 0.939693 0)
arc 32 31 (‐0.46985 0.171010 10)
arc 31 30 (‐0.17101 0.469846 10)
arc 33 36 (‐0.939693 0.34202 10)
arc 36 29 (‐0.34202 0.939693 10)
);



boundary
(

    up
    {
        type patch;
        faces
        (
        (8 7 28 27)
        (7 6 27 26)
        (18 8 38 28)
        (17 18 37 38)
        );
    }

    down
    {
        type patch;
        faces
        (
        (0 1 20 21)
        (1 2 21 22)
        (5 0 25 20)
        (10 5 30 25)
        (11 10 31 30)
        (12 11 32 31)
        (13 12 33 32)
        (14 13 34 33)
        );
    }

    left
    {
        type patch;
        faces
        (
        (17 15 37 35)
        (15 14 35 34)
        );
    }

    right
    {
        type patch;
        faces
        (
        (6 3 26 23)
        (3 2 33 32)
        );
    }

mergePatchPairs
(
);

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


petros January 20, 2021 10:31

Hello,

You missed a parenthesis.

Quote:

Originally Posted by PSander (Post 793857)

Code:

boundary
(

    up
    {
        type patch;
        faces
        (
        (8 7 28 27)
        (7 6 27 26)
        (18 8 38 28)
        (17 18 37 38)
        );
    }

    down
    {
        type patch;
        faces
        (
        (0 1 20 21)
        (1 2 21 22)
        (5 0 25 20)
        (10 5 30 25)
        (11 10 31 30)
        (12 11 32 31)
        (13 12 33 32)
        (14 13 34 33)
        );
    }

    left
    {
        type patch;
        faces
        (
        (17 15 37 35)
        (15 14 35 34)
        );
    }

    right
    {
        type patch;
        faces
        (
        (6 3 26 23)
        (3 2 33 32)
        );
    }
);



PSander January 20, 2021 10:55

Quote:

Originally Posted by petros (Post 793864)
Hello,

You missed a parenthesis.



Thank you very much.


All times are GMT -4. The time now is 19:30.