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

// Square plate of side 0.1 m in 3 x 3 blocks, one cell thick in z. The middle
// block is the cell zone heater. 21 cells per block put a cell center at the
// middle of the plate.

convertToMeters 0.1;

vertices
(
    (0 0 0)                 (0.333333333333333 0 0)
    (0.666666666666667 0 0) (1 0 0)
    (0 0.333333333333333 0)                 (0.333333333333333 0.333333333333333 0)
    (0.666666666666667 0.333333333333333 0) (1 0.333333333333333 0)
    (0 0.666666666666667 0)                 (0.333333333333333 0.666666666666667 0)
    (0.666666666666667 0.666666666666667 0) (1 0.666666666666667 0)
    (0 1 0)                 (0.333333333333333 1 0)
    (0.666666666666667 1 0) (1 1 0)

    (0 0 0.0166666666666667)                 (0.333333333333333 0 0.0166666666666667)
    (0.666666666666667 0 0.0166666666666667) (1 0 0.0166666666666667)
    (0 0.333333333333333 0.0166666666666667)                 (0.333333333333333 0.333333333333333 0.0166666666666667)
    (0.666666666666667 0.333333333333333 0.0166666666666667) (1 0.333333333333333 0.0166666666666667)
    (0 0.666666666666667 0.0166666666666667)                 (0.333333333333333 0.666666666666667 0.0166666666666667)
    (0.666666666666667 0.666666666666667 0.0166666666666667) (1 0.666666666666667 0.0166666666666667)
    (0 1 0.0166666666666667)                 (0.333333333333333 1 0.0166666666666667)
    (0.666666666666667 1 0.0166666666666667) (1 1 0.0166666666666667)
);

blocks
(
    hex (0 1 5 4 16 17 21 20)          (21 21 1) simpleGrading (1 1 1)
    hex (1 2 6 5 17 18 22 21)          (21 21 1) simpleGrading (1 1 1)
    hex (2 3 7 6 18 19 23 22)          (21 21 1) simpleGrading (1 1 1)

    hex (4 5 9 8 20 21 25 24)          (21 21 1) simpleGrading (1 1 1)
    hex (5 6 10 9 21 22 26 25)  heater (21 21 1) simpleGrading (1 1 1)
    hex (6 7 11 10 22 23 27 26)        (21 21 1) simpleGrading (1 1 1)

    hex (8 9 13 12 24 25 29 28)        (21 21 1) simpleGrading (1 1 1)
    hex (9 10 14 13 25 26 30 29)       (21 21 1) simpleGrading (1 1 1)
    hex (10 11 15 14 26 27 31 30)      (21 21 1) simpleGrading (1 1 1)
);

boundary
(
    edges
    {
        type patch;
        faces
        (
            (0 1 17 16)   (1 2 18 17)   (2 3 19 18)
            (12 28 29 13) (13 29 30 14) (14 30 31 15)
            (0 16 20 4)   (4 20 24 8)   (8 24 28 12)
            (3 7 23 19)   (7 11 27 23)  (11 15 31 27)
        );
    }
);

defaultPatch
{
    name frontAndBack;
    type empty;
}


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