CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Best way to calculate residuals

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2006, 10:24
Default Best way to calculate residuals
  #1
Morteza
Guest
 
Posts: n/a
Hi Guys,

What is the best way to calculate residuals of U, V and Pressure correction equations in SIMPLE algorithm. I have developed a Code that gives correct values but the amount of residuls for each equation in each iteration is so high! I guess that something wrong in the way for calculation of residuals. Now, my code calculates the difference between LHS and RHS of discretized equation for each grid point and the absolute values of this difference for all grid points are added to each other as the value of residual in each iteration. Thank you in adavnce for your comments and ideas.

Morteza
  Reply With Quote

Old   August 20, 2006, 00:44
Default Re: Best way to calculate residuals
  #2
student
Guest
 
Posts: n/a
Hi , my suggestion is residual= RHS - LHS let sum=sum+pow(residual,2);(i.e add all the square of the residuals for all grid points) at the end of each iteration find the squareroot.. that gives the correct solution.but urs procedure all rite. still u r getting wrong result , ur code might be wrong. all the best

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 171 February 20, 2024 03:55
How does openFoam calculate residuals? sahm OpenFOAM 3 October 26, 2017 18:24
what to monitor besides residuals? franzdrs FLUENT 5 March 21, 2013 04:59
Convergence - scaled vs unscaled residuals HS FLUENT 1 November 7, 2005 06:45
residuals Karl CFX 2 June 25, 2003 00:13


All times are GMT -4. The time now is 02:10.