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

scale   1e-3;

nCellx 20;
nCelly 1;
nCellz 1;

Nx    $nCellx;
Ny    $nCelly;
Nz    $nCellz;

vertices
(
    (0 0 0)
    (1000 0 0)
    (1000 250 0)
    (0 250 0)
    (0 0 200)
    (1000 0 200)
    (1000 250 200)
    (0 250 200)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) ($Nx $Ny $Nz)
    simpleGrading 
    (
        1
        (
            (20 35 5)    // 20% y-dir, 30% cells, expansion = 4
            (60 30 1)    // 60% y-dir, 40% cells, expansion = 1
            (20 35 0.20) // 20% y-dir, 30% cells, expansion = 0.25 (1/4)
        )
        1
    )
);

edges
(
);

boundary
(
    walls // upper and lower
    {
        type empty;
        faces
        (
            (1 5 4 0)
            (3 7 6 2)
            //(0 3 2 1)
            //(4 5 6 7)
        );
    }
    outlet // sides
    {
        type patch;
        faces
        (
            (2 6 5 1)
        );
    }
    inlet // sides
    {
        type patch;
        faces
        (
            (0 4 7 3)
        );
    }
    frontAndBack
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        );
    }
);

mergePatchPairs
(
);


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