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

space averaging in 1 dimension using MPI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2013, 20:54
Default space averaging in 1 dimension using MPI
  #1
New Member
 
Abbas Rahimi
Join Date: Jan 2013
Posts: 28
Rep Power: 13
AbbasRahimi is on a distinguished road
Hello MPI experts,

Actually, I'm trying to find horizontal average of a velocity field "u(i,j,". My code is paralleled using MPI and the domain is decomposed in y and z directions (ipocess in y and jprocess in z). I tried many diffrent ways to calculate this averge but I failed. If the domain wasn't decomposed, I could simply do it in the following:
do k=1:NZ
do j=1:NY
do i=1:NX
ave(k)= ave(k)+u(i,j,k)
end do
end do
end do
but do this averaging for a decomposed domain is troublesome for me. I'll be grateful if any one could give me some hints.

Thank you.
Abbas
AbbasRahimi is offline   Reply With Quote

Reply

Tags
mpi, mpi send recv processor, space averaging


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
mpirun, best parameters pablodecastillo Hardware 18 November 10, 2016 13:36
Sgimpi pere OpenFOAM 27 September 24, 2011 08:57
Building OpenFOAM on IRIX lakeat OpenFOAM Installation 7 July 16, 2008 08:27
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 11:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 12:12


All times are GMT -4. The time now is 12:37.