CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

divergence with higher order scheme

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 23, 2009, 08:19
Default divergence with higher order scheme
New Member
Join Date: Jul 2009
Posts: 5
Rep Power: 10
shekharc is on a distinguished road

I am doing DNS and am in process of implementing higher order schemes. I am done with implementing it in momentum equation etc.

However, when it comes to calculate divergence in a cell, i.e. Div = du/dx+dv/dy+dw/dz, I am getting a bit confused whether I should implement higher order scheme here as well or I should keep it just second order accurate.

I am asking it because if 2nd order accurate,
du/dx = (u[i+1]-u[i])/(x[i+1]-x[i]) etc. on staggered grids. It gives a feeling of the rate of mass accumulation in the cell, a physically meaningful quantity.

However, if we change this to 4th order discretization,
du/dx = f(u[i+2], u[i+1], u[i], u[i-1]) etc. which doesn't look like giving mass accumulation in the cell in discrete manner.

Could anyone please point out which one should be preferred?

shekharc is offline   Reply With Quote

Old   July 23, 2009, 13:53
Join Date: Mar 2009
Posts: 62
Rep Power: 10
RenardP is on a distinguished road
Usually you should keep the same order of discretization on all spatial derivatives if you want to have a pure 4 order scheme let's say. Otherwise your DNS will be only 2nd order.
RenardP is offline   Reply With Quote


divergence, higher order

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Higher order terms in the equations Argyle Main CFD Forum 7 October 31, 2008 08:41
CFL condition for higher order schemes Shyam Main CFD Forum 2 February 14, 2008 15:24
Higher order downwind scheme jelmer OpenFOAM Running, Solving & CFD 4 August 9, 2006 06:43
Higher order discretization on staggered grid Chandra Shekhar Main CFD Forum 9 January 27, 2005 17:31
Discretisation scheme in CFX-1st or 2nd order? Pete CFX 10 January 12, 2005 13:48

All times are GMT -4. The time now is 18:45.