/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2312                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    cellDisplacement
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
        //maxIter         10;
    }

    p
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-6;
        relTol          0;

        maxIter         200;
        
        cacheAgglomeration off;
    }
    
    /*p
    {
        solver          GAMG;
        tolerance       1e-07;
        relTol          0.01;
        smoother        GaussSeidel;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 100;
        agglomerator    faceAreaPair;
        mergeLevels     1;
        
        //useAMatrix      false;
    }//added*/
    

    pFinal
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-8;
        relTol          0;
        
        maxIter         200;
        cacheAgglomeration off;
    }
    /*
    pFinal
    {
        $p;
        relTol          0;
        //maxIter         10;
    }*/
    
    pcorr
    {
        $pFinal;
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0.02;
        
        cacheAgglomeration off;
    }
    /*
   pcorr
    {
        $pFinal;
        solver          PCG;
        preconditioner  DIC;
    }*/
    
    pcorrFinal
    {
        $pcorr;
       // relTol          0.1;
        //tolerance       1e-7;
        
        cacheAgglomeration off;
    }    
    /*
    pcorrFinal
    {
        $pcorr;
        relTol          0;
    }*/
    
    

    "(U|k|epsilon|omega)"
    {
        //solver          smoothSolver;
        //smoother        symGaussSeidel;
        
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-8;
        relTol          0;
        
        maxIter         200;
        cacheAgglomeration off;
    }

    "(U|k|epsilon|omega)Final"
    {
        $U;
        tolerance       1e-6;
        relTol          0;
        
        cacheAgglomeration off;
    }
}

PIMPLE
{
    momentumPredictor   true;
    oversetAdjustPhi    true;

    nOuterCorrectors    3;
    nCorrectors         2;
    nNonOrthogonalCorrectors 2;

    massFluxInterpolation true;
    ddtCorr             false;

    turbOnFinalIterOnly false;

    moveMeshOuterCorrectors yes;
    
    pRefPoint (-7.900 0.06 7.900);
    pRefValue 0;
}
/*
PIMPLE
{
    momentumPredictor   true;
    correctPhi          false;
    ddtCorr             true;
    nOuterCorrectors    5;
    nCorrectors         3;
    nNonOrthogonalCorrectors 1;

    pRefPoint (-4.900 0.06 4.900);
    pRefValue 0;
}

residualControl
    {
        "(U|p)"
        {
            relTol          0;
            tolerance       0.001;
        }
    }
*/

relaxationFactors
{
    fields
    {
         ".*"           0.7;
    }
    equations
    {
        ".*"           0.7;
    }
}

fluxRequired
{
    default         no;
    pcorr           ;
    p               ;
}



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