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

findCell() in parallel: not working if location is outside the domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2018, 15:33
Default findCell() in parallel: not working if location is outside the domain
  #1
New Member
 
Join Date: Jul 2017
Posts: 1
Rep Power: 0
TobiWol is on a distinguished road
Hi everyone,

I try to use findCell() to find cellIDs of points calculated from vectors from a starting cell. To do this in parallel, when starting cell and points might be located in domains of different processors I use following code:

meshSearch mSearch(mesh);
labelList localCellID(Pstream::nProcs(),0);
localCellID[Pstream::myProcNo()] = mSearch.findCell(point, -1, true);
reduce(localCellID, maxOp<labelList>());

Usually, if the point is inside of a considered domain findCell() returns the cell ID, if not it returns -1. This is the description in meshSearch.H. In my case findCell() works fine if point and starting cell are in the same domain, but if the location is outside the domain the simulation hang-up when findCell() is called or is in an endless loop, so not returning -1 as expected. I also tested the reduce() command to check if at least there is everything is working, but also there the same problem.
I don't no why it's not working. I think it's not because of the use on different processors.
It would be really great if one of you has any idea what is going wrong here. Without this my code is not working.

Thank you very much in advance!
Tobias
TobiWol is offline   Reply With Quote

Reply

Tags
find cell, location in mesh, meshsearch, parallel, point


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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Closed Domain Buoyancy Flow Problem Madhatter92 CFX 6 June 20, 2016 22:05
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Serial UDF is working for parallel computation also Tanjina Fluent UDF and Scheme Programming 0 December 26, 2013 19:24
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44


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