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

Residuals start increasing after decreasing to a very low value

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2023, 13:24
Default
  #21
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,273
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by FMDenaro View Post
The residual is the residual. Is a unique definition. I would not consider any other definition



https://www.sciencedirect.com/scienc...67610521003366

Nope. It depends on the solver. Here in the OP we are talking about residual remaining after the solution is obtained and descretisation is applied.

Accuracy is with respect to exact or benchmark solution. So it is possible for solver to produce a solution that has higher residual but is more accurate. This is the whole point.


The residual in this context is different than what you have in mind.
arjun is offline   Reply With Quote

Old   April 18, 2023, 13:25
Default
  #22
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,273
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Yes very much.


Quote:
Originally Posted by LuckyTran View Post
Within the realm of linear algebra the difference between x_k or x_k+1 and the x_ex imparts a bias onto the solution and hence the residual. Whether you know the exact solution or not, the norm of the residual remains a measure assuming the difference x_k and x_k+1 is small (i.e. the solution is converging to something). Here is where higher order schemes can impart a bias that can give more accurate solution despite higher absolute level of residuals. Lower residual does not guarantee a better/worse solution but lowering of residual is quite necessary. The exceptions are the null cases: 1) you aren't converging, 2) the initial condition/guess used the converged solution, or 3) it is a case that requires non-linear estimators

So I tend to agree with the philosophy that in essence you are choosing to accept a less-converged solution. This is also apparent since you can manipulate the spectral radius to get arbitrarily small x_k+1 - x_k (i.e. set the urf's to 0). That being said, of course there have been many examples of when I have chosen to do exactly such, accept the solution as-is because there is indeed some type of error in system that prevents it from converging better–one bad cell in the mesh, etc.


Of course I also understand the point that solvers obfuscate the residual a bit by normalizing it about the solution. But the impact of this is mostly making it hard to compare convergence quality between two different cases. Although you can manipulate solver-reported residuals by the initial guess or normalization options, most people have habits that make it consistent, i.e. initial velocity is always U=0 every time they run a case, etc.
arjun is offline   Reply With Quote

Old   April 18, 2023, 13:46
Default
  #23
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by arjun View Post
Nope. It depends on the solver. Here in the OP we are talking about residual remaining after the solution is obtained and descretisation is applied.

Accuracy is with respect to exact or benchmark solution. So it is possible for solver to produce a solution that has higher residual but is more accurate. This is the whole point.


The residual in this context is different than what you have in mind.



There is no sense in this discussion if we do not formalize the object of the issue.


- The numerical solution, by definition it satisfies the discrete set of equations A_d(fnum)=q



- The exact solution, by definition it satisfies the original PDE A_pde(fex)=q.



- Order of accuracy is the main term in the local truncation error of the whole equations.




It seems you are talking about point #1, that is you select a numerical solution f_num_app (that is not fnum) and does not satisfy the discrete set of equations


A_d(f_num_app)-q=res.

And you are stating that f_num_app is a better approximation of fex than fnum. And that a solution f_num_app2, producing a res2>res would be still better. Therefore, we are talking about the discretization error, not about the local truncation error.

Am I right?


But that has nothing to do with the accuracy order.
FMDenaro 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
[Tutorials] Tutorial of how to plot residuals ! wolle1982 OpenFOAM Community Contributions 171 February 20, 2024 02:55
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
Cannot find functionObject file residuals vava10 OpenFOAM Pre-Processing 2 November 14, 2020 12:21
Residuals increasing after few iterations Aijiazi FLUENT 5 September 28, 2020 08:46
Mesh size and solver residuals... Scott CFX 5 December 15, 2008 17:10


All times are GMT -4. The time now is 14:06.