What is the Residual in Computational Fluid Dynamics?

In summary, the residual in CFD is a measure of the degree to which an approximate solution satisfies a system of equations. It is based on the difference between the left and right hand sides and is used to determine the required accuracy for solving a matrix vector system. The squared norm of the residual can be used as a quality measure to track progress towards the actual solution. This concept applies to a wide range of numerical solution methods.
  • #1
askor
169
9
Can someone please tell me a basic and easy-to-understand example of Residual in CFD?

Thank you
 
Engineering news on Phys.org
  • #2
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
 
  • #3
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
  • #4
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.
 
  • #5
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

1. What is the definition of residual in Computational Fluid Dynamics?

The residual in Computational Fluid Dynamics (CFD) refers to the difference between the computed and actual values of a physical quantity. It is a measure of the accuracy of the numerical solution obtained from a CFD simulation.

2. How is the residual calculated in CFD?

The residual is calculated by taking the difference between the computed value and the exact or known value of a physical quantity at a given point in the computational domain. This calculation is repeated for all points in the domain, and the residuals are then summed to obtain an overall measure of the accuracy of the solution.

3. What does a high residual value indicate in CFD?

A high residual value indicates that the solution obtained from the CFD simulation is not accurate. This could be due to a variety of factors such as numerical errors, inadequate mesh resolution, or incorrect boundary conditions. It is important to minimize the residual values to obtain a reliable and accurate solution.

4. How can the residual be reduced in CFD simulations?

The residual can be reduced by improving the numerical scheme used for solving the governing equations, increasing the mesh resolution, and ensuring that the boundary conditions are properly defined. It is also important to validate the results by comparing them with experimental or analytical data.

5. Is it possible to have zero residual in CFD simulations?

No, it is not possible to have zero residual in CFD simulations. This is because CFD solutions are always approximations and are subject to errors. However, the goal is to minimize the residual values as much as possible to obtain a reliable and accurate solution.

Similar threads

  • Mechanical Engineering
Replies
5
Views
100
  • Mechanical Engineering
Replies
1
Views
910
  • Mechanical Engineering
Replies
22
Views
1K
Replies
9
Views
1K
Replies
1
Views
46
  • Mechanical Engineering
Replies
1
Views
399
  • Classical Physics
Replies
21
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
726
  • Mechanical Engineering
Replies
3
Views
1K
Replies
10
Views
2K
Back
Top