|
[Sponsors] |
Looping over a volScalarField in a parallel run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 1, 2010, 08:46 |
Looping over a volScalarField in a parallel run
|
#1 |
Member
Florian Ettner
Join Date: Mar 2009
Location: Munich, Germany
Posts: 41
Rep Power: 17 |
Dear all,
I'd like to do some on-the-run monitoring of my computation where I am interested in a temperature front. Actually, of all the cells in my domain where the temperature exceeds 1000 K, I'd like to determine the one which has the highest x-coordinate. My code looks like this: Code:
label maxindex=0; forAll(mesh.C(),i) { if(T[i]>1000.0) { if(mesh.C()[i].component(0) > mesh.C()[maxindex].component(0)) maxindex=i; } } Info<< "front @ " << mesh.C()[maxindex] << endl; Regards, Florian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to run OF in parallel on a multiple-node cluster | quartzian | OpenFOAM | 3 | November 24, 2009 13:37 |
Parallel run diverges, serial does not | SammyB | OpenFOAM Running, Solving & CFD | 1 | May 10, 2009 03:28 |
Time Parallel run | Dr. FLow Squad | FLUENT | 5 | October 11, 2007 03:18 |
Run in parallel a 2mesh case | cosimobianchini | OpenFOAM Running, Solving & CFD | 2 | January 11, 2007 06:33 |
How to run parallel in ICEM_CFD? | Kiddo | Main CFD Forum | 2 | January 24, 2005 08:53 |