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

Divergence of DILUPBiCG

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2016, 18:33
Default Divergence of DILUPBiCG
  #1
Member
 
Join Date: Aug 2015
Posts: 37
Rep Power: 10
knuckles is on a distinguished road
I've been using OpenFOAM to simulate combustion. I began by simulating with the combustion model inactive, and then turned it on. Around 20 time steps after activating combustion, this happened:

Quote:
DILUPBiCG: Solving for H2O, Initial residual = 2.122748001606821e-05, Final residual = 4.609232998037878e+21, No Iterations 1001
This didn't cause a full failure of the code, but it did make the results extremely non-physical (for example giving a peak H2O mass fraction of 1e16). For the time step in question,

Quote:
Courant Number mean: 0.001837135708655162 max: 0.2926824599786872 deltaT = 6.018954193305121e-07
...and the relevant settings in fvSolution are:

Code:
solvers
{
    Yi 
    { 
        solver          PBiCG; 
        preconditioner  DILU; 
        tolerance       1e-09;         
        relTol          0;     
    } 
}
Because I have combustion, the linear system that I'm trying to solve includes an explicit chemical source term, but this should be, at most, wdot_H2O/rho = 1000 [1/s]. For the time step above, this would mean that the term added to the linear system should be no more than 6e-4*rho. The mass fraction of H2O before the time step is in the 0 to 0.1 range.

At first I thought that my chemistry model had malfunctioned and given non-physically large reaction rates, but then if this were the case then I would also expect the initial residual of H2O to be extremely large. This suggests to me that the problem is numerical.

I'm wondering how to remedy this situation; specifically:
  1. Why might this happen? Are there particular types of linear systems which are known to experience this kind of divergence when solved using DILUPBiCG?
  2. What parameters should I be tweaking before re-running: the linear system solver? the stopping tolerances? the Courant number?
knuckles is offline   Reply With Quote

Old   February 17, 2016, 02:08
Default
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Hi,

Try to use smoothSolver

Or BiCGStab , which is present in foam-extend
mkraposhin is offline   Reply With Quote

Old   March 7, 2016, 14:35
Default
  #3
Member
 
Join Date: Aug 2015
Posts: 37
Rep Power: 10
knuckles is on a distinguished road
Thanks mkraposhin, this was helpful. I think that the real problem turned out to be my inlet conditions, however: I have a turbulentInlet BC and the magnitude of the fluctuations was far too large (over 0.1). My simulation has not diverged in this way since I've reduced the fluctuations (to more like 0.01).
knuckles 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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 08:07
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24


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