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

--> FOAM FATAL ERROR: Maximum number of iterations exceeded

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2014, 12:36
Default
  #21
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by slash89 View Post
Hi all,
i got the same problem. I am using the buoyantSimpleRadiationFoam. The problems is always at the second time step, when solving the G file. Any suggestions to fix this problem?

Thank you,

Best regards
Greetings slash89,

please attach your log file, in this way we can help you much more easily
adambarfi is offline   Reply With Quote

Old   December 5, 2014, 13:05
Default
  #22
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
Here is the log file. I am sorry but i could not upload the file and i don't know why!

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : buoyantSimpleRadiationFoam -parallel
Date : Dec 05 2014
Time : 18:58:35
Host : "millegradi-nb"
PID : 4112
Case : /home/bolzo/TERMIGNONI/run/prove_solver/prova_5
nProcs : 4
Slaves :
3
(
"millegradi-nb.4113"
"millegradi-nb.4114"
"millegradi-nb.4115"
)

Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}

Calculating field g.h

Reading field p_rgh

Selecting radiationModel P1
Selecting absorptionEmissionModel constantAbsorptionEmission
Selecting scatterModel constantScatter

SIMPLE: convergence criteria
field p_rgh tolerance 0.01
field U tolerance 0.001
field h tolerance 0.001
field G tolerance 0.001
field "(k|epsilon|omega)" tolerance 0.001


Starting time loop

Time = 1

DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.00766817, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.00749132, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.00791072, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.00766938, No Iterations 1
DICPCG: Solving for G, Initial residual = 1, Final residual = 0.096472, No Iterations 335
DICPCG: Solving for p_rgh, Initial residual = 0.999948, Final residual = 0.00829887, No Iterations 450
time step continuity errors : sum local = 0.145697, global = -0.0018876, cumulative = -0.0018876
rho max/min : 79.6338 1.1739
DILUPBiCG: Solving for epsilon, Initial residual = 0.12008, Final residual = 0.00390459, No Iterations 1
bounding epsilon, min: -5.64769 max: 1881.23 average: 13.0219
DILUPBiCG: Solving for k, Initial residual = 1, Final residual = 0.0865008, No Iterations 1
ExecutionTime = 23.58 s ClockTime = 23 s

Time = 2

DILUPBiCG: Solving for Ux, Initial residual = 0.998573, Final residual = 0.0137559, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0.999799, Final residual = 0.0141418, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 0.999881, Final residual = 0.0139621, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.013323, No Iterations 1

Thak you!
slash89 is offline   Reply With Quote

Old   December 5, 2014, 13:29
Default
  #23
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Are you sure about the BCs you exerted on your geometry? and I wanted the log file not the fist two iteration log

it seems that your cumulative time step error will grow up and the range of rho variation I think is very much!!!

Code:
time step continuity errors : sum local = 0.145697, global = -0.0018876, cumulative = -0.0018876
rho max/min : 79.6338 1.1739
if you're sure about the BCs, then you should check your schemes.
adambarfi is offline   Reply With Quote

Old   December 5, 2014, 14:06
Default
  #24
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
Sorry but i don't understand which file you need. Do you need the G file?

Best regards
slash89 is offline   Reply With Quote

Old   December 5, 2014, 14:34
Default
  #25
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
just run your case and get the log file:

Code:
solverName >log
and the errors appeared in your terminal.
such as: http://www.cfd-online.com/Forums/ope...tml#post375086
adambarfi is offline   Reply With Quote

