/*--------------------------------*- 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      topoSetDict;
}

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

actions
(
    // inlet patch generation
    // inlet70 patch from blockMeshDict
    {
        name    inlet30;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            patch "inlet70";
        }
    }

    // cutting volume for inlet30
    {
        name    inlet30Cells;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (-0.0005 -0.0005 -1) (0.0005 -0.00015985 0.01);
        }
    }

    // cutting surfaces for inlet30
    {
        name    inlet30Faces;
        type    faceSet;
        action  new;
        source  cellToFace;
        sourceInfo
        {
            set        inlet30Cells;
            option    all;
        }
    }

    // temporary inlet70 patch clone
    {
        name    inlet30Patch;
        type    faceSet;
        action  new;
        source  faceToFace;
        sourceInfo
        {
            set "inlet30";
        }
    }

    // cutting temporary inlet70 patch clone
    {
        name    inlet30Patch;
        type    faceSet;
        action  delete;
        source  faceToFace;
        sourceInfo
        {
            set "inlet30Faces";
        }
    }

    // cutting final inlet patch
    {
        name    inlet30;
        type    faceSet;
        action  delete;
        source  faceToFace;
        sourceInfo
        {
            set "inlet30Patch";
        }
    }
);

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