/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM:  The Open Source CFD Toolbox
   \\    /   O peration     | Version:   OpenFOAM-9 (f8d11b031) (openfoam.org)
    \\  /    A nd           | Upstream:  A Wikki Brasil project (wikki.com.br)
     \\/     M anipulation  | Version:   dev
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
	"alpha.*"
    {
        nAlphaCorr      1;
        nAlphaSubCycles 1;
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-8;
        minIter         1;
        relTol          0;
    }
    
    p_rgh
    {
        solver           PCG;
        preconditioner
        {
            preconditioner          GAMG;
            smoother                FDIC;
            cacheAgglomeration      true;
            nCellsInCoarsestLevel   10;
            agglomerator            faceAreaPair;
            mergeLevels             1;

        }
        tolerance        1e-08;
        relTol           0.1;
        minIter          1;
        maxIter          20;
    }

    p_rghFinal
    {
        $p_rgh
        tolerance        1e-08;
        relTol           0;
    }

    "rho.*"
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       0;
        relTol          0;
    }

    U
    {
        solver              PBiCG;
        preconditioner      DILU;
        tolerance           1.e-10;
        relTol              0.001;
    }
    UFinal
    {
        $U;
        relTol              0;
    }
    h
    {
        solver           PBiCG;
        preconditioner   DILU;
        tolerance        1.e-09;
        relTol           0.01;
        minIter          0;
        maxIter          0;
    }
    hFinal
    {
        $h;
    }

}

PIMPLE
{
    faceMomentum                no;
    fluidStaticInitialisation   no;

    nFluidStaticCorrectors      5;
    nOuterCorrectors            5;  // máximo de iterações do acoplamento
    nCorrectors                 1;
    nNonOrthogonalCorrectors    0;

    outerCorrectorResidualControl
    {
        p_rgh
        {
            tolerance   1e-03;
            relTol      0;
        }
    }
}

relaxationFactors
{
    fields
    {
        beta            0.9;
        betaFinal       0.9;
        p_rgh           0.9;
        p_rghFinal      1;
        U               0.5;
        UFinal          0.5;
    }
    equations
    {
        U               0.5;
    }
}

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