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

solvers
{
    p
    {
        solver           GAMG;
        smoother         GaussSeidel;
        tolerance        2e-6;
        relTol           0.01;
    }
	
	pFinal
	{
		$p;
		relTol 			0;
	}

    "(U|tracer)"
    {
        solver          PBiCG; //PBiCGStab;
        preconditioner  DILU;
		//solver			smoothSolver;
		//smoother 		symGaussSeidel;
        tolerance       2e-06;
        relTol          0.1;
    }
	
	"(U|tracer)Final"
	{
		$U;
		relTol 			0;
	}
	
	Phi
    {
        solver          GAMG;
        smoother        DIC;

        tolerance       2e-06;
        relTol          0.01;
    }

}

SIMPLE
{
	residualControl
	{
		p 				2e-6;
		U 				2e-6;
	}
    nNonOrthogonalCorrectors 2;
    pRefCell 			0;
	pRefValue 			0;
}

PIMPLE
{
	residualControl
	{
		p 				2e-6;
		U 				2e-6;
	}
    nNonOrthogonalCorrectors 0;
	nOuterCorrectors        20;
    nCorrectors              2;
}

PISO
{
    nCorrectors              2;
	nNonOrthogonalCorrectors 4;
	pRefCell 			0;
	pRefValue 			0;
}

potentialFlow
{
	nNonOrthogonalCorrectors 10;
}

relaxationFactors
{
	fields
	{
		pRefCell		0.3;
		p 				0.3;
	}
	equations
	{
		U				0.3;
	}
}

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