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

FaceCellWave.C: handleCyclicPatches() is called once for each cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2009, 08:11
Default FaceCellWave.C: handleCyclicPatches() is called once for each cell
  #1
New Member
 
Tammo Wenterodt
Join Date: Mar 2009
Posts: 24
Rep Power: 17
wenterodt is on a distinguished road
Dear colleagues,

currently I am doing a research in turbulent plane channel flow using the kwSST_lowRe model from the extend-branch. I use a 1D grid, and for grid-independence studies I want to go to really high numbers of cells i.e. 1e3..1e5. While 1e3 cells are calculated quite fast, the larger grids are processed terribly slow, e.g. 2min for one outer iteration.

I tracked the problem down using valgrind/cachegrind which tells me, that most of the time is being spent in Foam::FaceCellWave<Foam::wallPoint>::handleCyclicP atches() and Foam::List<Foam::wallPoint>::List(int). The reason for this is that the check

if (hasCyclicPatches_)
{
// Transfer changed faces across cyclic halves
handleCyclicPatches();
}


is located within

Foam::label Foam::FaceCellWave<Type>::cellToFace()
{
const cellList& cells = mesh_.cells();

for
(
label changedCellI = 0;
changedCellI < nChangedCells_;
changedCellI++
)
...


so it is called once for each cell instead of once for each patch, causing the massive slowdown. Can anyone think of a better location for the transfer of changed faces?

Regards,

Tammo
wenterodt is offline   Reply With Quote

Old   October 24, 2009, 09:44
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
The handleCyclicPatches call is outside the cell loop. Can you post a testcase for 1.6.x which exhibits this slowdown?
mattijs is offline   Reply With Quote

Old   October 26, 2009, 06:10
Red face Admitting I was wrong
  #3
New Member
 
Tammo Wenterodt
Join Date: Mar 2009
Posts: 24
Rep Power: 17
wenterodt is on a distinguished road
Seems like the slowdown actually comes from something else (I'll doublecheck my fvSolutionDict), sorry for bothering you guys.

The described problem only occurs at the initialization of the case (taking one second or so). The iterations are not affected. I came to the wrong conclusion when I checked with cachegrind, where I did only one iteration, and assumed that the slowdown came from the iteration-loop.

Regards,

Tammo
wenterodt is offline   Reply With Quote

Reply

Tags
bug facecellwave


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
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 05:49
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
Warning 097- AB Siemens 6 November 15, 2004 04:41
cell to cell relation CMB Siemens 1 December 4, 2003 04:05


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