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

application     pimpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         150;

deltaT          0.001;

writeControl    runTime;

writeInterval   5;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxCo           1;

maxDeltaT       0.1;

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 false;

        // Velocity field name
        velocityName "U";

        // Simulation time after which the LCS computation should start - (default: simulation startTime)
        lcsStartTime 30;

         // LCS integration time length
        lcsIntegrationTime 16;

        // LCS output and flow map sub-step interval in s - (default: simulation write time intervall)
        lcsSubStepWriteIntervall 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  on;
            auxGrid         off;
        }
    }
}