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

Temperature Diverging - SpecieThermo MaxIter

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2014, 22:21
Default Temperature Diverging - SpecieThermo MaxIter
  #1
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 16
dancfd is on a distinguished road
Hello all,

I am running a 2D airfoil simulation with a C-grid which was going fine until I tried to change in magnitude of the freestream speed as a funtion of time at the inlet. Now, the simulation crashes with the following error:

Code:
[3] --> FOAM FATAL ERROR: 
[3] Maximum number of iterations exceeded
[3] 
[3]     From function specieThermo<Thermo>::T(scalar f, scalar T0, scalar (specieThermo<Thermo>::*F)(const scalar) const, scalar (specieThermo<Thermo>::*dFdT)(const scalar) const) const
[3]     in file /opt/openfoam211/src/thermophysicalModels/specie/lnInclude/specieThermoI.H at line 69.
[3] 
FOAM parallel run aborting
Others have had this error, and so I checked some of the other recommended fixes on the boards:
- increased specieThermo.C "const int Foam::specieThermo<Thermo>::maxIter_" to 5000 from 100 (no effect)
- Changes relaxation factor on e from 1 to 0.3 (no effect)
- Reduced Courant number to 0.3 from 0.5 (no effect)
- Checked number of iterations and residuals on e (no change from previous timesteps)
- Changing the time discretization scheme from backward to Euler (delays the problem to a later timestep but it still prevents the case from completing)

I plotted the two attached graphs to identify deviant cells. It appears that a small number of cells are diverging.

Other info:
- OpenFOAM 2.1.1
- solver: rhoCentralFoam
- ThermoType: ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>

Not sure how to change the case to make it converge. Thanks in advance for any suggestions anyone can offer!

Regards,
Dan
Attached Images
File Type: jpg T_range.jpg (27.8 KB, 6 views)
File Type: jpg T_vals.jpg (25.0 KB, 7 views)
dancfd is offline   Reply With Quote

Old   March 15, 2016, 04:31
Default
  #2
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 10
masoudsh is on a distinguished road
hi Daniel

i have your problem too.
did you solve it

regards,
masoud
masoudsh is offline   Reply With Quote

Old   March 15, 2016, 04:49
Default
  #3
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

If reducing time step doesn't help, and since you use perfect gaz model, check min/max of pressure: you may have some cell with bad/crasy value.

In this case, a rude workaround is to limit pressure like p = min(p,1) i.e 1 Pa min here
You need to modify the solver code for this.

regards,
olivier
olivierG is offline   Reply With Quote

Old   March 15, 2016, 05:02
Default
  #4
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 10
masoudsh is on a distinguished road
hi Olivier

thanks for reply to my question.
i reduce my time step and it work but it .000001 and very low.
the checkMesh is ok.
you said "you need to modify the solver code for this",how can i do that?

regards
masoud
masoudsh 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
Diverging result for Temperature field in interFoam ovie OpenFOAM Running, Solving & CFD 105 December 6, 2021 09:02
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
Static Temperature / Opening Temperature JulianP CFX 12 April 10, 2019 18:00
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27


All times are GMT -4. The time now is 21:44.