/*--------------------------------*- 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|cellDisplacementFinal)"
    {
        solver          PCG;
        preconditioner  DIC;

        tolerance       1e-6;
        relTol          0;
        maxIter         100;
    }

    "(rho)"
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-6;
        relTol          0.1;
    }

    "(rho)Final"
    {
        $rho;
        tolerance       1e-6; //-11
        relTol          0;
    }

    p
    {
        solver          PBiCGStab;
        //smoother        symGaussSeidel;
        preconditioner  DIC;
        tolerance       1e-5;
        relTol          0.01;
    }

    pFinal
    {
        $p;
        relTol          0;
    }

    pcorr
    {
        $pFinal;
    }

    pcorrFinal
    {
        $pcorr;
        relTol          0;
    }

    "(U|k|epsilon)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-5;  //-6
        relTol          0;
    }

    "(U|k|epsilon)Final"
    {
        $U;
        tolerance       1e-5;
        relTol          0;
    }
     e
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-6;
        relTol          0;
        maxIter         500;
    }
    eFinal
    {
        $e;
        relTol          0;
    }
}

PIMPLE
{
    momentumPredictor  false;
    nOuterCorrectors    30; //3;
    nCorrectors         80; //4;
    nNonOrthogonalCorrectors 5; //1;
    consistent      true;
    
     energyResidualControl
    {
        e               1e-9;
        p               1e-6;
    }
    
    energyCorrectionModel
    {
        type            cyclicEnergy;
        beta            0.05;    // Energy conservation factor
    }
}

relaxationFactors
{
   fields
   {
   }
   equations
   {
       //h           0.7;
       ".*"             0.9;
   }
}
// ************************************************************************* //
