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

how to check convergence??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2010, 10:23
Default how to check convergence??
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
Hello all,

I am new to openFoam and started learning it with the available tutorials. I am able to run the case but I am not sure how to check if the residuals are converging. Where do I check them?? and where do I specify the the convergence criteria??

Any help woud be appreciated!!

Thanks a ton!!
Sandeep
gandesk is offline   Reply With Quote

Old   November 19, 2010, 11:10
Default
  #2
Member
 
Join Date: Dec 2009
Posts: 36
Rep Power: 16
FG_HSRM is on a distinguished road
Hello Sandeep!

Take a look at system/fvSolution and check the screen output.
Alternatively you can save the screen output in a log file.
Regards
fritz
FG_HSRM is offline   Reply With Quote

Old   November 19, 2010, 11:15
Default
  #3
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
Hi fritz,

I am sorry I did not understand what u meant to check the screen output. fvSolutions file has just solvers and PISO dictionaries in it.
gandesk is offline   Reply With Quote

Old   November 19, 2010, 12:58
Default
  #4
Member
 
Join Date: Dec 2009
Posts: 36
Rep Power: 16
FG_HSRM is on a distinguished road
How are you running your case?
Normaly, you see something like below on your screen and in the log-file, too.
Quote:
Time = 0.495

Courant Number mean: 0.116925 max: 0.852134
DILUPBiCG: Solving for Ux, Initial residual = 1.99665e-07, Final residual = 1.99665e-07, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.36311e-07, Final residual = 4.36311e-07, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.0746e-06, Final residual = 3.53797e-07, No Iterations 1
time step continuity errors : sum local = 5.37651e-09, global = -2.9125e-19, cumulative = 8.07944e-18
DICPCG: Solving for p, Initial residual = 6.81574e-07, Final residual = 6.81574e-07, No Iterations 0
time step continuity errors : sum local = 8.06059e-09, global = 9.28097e-19, cumulative = 9.00754e-18
ExecutionTime = 0.16 s ClockTime = 0 s

Time = 0.5

Courant Number mean: 0.116925 max: 0.852134
DILUPBiCG: Solving for Ux, Initial residual = 1.89493e-07, Final residual = 1.89493e-07, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.14522e-07, Final residual = 4.14522e-07, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.06665e-06, Final residual = 3.39604e-07, No Iterations 1
time step continuity errors : sum local = 5.25344e-09, global = -9.50761e-19, cumulative = 8.05678e-18
DICPCG: Solving for p, Initial residual = 5.36118e-07, Final residual = 5.36118e-07, No Iterations 0
time step continuity errors : sum local = 6.86432e-09, global = 4.62063e-19, cumulative = 8.51884e-18
ExecutionTime = 0.16 s ClockTime = 0 s
FG_HSRM is offline   Reply With Quote

Old   November 19, 2010, 18:50
Default
  #5
Member
 
Robin Gilbert
Join Date: Jan 2010
Posts: 66
Rep Power: 16
robingilbert is on a distinguished road
http://www.cfd-online.com/Forums/ope...residuals.html

try that link. it shows how to plot residuals.
or u can see the screen output while running the simulation. it shows the initial and final residual at each time step. generally as far as i know if the initial residuals are going down, it means solution is converging. Somebody please correct me if i am wrong.
robingilbert is offline   Reply With Quote

Old   November 21, 2010, 09:20
Default yes!
  #6
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 15
mrshb4 is on a distinguished road
you are correct!! but I think thats not enough!! you should monitor some characteristics of your case in some points.( you can try sampleDict for this).

To plot residuals you can try pyFoam. It works properly.
mrshb4 is offline   Reply With Quote

Old   November 22, 2010, 02:41
Default
  #7
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

take a look at
http://openfoamwiki.net/index.php/Co...mPlotRunner.py
http://openfoamwiki.net/index.php/Contrib_PyFoam
elvis is offline   Reply With Quote

Old   December 21, 2010, 08:07
Default
  #8
New Member
 
GregorS's Avatar
 
Gregor Seljak
Join Date: Oct 2010
Posts: 21
Rep Power: 15
GregorS is on a distinguished road
Hello!

You can also use the foamLog script.

http://www.openfoam.com/docs/user/mo...hp#dx35-201001
GregorS 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
convergence check implemented in OF-1.6.x vaina74 OpenFOAM Running, Solving & CFD 5 June 3, 2010 08:35
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 01:17


All times are GMT -4. The time now is 11:22.