/*--------------------------------*- C++ -*----------------------------------*\
  ==  == ====== ====   ====    |
                    \\     ||  | Multiphase Code Repository by HZDR
  ======   //   ||  || ===//   | Website: https://doi.org/10.14278/rodare.767
  ||  ||  //    ||  // || \\   | License: GPL-3.0-or-later
  ==  == ====== ====   ==  ==  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    "alpha.*"
    {
        nCorrectors     1;
        nSubCycles      2;
    }

    p_rgh
    {
        solver          GAMG;
        smoother        DIC;

        tolerance       1e-7;
        relTol          0.01;
    }

    p_rghFinal
    {
        solver          PCG;
        preconditioner
        {
            preconditioner  GAMG;
            smoother        GaussSeidel;

            tolerance       1e-7;
            relTol          0;
            nVcycles        2;
        }
        tolerance       1e-7;
        relTol          0;
        maxIter         50;
    }

    "U.*"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;

        tolerance       1e-5;
        relTol          0;
        minIter         1;
    }

    "yPsi.*"
    {
        solver          PCG;
        preconditioner  none;
        tolerance       1e-10;
        relTol          0;
    }
}

PIMPLE
{
    nOuterCorrectors    1;
    nCorrectors         3;
    nNonOrthogonalCorrectors 0;

    correctPhi          yes;
    correctMeshPhi      no;

    faceMomentum        no;
    VmDdtCorrection     yes;
    dragCorrection      yes;

    pRefCell            0;
    pRefValue           0;
}

relaxationFactors
{
    equations
    {
        ".*"            1;
    }
}

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