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

backgroundMesh
{
    length  0.02;
    rA     0.01905;
    lengthCells 20;
    rAcells 40;
}

convertToMeters 1;

vertices
(
    (                      0                   0 -1)
    ($!backgroundMesh/length                   0 -1)
    (                      0 $!backgroundMesh/rA -1)
    ($!backgroundMesh/length $!backgroundMesh/rA -1)

    (                      0                   0  0)
    ($!backgroundMesh/length                   0  0)
    (                      0 $!backgroundMesh/rA  0)
    ($!backgroundMesh/length $!backgroundMesh/rA  0)
);

blocks
(
    hex (0 1 3 2 4 5 7 6)
    ($!backgroundMesh/lengthCells $!backgroundMesh/rAcells 1)
    simpleGrading (1 0.5 1)

);

edges
(
);

boundary
(
    inlet
    {
        type mappedPatch;
        sampleMode      nearestPatchFace;
        sampleRegion    region0;
        samplePatch     outlet;
        offset          ($!backgroundMesh/length 0 0);
        faces
        (
            (0 4 6 2)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (1 5 7 3)
        );
    }
    front
    {
        type symmetry;
        faces
        (
            (4 5  7 6)
        );
    }
    back
    {
        type symmetry;
        faces
        (
            (0 1 3 2)
        );
    }
    walls
    {
        type wall;
        faces
        (
            (3 2  6  7)
            (1 0  4  5)
        );
    }
);

mergePatchPairs
(
);

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