/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM:  The Open Source CFD Toolbox
   \\    /   O peration     | Version:   OpenFOAM-9 (f8d11b031) (openfoam.org)
    \\  /    A nd           | Upstream:  A Wikki Brasil project (wikki.com.br)
     \\/     M anipulation  | Version:   dev
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     upstreamFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         15768000;

deltaT          3600;

writeControl    adjustableRunTime;

writeInterval   3153600;

purgeWrite      0;

writeFormat     ascii;

writePrecision  8;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  yes;

maxDeltaT       86400;

functions
{
    p_rghc.region0
    {
        type            scale;
        libs            ( "libfieldFunctionObjects.so" );
        field           p_rgh;
        result          p_rghc;
        scale           1.01972e-05;
        writeControl    writeTime;
        region          region0;
    }
    pc.region0
    {
        type            scale;
        libs            ( "libfieldFunctionObjects.so" );
        field           p;
        result          pc;
        scale           1.01972e-05;
        writeControl    writeTime;
        region          region0;
    }
    noWriteObjects0
    {
        type            noWriteObjects;
        libs            ( "libfunctionObjectsAddOn.so" );
        writeControl    writeTime;
        region          region0;
        objects         ( T.oil reserv buoyancy invD S.oil rDeltaT rDeltaTf porosity );
    }
}

timeStepControl localCo;

localCoCoeffs
{
    reservCtrl      no;
    maxCo           0.8;
}


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