CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Basic Numerics Question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2013, 10:08
Default Basic Numerics Question
  #1
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Dear All,

I have some basic numerics question regarding 1st and 2nd order upwind scheme for the convective term for the 1d convection-diffusion equation:

u*rho*Phi' - Gamma* Phi'' = 0

When using the 1st order upwind scheme, one can see, that the first derivative in your differential equation is substituted by the first derivative minus dx/2 * second derivative.
Ok, so that means you will introduce some additional diffusion (namely u*rho*dx/2) into your equation, because diffusion has exact the same appearance.

When using the 2nd order upwind (or linear upwind scheme), the second derivative will cancel out in the error. That means there is no additional term that has exactly the same appearance as the diffusion.

So why do I read in every book that 2nd order upwind is also diffusive (but less then the 1st order)? Why is there additional diffusion at all?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 25, 2013, 11:33
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by RodriguezFatz View Post
Dear All,

I have some basic numerics question regarding 1st and 2nd order upwind scheme for the convective term for the 1d convection-diffusion equation:

u*rho*Phi' - Gamma* Phi'' = 0

When using the 1st order upwind scheme, one can see, that the first derivative in your differential equation is substituted by the first derivative minus dx/2 * second derivative.
Ok, so that means you will introduce some additional diffusion (namely u*rho*dx/2) into your equation, because diffusion has exact the same appearance.

When using the 2nd order upwind (or linear upwind scheme), the second derivative will cancel out in the error. That means there is no additional term that has exactly the same appearance as the diffusion.

So why do I read in every book that 2nd order upwind is also diffusive (but less then the 1st order)? Why is there additional diffusion at all?

The reasoning is based on general odd/even derivatives appearing in the local truncation error. A first derivative when discretized with upwind formulas produces a modified wavenumber that has both real and imaginary parts. These errors are associated to numerical dispersion and dissipation.
You can see the issue in the book of Peric and Ferziger.
If you want, more details are present here

http://onlinelibrary.wiley.com/doi/1...d.179/abstract
FMDenaro is offline   Reply With Quote

Old   October 28, 2013, 04:41
Default
  #3
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Hey Filippo,
I downloaded the paper. Thank you for the help.
To the Peric/Ferziger book: I have read some chapters several times, but unfortunately not the one you recommended
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 28, 2013, 04:50
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,772
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by RodriguezFatz View Post
Hey Filippo,
I downloaded the paper. Thank you for the help.
To the Peric/Ferziger book: I have read some chapters several times, but unfortunately not the one you recommended
Hi,
consider the section devoted to the analysis of the modified wavenumber. You will see that the local truncation error can be analysed also in the wavenumber space and you can see that any non-symmetric discretization of the first derivative produce an error that is never present in centred discretizations
FMDenaro is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] very basic question about createPhi.H feldy77 OpenFOAM Meshing & Mesh Conversion 2 November 22, 2011 08:16
Basic question on motorBike tutorial newToOpenFoam OpenFOAM Running, Solving & CFD 2 July 14, 2011 09:50
Basic question to buoyantBoussinesqPisoFoam kriz OpenFOAM 2 June 12, 2010 03:35
Basic Question Abhi FLUENT 1 August 4, 2007 08:07
Basic question: UDF for wall heat flux Carl FLUENT 1 August 5, 2006 19:01


All times are GMT -4. The time now is 04:11.