CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

maximum number of iterations exceede

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2014, 08:05
Default maximum number of iterations exceede
  #1
New Member
 
Amir A
Join Date: Feb 2014
Posts: 5
Rep Power: 4
Amir A is on a distinguished road
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
Amir A is offline   Reply With Quote

Old   February 21, 2014, 06:54
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,296
Rep Power: 19
RodriguezFatz will become famous soon enough
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;
    }
}
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 08:07
rhoSimplecFoam Mach0.8 no pressure values CFDnewbie147 OpenFOAM Running, Solving & CFD 16 November 23, 2013 06:58
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16


All times are GMT -4. The time now is 01:35.