
[Sponsors] 
August 16, 2011, 09:26 
When to use upwind or central differencing schemes?

#1 
Senior Member
TWB
Join Date: Mar 2009
Posts: 138
Rep Power: 10 
Hi,
I am using central differencing scheme currently. I read that it is preferable to use an upwind scheme at high Re of 10,000 to ensure convergence. Is this true? Also, is upwind scheme only suitable for problems with a general direction of flow e.g flow past a cylinder, from left to right? In that case, if I'm trying to simulate a flapping foil in a hovering configuration (with no inflow and symmetry BC all around), will I need to use an upwind scheme? Thanks! 

August 17, 2011, 15:20 

#2  
Senior Member
Join Date: Aug 2011
Posts: 271
Rep Power: 9 
Quote:
upwind scheme as well as central differencing scheme are finite difference schemes which will use different locations of the variable you want to derive. Imagine you want to discretize a first, second,....derivative of a given function f at a i location. To do that if you use f(i), f(i+1), f(i1), f(i+2), f(i2).. these expressions will refer as centred (means centred around i) If you use f(i) f(i1), f(i2)... this one will refer as upwind because you only use upwind location around i. If you use f(i), f(i+1), f(i+2)...this expression will refer as downwind. The choice of one possible expression instead of another one will have somme consequences on accuracy and stability. Now when you plan to discretize the NavierStokes equations this notion apply on the discretization of the convective term of the NS equations. Let's imagine you use finite volume method , but in finite difference or in finite element the problem is the same. In the discretization process you will need to the value of the velocity on the faces of your control volume. For example on the "east" side you will need u_e. in finite difference this location is generally noted i+1/2 If you use a centred scheme you will say U_e= (U_E+U_P)/2 (if the east face is at the mid distance between E and P. If you use an upwind scheme you will say U_e= U_P is the convective velocity is positive and U_e=U_E is the convective velocity is negative. Saying that you understand why we speak of "upwind" scheme. centred scheme is 2nd order accurate while upwind scheme is only first order. upwind scheme is also more diffusive than centred scheme but it is also more stable than centred scheme which can lead to some spurious oscillations (dispersive errors). It is well known than when peclet number is >2 it is preferable to switch from centred scheme to upwind scheme. So due to this possible oscillating behaviour of the centred scheme, especially on convective dominated flow (high re number) the use of the upwind scheme could stabilize the solution. But it will be in the same time less accurate.. But other options are possible. in fact I should have told you first, to refer to CFD wiki http://www.cfdonline.com/Wiki/Appro...grids__Common You will understand the point. Quote:
For the upwind scheme what is important is the local direction of the velocity. Even if the flow is from left to right if you have some recirculating regions or vortices evolving in the flow, the velocity could be locally negative and thus you will retain U_E to compute U_e on the "east" side of the control volume . 

August 18, 2011, 03:34 

#3 
Senior Member
TWB
Join Date: Mar 2009
Posts: 138
Rep Power: 10 
Thanks leflix for the in depth answer.
Just to confirm, the key point of the upwind scheme is the local convective velocity. Hence for high Re flow, no matter if the inflow is left to right, or if it is a hovering case with symmetrical BC, an upwind scheme is preferred. Is that so? 

August 18, 2011, 04:42 

#4  
Senior Member
Join Date: Aug 2011
Posts: 271
Rep Power: 9 
Quote:
Quote:
In any case you can always use an upwind scheme. When it is necessary it will bring stability because of its propensity to numerical diffusion. But in the same time its accuracy is lower than other scheme for the same number of grid nodes. 

August 18, 2011, 04:47 

#5  
Senior Member
andy
Join Date: May 2009
Posts: 129
Rep Power: 10 
Quote:
Quote:
Quote:
At high Reynolds number upwinding introduces stability in a physically reasonable manner and so is generally good thing. However, the scheme may seek to introduce stability by numerically conserving physically quantities in a global manner (e.g. energy conservation is popular with LES schemes) which may preclude the use of upwinding which introduces "dissipative" terms. 

August 19, 2011, 02:21 

#6 
Senior Member
TWB
Join Date: Mar 2009
Posts: 138
Rep Power: 10 
Thanks andy_ for the additional info.
Currently, my flapping foil simulation at Re=10000 converges with central differencing. However, I'm getting nonperiodical solution when it's supposed to be periodical based on experiments. Is central differencing the problem? Should I use some form of upwind scheme? But leflix says central scheme should be more accurate. Another reason could be turbulence, since my solver is only solving laminar flow. 

August 19, 2011, 03:24 

#7  
Senior Member
andy
Join Date: May 2009
Posts: 129
Rep Power: 10 
Quote:
Quote:
Leflix was referring to formal accuracy and then only in a typical sense for centred and upwind schemes that use the same number of grid values. Assuming a solution is obtained, in the presence of significant numerical errors this is not the only property of a numerical scheme that is of relevance to a simulation. Quote:
If you do not resolve the flow in space and time then what you are doing is almost certain to result in an unreasonable simulation of the flow. The most common approach is to change the form of the equations being solved by introducing some form of averaging (a turbulence model) and then to resolve those equations in space and time. 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
2nd order upwind vs 2nd order upwind!!!  Far  Main CFD Forum  7  March 14, 2013 13:29 
Second order upwind is not UPwind!!!  Far  CFX  9  May 31, 2011 08:21 
Wrong fvm::div assembling  santiagomarquezd  OpenFOAM Bugs  90  December 27, 2010 13:54 
Central Differencing Scheme in Fluent  alice  FLUENT  2  March 21, 2004 08:30 
Central Difference vs Upwind Defference  S. Balasubramanyam  Main CFD Forum  5  January 16, 2002 02:58 