CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Foam error (http://www.cfd-online.com/Forums/openfoam/94781-foam-error.html)

A.D.E November 25, 2011 04:53

Foam error
 
Dear all,


I am running a Subsonic case using sonicFoam in 4 processors and I get this error message:




--> 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.0.1/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 67.
[0]
FOAM parallel run aborting
[0]
[0] #0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #1 Foam::error::abort() in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #2 Foam::ePsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::eConstThermo<Foam:: perfectGas> > > > >::calculate() in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[0] #3 Foam::ePsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::eConstThermo<Foam:: perfectGas> > > > >::correct() in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libbasicThermophysicalModels.so"
[0] #4
[0] in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/sonicFoam"
[0] #5 __libc_start_main in "/lib/libc.so.6"
[0] #6
[0] in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/sonicFoam"


Does anyone know the reason why p { margin-bottom: 0.21cm;and how can I fix it ?


Thank you,


Ade

adhiraj November 28, 2011 16:02

The question is not clear to me. Do you want to know why the code crashed, or is it something about the p field?
OpenFOAM solves the energy equation for Enthalpy (h/hs) or internal energy(e). Then it needs to invert a relation like

Quote:

e=e(T)
or
Quote:

h=h(T)
or
Quote:

hs=hs(T)
This is done by a Newton iteration method. If the method does not converge after a reasonable number of iterations, you get the error you mentioned.
As to why you are getting this error, it can be a lot of things, so I can't tell right away why the number of iterations is exceeded.
Hope that helps.


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