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

convertToMeters 0.01;

vertices
(
    (-100 -30 0)
    (-100  30 0)
    (-30  30 0)
    (-30  -30 0)
    (-2.1213 -2.1213  0)
    (-2.1213  2.1213  0)
    (-1   2.8284  0)
    (1  2.8284  0)
    (2.1213  2.1213 0)
    (2.1213  -2.1213 0)
    (1 -2.8284 0)
    (-1  -2.8284 0)
    (-10 -30 0)
    (10  -30 0)
    (-10  30 0)
    (10  30 0)
    (30 30  0)
    (30  -30  0)
    (100   -30  0)
    (100  30  0)
    (-100 -30 1)
    (-100  30 1)
    (-30  30 1)
    (-30  -30 1)
    (-2.1213 -2.1213  1)
    (-2.1213  2.1213  1)
    (-1   2.8284  1)
    (1  2.8284  1)
    (2.1213  2.1213 1)
    (2.1213  -2.1213 1)
    (1 -2.8284 1)
    (-1  -2.8284 1)
    (-10 -30 1)
    (10  -30 1)
    (-10  30 1)
    (10  30 1)
    (30 30  1)
    (30  -30  1)
    (100   -30  1)
    (100  30  1)
);

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

edges
(
    arc 4  5 (-3 0 0)
    arc 24 25 (-3 0 1)
    arc 9  8 (3 0 0)
    arc 29 28 (3 0 1)
    arc 7  8 (1.9283 2.2981 0)
    arc 27 28 (1.9283 2.2981 1)
    arc 5  6 (-1.9283 2.2981 0)
    arc 25 26 (-1.9283 2.2981 1)
    arc 4  11 (-1.9283 -2.2981 0)
    arc 24 31 (-1.9283 -2.2981 1)
    arc 10  9 (1.9283 -2.2981 0)
    arc 30 29 (1.9283 -2.2981 1)
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 20 21 1)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (18 19 39 38)
        );
    }

    lower_wall
    {
        type wall;
        faces
        (
            (1 21 22 2)
	    (2 22 34 14)
	    (14 34 35 15)
	    (15 35 36 16)
	    (16 36 39 19)
        );
    }

    upper_wall
    {
        type wall;
        faces
        (

            (0 3 23 20)
	    (3 12 32 23)
            (12 13 33 32)
	    (13 17 37 33)
	    (17 18 38 37)
        );
    }
   
    inlet_2
    {
        type patch;
        faces
        (
            (6 7 27 26)
        );
    }

    inlet_3
    {
        type patch;
        faces
        (
            (11 31 30 10)
        );
    }

    cylinder
    {
        type wall;
        faces
        (
            (5 6 26 25)
	    (27 7 8 28)
	    (28 8 9 29)
	    (29 9 10 30)
	    (4 24 31 11)
	    (5 25 24 4)
        );
    }
);

mergePatchPairs
(
);
// ************************************************************************* //

