CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Residual? (https://www.cfd-online.com/Forums/main/13540-residual.html)

Beginner May 29, 2007 07:38

Residual?
 
Hi,

I would like to have an idea about formulas for calculating the residual over a domain with uniform grid to fix the convergence criteria.

Usually I use (Finite difference scheme):

res = sqrt((Un+1-Un)^2/N) where N is the number of nodes.

Is it correct???

Shyam June 1, 2007 00:59

Re: Residual?
 
Usually, when you have an equation as d(u)/dt + L(u) = S

where L(u) is the spatial operator and S is the source, you tend to represent (L(u)-S) as the residual.

For a steady state, this (averaged over all nodes) needs to be zero and hence the convergence criteria. There are many different methods.

For finite volume, it should be the average and not the integral quantity for a stringent condition. (For smaller cells near the physical boundary, this tends to be higher)



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