CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   maximum number of iterations exceede (https://www.cfd-online.com/Forums/openfoam-solving/130142-maximum-number-iterations-exceede.html)

Amir A February 20, 2014 07:05

maximum number of iterations exceede
 
hi
i'm trying to solve an openfoam 1.6 case with openfoam 2.1.0.i have been changed every file of this case to compatible with version 2.1.0...finally i could run, but this error appears:
--> FOAM FATAL ERROR:
Maximum number of iterations exceeded

From function specieThermo<Thermo>::T(scalar f, scalar T0, scalar (specieThermo<Thermo>::*F)(const scalar) const, scalar (specieThermo<Thermo>::*dFdT)(const scalar) const) const
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 69.

this is the original fvsolution file in version 1.6:



solvers
{
rho ICCG 1e-06 0;
U BICCG 1e-06 0;
p ICCG 1e-09 0;
Yi BICCG 1e-06 0;
h BICCG 1e-06 0;
k BICCG 1e-06 0;
epsilon BICCG 1e-06 0;
}

PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}


and this is the fvsolution file that i changed it:


solvers
{
rho ICCG 1e-06 0;
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
}
p ICCG 1e-09 0;
Yi BICCG 1e-06 0;
h BICCG 1e-06 0;
k BICCG 1e-06 0;
epsilon BICCG 1e-06 0;
UFinal
{
$U;
}
}

PIMPLE
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}
how can i fix it?
thank u all

RodriguezFatz February 21, 2014 05:54

Your file looks strange. This is how I use PIMPLE:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance        1e-6;
        relTol            1.0e-1;
 
    maxIter        100;   

        smoother        DICGaussSeidel;
   

   

        nPreSweeps      0;
        nPostSweeps      1;
    nFinestSweeps    2;

        cacheAgglomeration true;

        nCellsInCoarsestLevel 50;//10;
        agglomerator    faceAreaPair;
        mergeLevels      1;
    };

    pFinal
    {
        solver          GAMG;
        tolerance        1e-6;
        relTol            1.0e-2;
 
    maxIter        100;   

        smoother        DICGaussSeidel;
   
 
        nPreSweeps      0;
        nPostSweeps      1;
    nFinestSweeps    2;

        cacheAgglomeration true;

        nCellsInCoarsestLevel 50;//10;
        agglomerator    faceAreaPair;
        mergeLevels      1;
    };

    U
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-1;
    maxIter        100;
    };

    UFinal
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-2;
    maxIter        100;
    };

   
    k
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-1;
    maxIter        100;
    };

    kFinal
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-2;
    maxIter        100;
    };

 
    omega
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-1;
    maxIter        100;
    };

    omegaFinal
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance        1e-08;
        relTol          1.0e-2;
    maxIter        100;
    };

}

PISO
{
    nCorrectors    1;
    nNonOrthogonalCorrectors 1;
}

SIMPLE
{
        nNonOrthogonalCorrectors 1;
    residualControl
    {
            p              1e-5;
            U              1e-5;
        k        1e-5;
        omega        1e-5;
    }
}


PIMPLE
{
        nOuterCorrectors    15;
    nCorrectors        1;
    nNonOrthogonalCorrectors 2;
    pRefCell            0;
    pRefValue          0;
    turbOnFinalIterOnly false;
    residualControl
    {
            p
        {
            relTol 1.0e-3;
            tolerance 1.0e-3;
           
        }         
            U
        {
            relTol 1.0e-3;
            tolerance 1.0e-3;
           
        }
        k
        {
            relTol 1e-3;
            tolerance 1.0e-3;
        }     
            omega
        {
            relTol 1e-3;
            tolerance 1.0e-3;
        }
       
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 10;
}


relaxationFactors
{
    fields
    {
        "p.*"          0.3;
        "nuSgs.*"      0.5;
    }
    equations
    {
        "U.*"          0.8;
        "k.*"          0.5;
        "omega.*"      0.5;
    }
}



All times are GMT -4. The time now is 15:22.