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

How to calculate <u'v'> in a staggered grid?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2015, 23:53
Default How to calculate <u'v'> in a staggered grid?
  #1
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 15
ripperjack is on a distinguished road
Hi all,

I am coding a finite-difference CFD solver and I am using staggered grid. My question is: how do we calculate <u'v'> for post processing?

The reason I ask is because, for the staggered grid configuration, u and v are stored at the east and north face (not at a same point). It will be problematic if we simply do <u(i,j,k)*v(i,j,k)>. My solution now is to interpolate u and v to the cell center, and then do <u(i,j,k)*v(i,j,k)>. I am wandering if we can have a better solution. Thanks in advance.

Best regards,
ripperjack is offline   Reply With Quote

Old   April 3, 2015, 04:19
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ripperjack View Post
Hi all,

I am coding a finite-difference CFD solver and I am using staggered grid. My question is: how do we calculate <u'v'> for post processing?

The reason I ask is because, for the staggered grid configuration, u and v are stored at the east and north face (not at a same point). It will be problematic if we simply do <u(i,j,k)*v(i,j,k)>. My solution now is to interpolate u and v to the cell center, and then do <u(i,j,k)*v(i,j,k)>. I am wandering if we can have a better solution. Thanks in advance.

Best regards,

yes you wrote, you need to interpolate... if you have a second order code, a linear interpolation is congruent to the local truncation error of the FD scheme
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
Velocity field in staggered grid michujo Main CFD Forum 4 June 15, 2012 08:42
staggered grid kabilan Main CFD Forum 0 March 17, 2011 08:30
Maintaining symmetry on a staggered cartesian grid, dandalf Main CFD Forum 0 December 2, 2010 06:54
How to calculate grid width in control volume Ingenierias2003 OpenFOAM 5 November 24, 2010 13:40
Incompressible flow solver (staggered grid) J. Ehrhard Main CFD Forum 1 October 8, 1998 20:47


All times are GMT -4. The time now is 15:08.