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

convertToMeters 1.0;

vertices
(
    (0 0 0)
    (4 0 0)
    (4 1 0)
    (0 1 0)
    (0 0 1)
    (4 0 1)
    (4 1 1)
    (0 1 1)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (80 20 20) simpleGrading (1 1 1)
);

edges ();

boundary
(
    inlet
    {
        type patch;
        faces ((0 3 7 4));
    }
    outlet
    {
        type patch;
        faces ((1 5 6 2));
    }
    walls
    {
        type wall;
        faces
        (
            (0 1 2 3)
            (4 7 6 5)
            (0 4 5 1)
            (3 2 6 7)
        );
    }
);

mergePatchPairs ();