Old   December 5, 2014, 15:14
Default
  #26
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
Code:
--> FOAM FATAL ERROR: 
[2] Maximum number of iterations exceeded
[2] 
[2]     From function specieThermo<Thermo>::T(scalar f, scalar T0, scalar (specieThermo<Thermo>::*F)(const scalar) const, scalar (specieThermo<Thermo>::*dFdT)(const scalar) const) const
[2]     in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 69.
[2] 
FOAM parallel run aborting
[2] 
[2] #0  Foam::error::printStack(Foam::Ostream&)[0] 
[0] 
[0] --> FOAM FATAL ERROR: 
[0] Maximum number of iterations exceeded
[0] 
[0]     From function specieThermo<Thermo>::T(scalar f, scalar T0, scalar (specieThermo<Thermo>::*F)(const scalar) const, scalar (specieThermo<Thermo>::*dFdT)(const scalar) const) const
[0]     in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 69.
[0] 
FOAM parallel run aborting
[0] 
[0] #0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #1  Foam::error::abort() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #1  Foam::error::abort() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #2  Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::T(double, double, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #2  Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::T(double, double, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const, double (Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> >::*)(double) const) const in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[2] #3  Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::calculate() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[0] #3  Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::calculate() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[0] #4   in "/opt/openfoam2Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::correct()11/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[2] #4  Foam::hPsiThermo<Foam::pureMixture<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > > >::correct() in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[0] #5   in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[2] #5  

[0]  in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/buoyantSimpleRadiationFoam"
[0] #6  __libc_start_main[2]  in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/buoyantSimpleRadiationFoam"
[2] #6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #7   in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #7  

[0]  in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/buoyantSimpleRadiationFoam"
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[2]  in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/buoyantSimpleRadiationFoam"
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 2812 on
node millegradi-nb exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[millegradi-nb:02811] 1 more process has sent help message help-mpi-api.txt / mpi-abort
[millegradi-nb:02811] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
Hope this is what we need!
slash89 is offline   Reply With Quote

Old   December 6, 2014, 01:13
Default
  #27
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
The problem is probably related to the pressure field. I guess you have negative pressure, so the thermophysical library crashes.

check the following:
  1. check your grids, checkmesh
  2. use 1st order scheme for temporal discretization
  3. modify the tolerance tol_ from 1.0e-4 to something higher e.g. 1.0e-3, but this is not a good advice. thanks to dmoroian
  4. at last, modify the maxIter_ from 100 to something larger. you can find the implementation process in http://www.cfd-online.com/Forums/ope...tml#post179437

hope these help you
adambarfi is offline   Reply With Quote

Old   December 6, 2014, 04:59
Default
  #28
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
It still does not work. At this point the problem is in the BCs. Can I upload them here?
slash89 is offline   Reply With Quote

Old   December 6, 2014, 05:13
Default
  #29
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by slash89 View Post
It still does not work. At this point the problem is in the BCs. Can I upload them here?
it's the best thing you can do!
adambarfi is offline   Reply With Quote

Old   December 6, 2014, 05:17
Default
  #30
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
0.tar.gz


Thak you!
slash89 is offline   Reply With Quote

Old   December 9, 2014, 06:15
Default
  #31
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
slash89 is on a distinguished road
nobody can help??
slash89 is offline   Reply With Quote

Old   April 4, 2016, 09:35
Default Maximum number of iterations exceeded
  #32
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 10
masoudsh is on a distinguished road
hi

i have this problem
can anyone help me?
if i change the mesh ,solve?
or if i remove the energy equation

best regards

masoud

--> 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.0.1/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 67.
masoudsh is offline   Reply With Quote

Old   April 5, 2016, 17:27
Default
  #33
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
Need a lot more info
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   April 5, 2016, 17:32
Default
  #34
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 10
masoudsh is on a distinguished road
hi Derek

what do you want to know?
did you see this problem later?

best regards
masoud
masoudsh is offline   Reply With Quote

Old   April 27, 2016, 06:43
Default
  #35
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 10
masoudsh is on a distinguished road
Hi

I got the sam problem,Can anyone solve it?
I have this problem in my project,I do anything such as mesh,Bc , ... but doesn't work.
if I find anything tell here ,please help me if the problem solve

Best Regards
Masoud
masoudsh is offline   Reply With Quote

Old   April 27, 2016, 08:55
Default
  #36
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by masoudsh View Post
Hi

I got the sam problem,Can anyone solve it?
I have this problem in my project,I do anything such as mesh,Bc , ... but doesn't work.
if I find anything tell here ,please help me if the problem solve

Best Regards
Masoud
Hi Masoud,
Take a look at this:
http://openfoam.ir/questions/questio...AE%D8%B7%D8%A7

Best.
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) Scabbard OpenFOAM Running, Solving & CFD 1 July 22, 2014 04:50
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


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