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

solvers
{

    p
    {
        solver          PBiCGStab;
        tolerance       1e-6;
        relTol          0.01;
      preconditioner  DILU;
        minIter         1;
    }

// p
 //   {
 //      solver         smoothSolver;
  //      tolerance       1e-6;
 //       relTol          0.01;
  //    smoother        DILUGaussSeidel;
  //      minIter         1;
 //   }

    pFinal
    {
        $p;
        relTol          0;
    }

    "(rho|U|e|h|k|nuTilda)"
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-7;
        relTol          0.1;
       // minIter         1;
    }

    "(rho|U|h|e|k|nuTilda)Final"
    {
        $U;
        relTol          0;
    }
}

PIMPLE
{
    momentumPredictor yes;
    nOuterCorrectors 100;
    nCorrectors     2;
    nNonOrthogonalCorrectors 1;
    turbOnFinalIterOnly yes;
      transonic           yes;


    outerCorrectorResidualControl
    {
        U
        {
            tolerance 1.0e-5;
            relTol   0; 
        }
        p
        {
           tolerance 5.0e-4;
            relTol   0;  
        }
    }
}

relaxationFactors
{
    fields
  {
     p 0.3;
    rho 0.1;
   }  

     equations
    {
       ".*" 0.3;
    }
}

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