Skip to content
Snippets Groups Projects
controlDict 1.88 KiB
Newer Older
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  plus                                  |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
Andrew Heather's avatar
Andrew Heather committed
    location    "system";
henry's avatar
henry committed
    object      controlDict.1st;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

henry's avatar
henry committed
application     engineFoam;
henry's avatar
henry committed

startFrom       startTime;

startTime       -180;

stopAt          endTime;


deltaT          0.25;

writeControl    runTime;

writeInterval   5;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;


timeFormat      general;

timePrecision   6;

Andrew Heather's avatar
Andrew Heather committed
adjustTimeStep  no;

maxCo           0.2;
Andrew Heather's avatar
Andrew Heather committed
maxDeltaT       1;
        type            coded;
        name            setDeltaT;
        #{
            const Time& runTime = mesh().time();
            if (runTime.timeToUserTime(runTime.value()) >= -15.0)
            {
                const_cast<Time&>(runTime).setDeltaT
                (
                    runTime.userTimeToTime(0.025)
                );
            }
        #};
    }

    fieldMinMax
    {
        type            fieldMinMax;
        libs            ("libfieldFunctionObjects.so");
        fields          (p);
    }
// ************************************************************************* //