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

Understanding openfoam residual discontinuities

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2016, 05:44
Default Understanding openfoam residual discontinuities
  #1
New Member
 
Johannes Rasmussen
Join Date: Dec 2011
Posts: 9
Rep Power: 14
johannes.tophoj is on a distinguished road
Hi

On the attached image the residuals of my flow variables are shown as a function of the iteration count. The convergence criterion is 1e-5 for all variables but p, for which it is 1e-6. The residuals of the variables are discontinuous/make jumps, but perhaps it could be interpreted like some truncation as the shape of the curves before and after the jumps seem to match.

I'm merely curious. Can anyone explain these jumps?

Johannes
Attached Images
File Type: png residuals.png (45.6 KB, 75 views)
johannes.tophoj is offline   Reply With Quote

Old   April 16, 2016, 12:14
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which solver are you using?
  2. What relaxation values are you using?
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2016, 03:08
Default
  #3
New Member
 
Johannes Rasmussen
Join Date: Dec 2011
Posts: 9
Rep Power: 14
johannes.tophoj is on a distinguished road
Hi

The solver is simpleFoam (consistent yes/true) with relaxation factor 0.3 on all variables. I have seen these jumps in several similar cases and as this case eventually converged (at iteration ~2600) my interpretation has been that it is some kind of numerical artefact and not a sign of convergence problems. But it did make me wonder...

Johannes
johannes.tophoj is offline   Reply With Quote

Old   April 21, 2016, 17:44
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Johannes,

I recently had a similar problem when using k-omega SST and it was related to two problems:
  1. I was running in parallel, for which k-omega is apparently more sensitive to the values defined in the boundaries named "processor".
  2. Turbulence fields should not be overly solved in the matrix equations.
    • In other words, if you have a very small tolerance in the entries for k/epsilon/omega in "fvSolutions.solvers", it can result in these situations you observed or it could potentially crash as well, because it diverged, given that the solution was incompatible with the other equations.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 25, 2016, 08:51
Default
  #5
New Member
 
Johannes Rasmussen
Join Date: Dec 2011
Posts: 9
Rep Power: 14
johannes.tophoj is on a distinguished road
Hi again

Yes my jobs are parallel as well though I so far have not had any crashes. But thank you for the explanation

Johannes
johannes.tophoj 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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 21:33
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58


All times are GMT -4. The time now is 04:59.