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

findCell in parallel: Identifying processor number

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2017, 07:34
Default findCell in parallel: Identifying processor number
  #1
New Member
 
Join Date: Jun 2017
Posts: 3
Rep Power: 9
fusionfire21 is on a distinguished road
Hi guys,

I am running a case in parallel and access the index of a certain cell via
Code:
 label myPoint=mesh.findCell(point(x, y, z));
So far, so good. When I try to access the velocity of the cell with index "myPoint" via the "Pout" function, a problem appears:
Of course each processor's domain contains a cell with that index (as they are enumerated separately for every processor), so I get information by every processor about the cell with the corresponding index.
Therefore, my question is:
Is there any possibilty to access the number of the processor which calculates the domain on which "point(x, y, z)" was originally found?
And is there an output function that allows only a specific processor (not the master processor) to communicate?

Thank you a lot in advance!
Regards
fusionfire
fusionfire21 is offline   Reply With Quote

Reply

Tags
findcell, parallel, pout


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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 12:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Identifying cell in parallel UDF upeksa Fluent UDF and Scheme Programming 0 July 24, 2013 12:27
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 17:49


All times are GMT -4. The time now is 18:23.