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

space averaging in 1 dimension using MPI

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

LinkBack Thread Tools Display Modes
Old   May 26, 2013, 19:54
Default space averaging in 1 dimension using MPI
New Member
Abbas Rahimi
Join Date: Jan 2013
Posts: 28
Rep Power: 6
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.
AbbasRahimi is offline   Reply With Quote


mpi, mpi send recv processor, space averaging

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

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