/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     4.1                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     icoFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1.1;

deltaT          0.005;

writeControl    runTime;

writeInterval   0.1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
    lagrangianCoherentStructures
    {
        type            LCS;
        // Where to load it from (if not already in solver)
        libs ("libLCSFunctionObject.so");

        // Specifies if the main mesh is a static rectlinear Mesh
        // (if yes the main cfd mesh is also used for the lcs computations)
        // (if not a rectlinear LCS blockMesh has to be created under constant/LCS/polyMesh beforehand)
        isStaticRectLinear true;

        // Velocity field name
        velocityName "U";

        // Start time of LCS diagnostic - (default: startTime of simulation)
        lcsStartTime 0;

        // End time of LCS diagnostic - (default: endTime of simulation)
        lcsEndTime 1.1;

        // LCS integration time length
        lcsIntegrationTime 1;

        // LCS output interval in s
        lcsWriteTimeIntervall 0.1;

        // Switches for FTLE field evaluation
        // - Forward time (repelling) FTLE field - (default: true/on)
        ftleFwd    on;
        // - Backward time (attracting) FTLE field - (default: false/off)
        ftleBkwd   on;

        // Specifies addition or removal of grid points for the diagnostic calculation
        // - 0 LCS diagnostic will be computed on same grid (is default)
        // - 1, 2, ... Diagnostic will be computed on a grid with resolution times more grid points
        // - -1, -2, ... Diagnostic will be computed on a grid with resolution times less grid points
        resolution 2;

        lcsCFL          0.5;

        integrator      rk3;

        interpolator    linear;


        // LCS Options
        lcsOptions
        {
            synctimer       off;
            debug           off;
            writeFlowmap    off;
            writeBCFlags    off;
            incompressible  off;
            auxGrid         off;
        }
    }
}


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