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

residual values >> scale

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By ghost82

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2012, 16:54
Default residual values >> scale
  #1
Senior Member
 
mohamed khedr emam
Join Date: Oct 2011
Location: Egypt
Posts: 121
Rep Power: 14
m5edr is on a distinguished road
what the difference in conversion when i check (or uncheck) scale box?
Attached Images
File Type: jpg ss.jpg (59.1 KB, 184 views)
m5edr is offline   Reply With Quote

Old   November 25, 2012, 18:52
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by m5edr View Post
what the difference in conversion when i check (or uncheck) scale box?
The "scale" option enables/disables the scaling of the residuals that are reported. If not on, the residuals are not scaled. If enabled, then the residuals are scaled.

The unscaled residuals are the sum of the imbalance (mass, momentum, energy, etc.) over all cells in the domain. The scaled residual, is the unscaled residual divided by the appropriate scaling factor.

For most variables (all but continuity), the unscaled residual (sum of imbalance) is divided by the sum of the variable. Sum of momentum imbalance divided by sum of momentum. The sum of the quantity over all cells is the scaling factor.

Continuity is treated differently. For continuity, the unscaled residual is divided by the worst residual encountered during the first five iterations.

It is explained in detail in the Fluent manual 29.15.1.1

Last edited by LuckyTran; November 26, 2012 at 00:22.
LuckyTran is offline   Reply With Quote

Old   November 26, 2012, 00:15
Default
  #3
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
How you look at the unscaled residuals? What should be the criteria to judge the unscaled residuals?
Far is offline   Reply With Quote

Old   November 26, 2012, 14:20
Default
  #4
Senior Member
 
Emre G
Join Date: May 2011
Location: Turkey
Posts: 126
Rep Power: 14
emreg is on a distinguished road
scale is not too much important..
dont bother this.
emreg is offline   Reply With Quote

Old   November 27, 2012, 02:46
Default
  #5
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
Quote:
Originally Posted by emreg View Post
scale is not too much important..
dont bother this.
Directly from Fluent's guide:

"In general, it is difficult to judge convergence by examining the residuals defined by Equation 25.18-3 since no scaling is employed. This is especially true in enclosed flows such as natural convection in a room where there is no inlet flow rate of with which to compare the residual."

"
The scaled residual is a more appropriate indicator of convergence for most problems".

Far and RodriguezFatz like this.
ghost82 is offline   Reply With Quote

Old   November 27, 2012, 03:18
Default
  #6
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
Quote:
Originally Posted by Far View Post
How you look at the unscaled residuals? What should be the criteria to judge the unscaled residuals?
Fluent's guide says that unscaled residuals should decrease by 3 orders of magnitude, but in my opinion it is not enough to look at the residuals to judge convergence; absolute values of residuals, behaviour and monitoring of key parameters, I think these are the factors we have to look at.

Daniele
ghost82 is offline   Reply With Quote

Old   November 27, 2012, 18:55
Default
  #7
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by ghost82 View Post
Fluent's guide says that unscaled residuals should decrease by 3 orders of magnitude, but in my opinion it is not enough to look at the residuals to judge convergence; absolute values of residuals, behaviour and monitoring of key parameters, I think these are the factors we have to look at.

Daniele
Just to further the points made:

If the solver is initialized with the exact solution to the problem. The unscaled residuals will never decrease. The scaled residuals likewise will also not decrease. Hence searching for a reduction in three orders of magnitude of the residuals is not a very good criteria to judge convergence/accuracy.

The residuals do tell the amount of imbalance in the governing equations being solved. However, the residuals do not tell whether the solution has converged. Monitoring actual solution values is definitely needed.

The scaled residuals are suitable in my opinion for considering the amount of imbalance since the scaling factor is the sum of the variables. The scaled residuals are therefore like % imbalances and can be compared directly for different problems. The unscaled residuals can be the same for two different problems and have different meanings depending on magnitude of the solution values. Consider the laboratory flow around a cylinder versus interstellar flow around a galaxy, the difference in length and velocity scales are tremendous!
LuckyTran is offline   Reply With Quote

Old   August 17, 2019, 07:23
Default
  #8
New Member
 
Join Date: May 2019
Posts: 18
Rep Power: 6
bumper is on a distinguished road
Hello,


i have a general question about the calculation of the scaled residual. In Fluent, there is the following defintion of it:
Please see attached picture.


Maybe someone could explain it to me becasue the documentation of Fluent doens't help me. What is calculated exactly? Is it the difference of a governing variable from the actual iteration minus the last iteration in relation to the last iteration??


Thanks for your help,


bumper
Attached Images
File Type: png residual.PNG (4.0 KB, 31 views)
bumper is offline   Reply With Quote

Old   August 18, 2019, 22:33
Default
  #9
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by bumper View Post
Hello,


i have a general question about the calculation of the scaled residual. In Fluent, there is the following defintion of it:
Please see attached picture.


Maybe someone could explain it to me becasue the documentation of Fluent doens't help me. What is calculated exactly? Is it the difference of a governing variable from the actual iteration minus the last iteration in relation to the last iteration??


Thanks for your help,


bumper

On the top and bottom is a summation over all cells p. Each summand is the difference difference in fluxes of the current cell and neighboring cells + sources (b). The summand in the denominator is the flux in each cell. Hence, it is the sum of all imbalances divided by the sum of all fluxes. And since the number of cells in numerator and denominator are the same, it is the average/mean imbalance divided by the avg/mean flux.
LuckyTran is offline   Reply With Quote

Old   August 19, 2019, 03:50
Default
  #10
New Member
 
Join Date: May 2019
Posts: 18
Rep Power: 6
bumper is on a distinguished road
Okay, so to sum it up in my words:

In general, the scaled residuals compares the differences to neighboring cells in relation to all in one iteration step, right ? And with that, you can rate the convergence behaviour?

Isn't it necessary to consider the behaviour betweeen iteration steps?
bumper is offline   Reply With Quote

Old   August 19, 2019, 13:31
Default
  #11
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by bumper View Post
Okay, so to sum it up in my words:

In general, the scaled residuals compares the differences to neighboring cells in relation to all in one iteration step, right ? And with that, you can rate the convergence behaviour?

Isn't it necessary to consider the behaviour betweeen iteration steps?

Yes it is only for 1 iteration. Residuals measure imbalance, they don't tell you anything about convergence except that a converged solution should have low residuals.



It still is necessary to compare something between iterations. What and how that is done, is up to the user to be creative.
LuckyTran is offline   Reply With Quote

Old   August 25, 2019, 02:49
Default
  #12
New Member
 
Join Date: May 2019
Posts: 18
Rep Power: 6
bumper is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post

It still is necessary to compare something between iterations. What and how that is done, is up to the user to be creative.
Do you have any recommmendations?

And can you tell me what is represented by the coefficient a in the equation of residuals? Ansys documentation says that is is a center coefficient or an influence coefficient. But what does it mean exactly?

Last edited by bumper; August 26, 2019 at 07:28.
bumper 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
transsonic nozzle with rhoSimpleFoam Unseen OpenFOAM Running, Solving & CFD 8 July 1, 2022 06:54
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50
MRFSimpleFOAM goes divergenced! renyun0511 OpenFOAM Running, Solving & CFD 0 November 19, 2009 02:11
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16


All times are GMT -4. The time now is 19:45.