CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Averaging a field in parallel during the simulation

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 23, 2013, 11:07
Default Averaging a field in parallel during the simulation
  #1
Member
 
Saba Saeb
Join Date: Dec 2010
Location: Erlangen, Germany
Posts: 32
Rep Power: 15
saba_saeb is on a distinguished road
Hi,

I need to take the average of a field on a boundary during the simulation. I am doing that using the normal approach:

scalar tmp= average(frictionvelocity);

where frictionvelocity is a scalar field. Everything is running like a charm in serial, but the simulation would stop if I run it in parallel. I tried to tackle the problem using this approach:

scalar tmp= average(frictionVelocity);
scalar tauw = returnReduce(tmp, sumOp<scalar>());

But the output is not correct since the calculated averages on every processors are being added together which make tauw that seems incorrect. Any idea would be appreciated.

Tnx,
Saba
saba_saeb is offline   Reply With Quote

 


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
constant variables in all processors , parallel simulation saba_saeb OpenFOAM Programming & Development 0 July 17, 2013 13:07
help with command line in parallel simulation ernest STAR-CCM+ 8 August 17, 2011 05:02
A parallel simulation problem in DPM satum FLUENT 0 October 21, 2008 05:38
How to run parallel simulation on PC with two-CPU? Jimmy FLUENT 1 July 14, 2008 00:46
How to run a parallel simulation? J.Gimbun FLUENT 9 May 24, 2006 05:47


All times are GMT -4. The time now is 07:48.