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

Plateauing Residual

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2024, 20:59
Default Plateauing Residual
  #1
New Member
 
Gregory Poh
Join Date: May 2016
Posts: 2
Rep Power: 0
gpyr is on a distinguished road
Hi all,

I am very new to OpenFOAM and am trying to build a model to simulate wind over a ship. The build case is adopted from the motorbike tutorial files. I was able to perform the simulation but noticed that the residuals for the velocity fields are relative high (around 1e-2 to 1e-3 range) and it plateaus. Quick search online indicates two issues: (1) the residual should not plateau, and (2) the residual of in the order of 1e-2 to 1e-3 is too high. In addition to that, I also notice that the checkMesh function concluded with one failure (probably due to skewFaces).

I tried refining the mesh size (from 200k to 1M) but it didn't solve the issue. I am thinking that I may not have used the case file correctly and would like to seek some help please?

Case file uploaded to googledrive (https://drive.google.com/file/d/1NcM...usp=drive_link) and the residual plots shown.
Attached Images
File Type: jpg Residual Plots.jpg (53.4 KB, 9 views)
gpyr is offline   Reply With Quote

Old   February 22, 2024, 14:31
Default
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
Hi,

The fact that the residuals appear to flatten out is not a problem; it rather shows that there is convergence which is usually a good sign. Of course convergence doesn't mean necessarily accuracy.

I think in your case you could achieve residuals of at least an order of magnitude lower by using the linearUpwind scheme for the turbulent quantities with cellLimited Gauss linear 1 as a gradScheme.

Hope that helps.
Petros
petros is offline   Reply With Quote

Old   February 26, 2024, 06:51
Default
  #3
Senior Member
 
Join Date: Dec 2021
Posts: 246
Rep Power: 5
Alczem is on a distinguished road
I agree with the previous comment, and would also add that the residuals are not the only check you should perform to monitor convergence. Try to monitor quantites of interest such as forces and total flowrates and make sure they also are stable. I tend to ignore residuals until the last iteration, except if my physical values are not converging or if the simulation diverges, but you will find plenty of different opinions about monitoring convergence.
Alczem is offline   Reply With Quote

Old   February 28, 2024, 06:41
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Just to add to the above comments, I have often seen quoted the view that "the solution residuals should drop by 3 or four orders of magnitude". Whilst I applaud the sentiment, this is way too general and as both the previous posters have stated, residual reduction is only part of the story.

For example, think about the following - what if your initial solution guess is extremely good for the majority of the domain? Indeed, what if it is the perfect solution?
Tobermory is offline   Reply With Quote

Reply

Tags
residual, simplefoam convergence


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
laplacianFoam with source term Herwig OpenFOAM Running, Solving & CFD 17 November 19, 2019 14:47
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 23:13
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


All times are GMT -4. The time now is 00:28.