What is the Residual in Computational Fluid Dynamics?

Click For Summary

Discussion Overview

The discussion centers around the concept of residuals in Computational Fluid Dynamics (CFD), particularly focusing on their role in numerical solutions of equations. Participants explore the definition, significance, and calculation of residuals in the context of solving systems of equations related to fluid dynamics.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Mathematical reasoning

Main Points Raised

  • One participant requests a basic example of residuals in CFD.
  • Another participant explains that the residual is defined as the difference between the left-hand side and right-hand side of an equation, indicating that a solution is considered accurate when this difference is below a specified threshold.
  • A participant notes that the concept of residuals extends beyond CFD, being fundamental to numerical solution methods across various applications.
  • Discussion includes the formulation of a matrix-vector system for solving unknowns at mesh nodes, where the residual is calculated as the difference between the right-hand side and the product of a matrix and an approximation of the solution.
  • One participant suggests that taking the square root of the residual may not be necessary, as the squared value can serve as an adequate measure of quality.

Areas of Agreement / Disagreement

Participants present various perspectives on the definition and calculation of residuals, with no consensus reached on the necessity of taking the square root of the residual for quality assessment.

Contextual Notes

The discussion does not resolve the implications of using squared versus square root values for assessing residuals, nor does it clarify the specific accuracy thresholds that might be applied in different contexts.

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   Reactions: 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   Reactions: bigfooted

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
Replies
0
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 21 ·
Replies
21
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
3K
  • · Replies 5 ·
Replies
5
Views
2K