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

scale 0.001;

r1      10;     // small radius
r2      120;    // big radius
halfAngle   2.5;      // angle of disk

Thickness 3.0;    // thickness of disk

x1      #calc "$r1*cos( degToRad($halfAngle) )";
y1      #calc "$r1*sin( degToRad($halfAngle) )";

x2      #calc "$r2*cos( degToRad($halfAngle) )";
y2      #calc "$r2*sin( degToRad($halfAngle) )";

vertices
(
    ($x1 $y1 $Thickness)
    ($x1 #calc "-$y1" $Thickness)
    ($x2 $y2 $Thickness)
    ($x2 #calc "-$y2" $Thickness)

    ($x1 $y1 0)
    ($x1 #calc "-$y1" 0)
    ($x2 $y2 0)
    ($x2 #calc "-$y2" 0)
);

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

edges
(
    arc 0 1 ($r1 0 $Thickness)
    arc 2 3 ($r2 0 $Thickness)
    arc 4 5 ($r1 0 0)
    arc 6 7 ($r2 0 0)
);

boundary
(
    inlet
    {
        type    patch;
        faces
        (
            (0 1 5 4)
        );
    }

    outlet
    {
        type    patch;
        faces
        (
            (2 3 7 6)
        );
    }

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

    symmWalls
    {
        type    symmetry;
        faces
        (
            (1 3 7 5)
            (0 2 6 4)
        );
    }

);

mergePatchPairs
(
);

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