/*--------------------------------*- 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
{
    "(rho|rhoFinal)"
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0;
    }

    p_rgh
    {
        solver          GAMG;
        smoother  	GaussSeidel;
        tolerance       1e-7;
        relTol          0.1;      
    }

    ph_rgh
    {
        $p_rgh;     
    }

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

    phie
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-7;
        relTol          0.01;
    }

    phieFinal
    {
        $phie;
        relTol          0;
    }

    "(U|h|C)"
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-7;
        relTol          0.1;
    }

    "(U|h|C)Final"
    {
        $U;
        relTol          0;
    }
}

PIMPLE
{
    hydrostaticInitialisation false;
    nHydrostaticCorrectors 10;

    momentumPredictor yes;
    nOuterCorrectors 1;
    nCorrectors     2;
    nNonOrthogonalCorrectors 0;
    
    pRefCell     0;
    pRefValue    0;

    phieRefCell     0;
    phieRefValue    0;
}

relaxationFactors
{
    fields
    {
        p_rgh     0.7; 
    }
    equations
    {
        U     0.3;
	h     0.3;
    }
}


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