|
[Sponsors] |
Averaging a field in parallel during the simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2013, 11:07 |
Averaging a field in parallel during the simulation
|
#1 |
Member
Saba Saeb
Join Date: Dec 2010
Location: Erlangen, Germany
Posts: 32
Rep Power: 15 |
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 |
|
|
|
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 |