From 2f0122cf566f6a18dc9a08fac5ea92cd12e8e475 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 16 Sep 2009 18:14:53 +0100 Subject: [PATCH] Adding a wallFaces list to the DirectInteractionList specifying the wall patch faces that each cell is potentially in range of. --- .../DirectInteractionList.C | 99 ++++++++++++++++++- .../DirectInteractionList.H | 9 ++ .../DirectInteractionListI.H | 8 ++ .../ReferredCell/ReferredCell.C | 2 +- 4 files changed, 112 insertions(+), 6 deletions(-) diff --git a/src/lagrangian/basic/InteractionLists/DirectInteractionList/DirectInteractionList.C b/src/lagrangian/basic/InteractionLists/DirectInteractionList/DirectInteractionList.C index 4f53af759f..83a4ac4c8e 100644 --- a/src/lagrangian/basic/InteractionLists/DirectInteractionList/DirectInteractionList.C +++ b/src/lagrangian/basic/InteractionLists/DirectInteractionList/DirectInteractionList.C @@ -37,7 +37,7 @@ void Foam::DirectInteractionList::buildDirectInteractionList { Info<< " Building list of direct interaction neighbours" << endl; - const polyMesh& mesh(il_.mesh()); + const polyMesh& mesh = il_.mesh(); List > DirectInteractionList(mesh.nCells()); @@ -294,9 +294,94 @@ void Foam::DirectInteractionList::buildDirectInteractionList // sorting DILs - forAll((*this), dIL) + forAll((*this), dilI) { - sort((*this)[dIL]); + sort((*this)[dilI]); + } +} + + +template +void Foam::DirectInteractionList::buildWallFaces() +{ + Info<< " Building list of wall faces in range of cells" << endl; + + const polyMesh& mesh = il_.mesh(); + + // DynamicLists for data gathering + DynamicList