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

solvers
{
    // p
    // {
    //     solver              GAMG;
    //     tolerance           1e-7;
    //     relTol              1e-3;
    //     smoother            GaussSeidel;
    //     cacheAgglomeration  true;
    //     nCellsInCoarsestLevel 20;
    //     agglomerator        faceAreaPair;
    //     mergeLevels         1;
    //     minIter             1;
    // }

    // pFinal
    // {
    //     $p;
    //     relTol              0;
    // }

    p // For debugging
    {
        solver          PBiCGStab;
        preconditioner  DILU;
        tolerance       1e-7;
        relTol          1e-2;
        minIter         1;
        maxIter         200;
    }

    pFinal
    {
        $p;
        relTol          0;
    }

    rho
    {
        solver              PCG;
        preconditioner      DIC;
        tolerance           1e-8;
        relTol              1e-3;
        minIter             1;
    }

    "(U|e|h|he|k|omega)"
    {
        solver              PBiCGStab;
        preconditioner      DILU;
        tolerance           1e-8;
        relTol              1e-3;
        minIter             1;
    }

    "(U|e|h|he|k|omega)Final"
    {
        solver              PBiCGStab;
        preconditioner      DILU;
        tolerance           1e-8;
        relTol              0;
        minIter             1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 1;
    consistent no;
    transonic yes;

    residualControl
    {
        p               1e-5;
        U               1e-5;
        "(e|h|he)"      1e-5;
        k               1e-5;
        omega           1e-5;
    }
}

relaxationFactors
{
    fields
    {
        p       0.05;
        rho     0.2;
    }

    equations
    {
        U       0.15;
        e       0.10;
        h       0.10;
        he      0.10;
        k       0.20;
        omega   0.20;
    }
}

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