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

solvers
{

    cellDisplacement
    {
        solver          PCG;
        preconditioner  DIC;

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

   
    Phi
    {  
        solver GAMG;
        smoother DIC;
        cacheAgglomeration on;
        agglomerator faceAreaPair;
        nCellsInCoarsestLevel 10;
        mergeLevels 1;

        tolerance 1e-06;
        relTol 0.01;
     }

    p
    {
        solver          PCG;
	preconditioner	DIC;
        tolerance       1e-4;
        relTol          0.1;
	minIter		10;
        //smoother        GaussSeidel;
    }

    pFinal
   {
	$p;
 	//solver GAMG;
	relTol		0.01;
    }

    "(U|k|omega|gammaInt|R)"
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        nSweeps         8;
        tolerance       1e-07;
        relTol          0.1;
    }

    "(U|k|omega|gammaInt|R)Final"
    {
  	$U;
        relTol          0.01;
    }

}

PIMPLE
{
	nNonOrthogonalCorrectors 2;
	nCorrectors 3;
	nOuterCorrectors 3;
	turbOnFinalIterOnly	yes;

        /*residualControl
	{
	   U
	   {
		tolerance    5e-6;
	        relTol	     0.001;
	   }
  	}*/
	consistent		yes;

	momentumPredictor	yes;

}

relaxationFactors
{
	fields
	{
		p	0.6;
		pFinal	1;
	}
	equations
	{
		"U|gammaInt"	0.8;
		"(U|gammaInt)Final"	1;
		R		0.7;
		omega 		0.7;
		RFinal		1;
		omegaFinal	1;
	}
}

// SIMPLE
// {
// 	nNonOrthogonalCorrectors 5;
// }
 
   potentialFlow
   {
    nNonOrthogonalCorrectors 5;
   }


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