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

polyMesh::findCell slow in parallel, but meshSearch::findCell sometimes fails

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2015, 01:04
Default polyMesh::findCell slow in parallel, but meshSearch::findCell sometimes fails
  #1
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 13
pbachant is on a distinguished road
I am working on an fvOption source that moves around the mesh (actuator line), so I often need to lookup what cell an element is inside to read local velocity and cell volume. The code works great in serial using polyMesh::findCell, but this slows down a lot in parallel.

I tried replacing these calls with meshSearch::findCell(position, 0), and things get much faster, but sometimes cells are not found on any processors when run in parallel, which shouldn't be possible, right?

Any ideas on how I might either fix up meshSearch::findCell or speed up polyMesh::findCell?
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   August 5, 2017, 07:57
Default
  #2
New Member
 
hamed eshraghi
Join Date: Jan 2016
Posts: 3
Rep Power: 10
hamedhiv is on a distinguished road
mesh search class does not support parallel proccessing.
you should use findCell function.


localCellId [Pstream::myProcNo()]= mesh().findCell(location);
reduce(localCellId, sumOp<List<label> >());
hamedhiv is offline   Reply With Quote

Reply

Tags
find cell, mesh, parallel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00
rhoCentralFoam solver with Slip BCs fails in Parallel Only JLight OpenFOAM Running, Solving & CFD 2 October 11, 2012 21:08
Grid Check Fails in Parallel Processing Mode askance Main CFD Forum 0 October 20, 2010 10:11


All times are GMT -4. The time now is 00:36.