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

cell_count {{{cell_count}}};

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

blocks
(
    hex (0 1 3 2 6 7 9 8) (1 $cell_count 1) simpleGrading (1 1.0 1)
    hex (2 3 5 4 8 9 11 10) (1 $cell_count 1) simpleGrading (1 1.0 1)
);

edges
(
);

boundary
(
    bottomWall
    {
        type            wall;
        faces           ((0 1 7 6));
    }
    topWall
    {
        type            wall;
        faces           ((4 10 11 5));
    }

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

    inout1_half0
    {
        type            cyclic;
        neighbourPatch  inout1_half1;
        faces           ((1 3 9 7));
    }
    inout1_half1
    {
        type            cyclic;
        neighbourPatch  inout1_half0;
        faces           ((0 6 8 2));
    }

    inout2_half0
    {
        type            cyclic;
        neighbourPatch  inout2_half1;
        faces           ((3 5 11 9));
    }
    inout2_half1
    {
        type            cyclic;
        neighbourPatch  inout2_half0;
        faces           ((2 8 10 4));
    }
);

mergePatchPairs
(
);

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