/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/

cuttingPlane_ensight
{
    type            surfaces;
    libs            ("libsampling.so");
    writeControl    writeTime; // runTime;
//    writeInterval   $:writeInterval;
//    writeControl    adjustableRunTime; // runTime;
//    writeInterval   $:timeControl.sliceInterval;

    setFormat       ensight;
    surfaceFormat   ensight;
    fields          ( U p );
    formatOptions
    {
        ensight
        {
            format          binary;
            collateTimes    true;
        }
    }
    interpolationScheme cellPoint;
    surfaces
    (
        zNormal_xm
        {
            type            cuttingPlane;
            planeType       pointAndNormal;
            pointAndNormalDict
            {
                point   ( 0 0 $cuttingPlaneHeight );
                normal  (0 0 1);
            }
            interpolate     true;
            triangulate     true;
        }
    );

}


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