/*--------------------------------*- 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-3;
        relTol          0.01;
	minIter		5;
    }

    pFinal
   {
	$p;
 	tolerance	1e-3;
	relTol		0.01;
   }

    "(U|k|gammaInt)"
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        nSweeps         5;
        tolerance       1e-06;
        relTol          0.01;
    }

    "(U|k|gammaInt)Final"
    {
        $U;
	tolerance 	1e-08;
        relTol          0.01;
    }

    "(R|omega)"
    {
	$U;
	tolerance	1e-6;
	relTol		0.01;
    }

    "(R|omega)Final"
    {	
	$U;
	tolerance	1e-8;
	relTol		0.01;
    }
}

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

	consistent		yes;

	residualControl
	{	
	"U|k|gammaInt|R|omega"
	{
		tolerance 1e-4;
		relTol	0.01;
	}
	p
	{
		tolerance 1e-3;
		relTol 0.01;
	}
	}

	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;
   }


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