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

application     pimpleFoam;

commsType nomBlocking;

startFrom       latestTime;

latestTime      0;

stopAt          endTime;

endTime         1;

adjustTimeStep  yes;

deltaT          5e-4;

maxCo           6;

writeControl    adjustable;

writeInterval   0.1;

purgeWrite      2;

writeFormat     binary;

writePrecision  12;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

libs
(
    "SSGLRROmega.so"
    "SSGLRROmegaGamma.so"
    "SSGLRROmegaGammaCF.so"
);

// Functions **************************************************************************

functions
{
    #includeFunc wallShearStress
    #includeFunc vorticity
    residuals
    {
        type            residuals;
        functionObjectLibs ("libutilityFunctionObjects.so");
        enabled         true;
        outputControl   timeStep;
        outputInterval  1;

        fields
        (
            p
            U
            k
            omega
    	    ReThetat
    	    gammaInt
        );
    }       

    forces
    {
        type                forces;
        libs                (forces);
        writeControl        timeStep;
        writeInterval       1;
        patches             (Body);
        rho                 rhoInf;
        p                   p;
        U                   U;
        log                 true;
        rhoInf              1;
        CofR                (0 0 0);
    }

}

OptimisationSwitches
{


    //- Parallel IO file handler
    // uncollated (default), collated or masterUncollated
    fileHandler collated;

    //- collated: thread buffer size for queued file writes.
    // If set to 0 or not sufficient for the file size threading is not used.
    // Default: 2e9
    maxThreadFileBufferSize 2e9;

    //- masterUncollated: non-blocking buffer size.
    // If the file exceeds this buffer size scheduled transfer is used.
    // Default: 2e9
    maxMasterFileBufferSize 2e9;
}


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