What is the Residual in Computational Fluid Dynamics?

Click For Summary
Residual in Computational Fluid Dynamics (CFD) refers to the difference between the left-hand side and right-hand side of an equation, indicating how close a numerical solution is to the actual solution. A system is considered solved when the residual, defined as |a - b|, is less than a specified accuracy. This concept extends beyond CFD, serving as a fundamental measure in various numerical solution methods. In practice, the residual is calculated from the matrix-vector system A · x = b, where R = b - A · x represents the error at each iteration. Monitoring the norm of the residual helps assess convergence and solution accuracy, with squared values often used for efficiency.
askor
Messages
168
Reaction score
9
Can someone please tell me a basic and easy-to-understand example of Residual in CFD?

Thank you
 
Engineering news on Phys.org
Usually CFD solves equations numerically, up to a certain specfied accuracy. The residual is based on left hand side minus right hand side.
So a = b is considered solved when the residual | a - b |< specified required accuracy.

Mutatis mutandis for big systems of equations where a and b are huge arrays
 
What BvU has said applies far beyond just CFD. The idea of a residual as a measure of the degree to which an approximate solution satisfies a system of equations if fundamental to numerical solution methods in a wide range of applications.
 
  • Like
Likes Chestermiller
In the end you need to solve a matrix vector system for ##x## of the form $$A \cdot x=b$$ for the unknown velocities, pressures etc. at every node in your mesh. At every iteration you have an approximation for ##x##, say ##\tilde x##. This leads to a nonzero vector $$R=b - a\cdot \tilde x $$. The problem is solved if ##R=0##. In the mean time, you can square all elements in ##R##, sum them and then take the square root to get the norm of the residual, which gives an indication for you how far you are from the actual solution and if you are making progress.
 
It is slightly faster no to bother with taking the square root as @bigfooted has indicated. The squared value is just as useful as a quality measure.
 
  • Like
Likes bigfooted
Had my central air system checked when it sortta wasn't working. I guess I hadn't replaced the filter. Guy suggested I might want to get a UV filter accessory. He said it would "kill bugs and particulates". I know UV can kill the former, not sure how he thinks it's gonna murder the latter. Now I'm finding out there's more than one type of UV filter: one for the air flow and one for the coil. He was suggesting we might get one for the air flow, but now we'll have to change the bulb...

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
Replies
0
Views
2K
  • · Replies 17 ·
Replies
17
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
3
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
Replies
1
Views
1K
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
2K