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

solvers
{
	    cellDisplacement
    {
        solver          PCG;
        preconditioner  DIC;

        tolerance       1e-08;
        relTol          0;
        maxIter         500;
    }

    p_rbgh
    {
        //solver          GAMG;
        //tolerance       1e-08;
        //relTol          0.000;
        //smoother        DIC;
        //nPreSweeps      0;
        //nPostSweeps     2;
        //nFinestSweeps   2;
        //cacheAgglomeration true;
        //nCellsInCoarsestLevel 100;
        //agglomerator    faceAreaPair;
        //mergeLevels     1;
        
       solver          PBiCGStab;
        preconditioner  DIC;
        tolerance       1e-8;
        relTol          0.0;
        maxIter         1000;

        
    }

    p_rbghFinal
    {
        $p_rbgh;
        tolerance       1e-9;
        relTol          0;
    }

    "(k|epsilon|omega|pa|alphaPlastic)"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-09;
        relTol          0.00001;
    }

    "(kFinal|epsilonFinal|omegaFinal|paFinal|alphaPlasticFinal)"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-09;
        relTol          0;
    }


    alpha.a
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-9;
        relTol          0;
    }
    alpha.aFinal
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-9;
        relTol          0;
    }

    pcorr
    {
        $pFinal;
        solver          PCG;
        preconditioner  DIC;
        tolerance 1e-7;
        relTol 0.0;
    }

    pcorrFinal
    {
        $pcorr;
        relTol          0.0;
        tolerance 1e-9;
    }


}

relaxationFactors
{
    fields
    {
        p_rbgh               0.8;
    }
    equations
    {
        U.a            0.7;
        U.b            0.7;
        //Ua            0.7;
        //Ub            0.7;
        //k             0.9;
        //omega         0.9;
    }
}

PIMPLE
{
    momentumPredictor 0;
    nOuterCorrectors  2;
    nCorrectors    4;
    correctPhi true;
    massFluxInterpolation true;

    nNonOrthogonalCorrectors 6;
    correctAlpha    1;
    nAlphaCorr      1;
    pRefCell        0;
    pRefValue       0;
}
// ************************************************************************* //
