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

internalFacesOnly true;

fields true;

baffles
{
    cyclicFaces1
    {
        type        searchableSurface;
        surface     searchablePlate;
        origin      (5 0 0);
        span        (0 0.5 100);

        owner
        {
            name        porous_half0;
            type        cyclic;
            neighbourPatch porous_half1;

            patchFields
            {
                p_rgh
                {
                    type        porousBafflePressure;
                    patchType   cyclic;
                    D           100;
                    I           50;
                    length      0.1;
                    jump        uniform 0;
                    value       uniform 0;
                }
            }
        }

        neighbour
        {
            name        porous_half1;
            type        cyclic;
            neighbourPatch porous_half0;

            patchFields
            {
                $../../owner/patchFields;
            }
        }
    }
    
    
    cyclicFaces2
    {
        type        searchableSurface;
        surface     searchablePlate;
        origin      (6 0 0);
        span        (0 0.5 100);

        owner
        {
            name        porous_half2;
            type        cyclic;
            neighbourPatch porous_half3;

            patchFields
            {
                p_rgh
                {
                    type        porousBafflePressure;
                    patchType   cyclic;
                    D           100;
                    I           50;
                    length      0.1;
                    jump        uniform 0;
                    value       uniform 0;
                }
            }
        }

        neighbour
        {
            name        porous_half3;
            type        cyclic;
            neighbourPatch porous_half2;

            patchFields
            {
                $../../owner/patchFields;
            }
        }
    }

    cyclicFaces3
    {
        type        searchableSurface;
        surface     searchablePlate;
        origin      (7 0 0);
        span        (0 0.5 100);

        owner
        {
            name        porous_half4;
            type        cyclic;
            neighbourPatch porous_half5;

            patchFields
            {
                p_rgh
                {
                    type        porousBafflePressure;
                    patchType   cyclic;
                    D           100;
                    I           50;
                    length      0.1;
                    jump        uniform 0;
                    value       uniform 0;
                }
            }
        }

        neighbour
        {
            name        porous_half5;
            type        cyclic;
            neighbourPatch porous_half4;

            patchFields
            {
                $../../owner/patchFields;
            }
        }
    }

    cyclicFaces4
    {
        type        searchableSurface;
        surface     searchablePlate;
        origin      (8 0 0);
        span        (0 0.5 100);

        owner
        {
            name        porous_half6;
            type        cyclic;
            neighbourPatch porous_half7;

            patchFields
            {
                p_rgh
                {
                    type        porousBafflePressure;
                    patchType   cyclic;
                    D           100;
                    I           50;
                    length      0.1;
                    jump        uniform 0;
                    value       uniform 0;
                }
            }
        }

        neighbour
        {
            name        porous_half7;
            type        cyclic;
            neighbourPatch porous_half6;

            patchFields
            {
                $../../owner/patchFields;
            }
        }
    }

    cyclicFaces5
    {
        type        searchableSurface;
        surface     searchablePlate;
        origin      (9 0 0);
        span        (0 0.5 100);

        owner
        {
            name        porous_half8;
            type        cyclic;
            neighbourPatch porous_half9;

            patchFields
            {
                p_rgh
                {
                    type        porousBafflePressure;
                    patchType   cyclic;
                    D           100;
                    I           50;
                    length      0.1;
                    jump        uniform 0;
                    value       uniform 0;
                }
            }
        }

        neighbour
        {
            name        porous_half9;
            type        cyclic;
            neighbourPatch porous_half8;

            patchFields
            {
                $../../owner/patchFields;
            }
        }
    }
}



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