|
[Sponsors] |
Problem on multiple processors..works fine on single processor! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 3, 2009, 19:35 |
Printing the gradient value on a particular patch
|
#1 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
Hi Foamers,
I would like to print the values of the gradient of T on a particular patch before changing its value...it works fine on single processor. While on multiple processors, the patch is distributed on a number of processors, how would i make it print all the values from all the processors? forAll (T.boundaryField(), patchi) { if(T.boundaryField()[patchi].type() == "fixedGradient") { fixedGradientFvPatchScalarField& bufferMesh1= refCast<fixedGradientFvPatchScalarField>(T.boundar yField()[patchi]); forAll(bufferMesh1, faceI) { Info << bufferMesh1.gradient()[faceI] << endl; // bufferMesh1.gradient()[faceI] = blah blah; } } } Can anyone help me with this problem? Thanks Senthil Last edited by skabilan; December 4, 2009 at 02:36. |
|
December 5, 2009, 05:16 |
|
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
You can either gather all the data onto a single processor using 'Pstream', or you can just use 'Pout' instead of 'Info'. Pout will output your values but with the processor number at the beginning of the line. So they won't be ordered particularly well in standard output, but you can always paste them into excel and sort them.
__________________
Laurence R. McGlashan :: Website |
|
December 5, 2009, 13:19 |
|
#3 |
Senior Member
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17 |
Hi Laurence,
Thanks a lot for the reply. I think the easiest way is to use pout instead of Info... Regards, Senthil |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Problem of Multiple Fluids | Mehul | CFX | 1 | June 3, 2008 10:31 |
problem with starting pre-post processors | Ivan | CFX | 3 | October 24, 2005 08:03 |
Multiple inlets problem | Jeff | Main CFD Forum | 2 | August 17, 2005 11:48 |
UDF problem on single computer with two procesor | Dmitry | FLUENT | 3 | May 18, 2005 13:44 |