ENH: MeshWave: allow 1 cells cases.

This commit is contained in:
mattijs
2010-10-19 17:40:36 +01:00
parent a5ee1669b4
commit 51b8a7367c
9 changed files with 11 additions and 10 deletions

View File

@ -298,7 +298,7 @@ label selectOutsideCells
mesh, mesh,
outsideFaces.shrink(), outsideFaces.shrink(),
outsideFacesInfo.shrink(), outsideFacesInfo.shrink(),
mesh.nCells() // max iterations mesh.globalData().nTotalCells()+1 // max iterations
); );
// Now regionCalc should hold info on cells that are reachable from // Now regionCalc should hold info on cells that are reachable from

View File

@ -32,6 +32,7 @@ License
#include "meshTools.H" #include "meshTools.H"
#include "hexMatcher.H" #include "hexMatcher.H"
#include "Switch.H" #include "Switch.H"
#include "globalMeshData.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -206,7 +207,7 @@ Foam::vectorField Foam::directions::propagateDirection
mesh, mesh,
changedFaces, changedFaces,
changedFacesInfo, changedFacesInfo,
mesh.nCells() mesh.globalData().nTotalCells()+1
); );
const List<directionInfo>& cellInfo = directionCalc.allCellInfo(); const List<directionInfo>& cellInfo = directionCalc.allCellInfo();

View File

@ -2332,7 +2332,7 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement
seedFacesInfo.clear(); seedFacesInfo.clear();
// Iterate until no change. Now 2:1 face difference should be satisfied // Iterate until no change. Now 2:1 face difference should be satisfied
levelCalc.iterate(mesh_.globalData().nTotalFaces()); levelCalc.iterate(mesh_.globalData().nTotalFaces()+1);
// Now check point-connected cells (face-connected cells already ok): // Now check point-connected cells (face-connected cells already ok):
@ -2836,7 +2836,7 @@ Foam::labelList Foam::hexRef8::consistentSlowRefinement2
seedFacesInfo, seedFacesInfo,
allFaceInfo, allFaceInfo,
allCellInfo, allCellInfo,
mesh_.globalData().nTotalCells() mesh_.globalData().nTotalCells()+1
); );

View File

@ -115,7 +115,7 @@ void Foam::inverseFaceDistanceDiffusivity::correct()
mesh, mesh,
changedFaces, changedFaces,
faceDist, faceDist,
mesh.globalData().nTotalCells() // max iterations mesh.globalData().nTotalCells()+1 // max iterations
); );
const List<wallPoint>& faceInfo = waveInfo.allFaceInfo(); const List<wallPoint>& faceInfo = waveInfo.allFaceInfo();

View File

@ -322,7 +322,7 @@ void Foam::cellClassification::markCells
changedFaces, // Labels of changed faces changedFaces, // Labels of changed faces
changedFacesInfo, // Information on changed faces changedFacesInfo, // Information on changed faces
cellInfoList, // Information on all cells cellInfoList, // Information on all cells
mesh_.globalData().nTotalCells() // max iterations mesh_.globalData().nTotalCells()+1 // max iterations
); );
// Get information out of cellInfoList // Get information out of cellInfoList

View File

@ -225,7 +225,7 @@ void Foam::patchDataWave<TransferType>::correct()
mesh(), mesh(),
changedFaces, changedFaces,
faceDist, faceDist,
mesh().globalData().nTotalCells() // max iterations mesh().globalData().nTotalCells()+1 // max iterations
); );

View File

@ -186,7 +186,7 @@ void Foam::patchWave::correct()
mesh(), mesh(),
changedFaces, changedFaces,
faceDist, faceDist,
mesh().globalData().nTotalCells() // max iterations mesh().globalData().nTotalCells()+1 // max iterations
); );

View File

@ -148,7 +148,7 @@ Foam::labelList Foam::structuredDecomp::decompose
patchData, patchData,
faceData, faceData,
cellData, cellData,
mesh.globalData().nTotalCells() mesh.globalData().nTotalCells()+1
); );
// And extract // And extract

View File

@ -137,7 +137,7 @@ void smoothDelta::calcDelta()
changedFacesInfo, changedFacesInfo,
faceDeltaData, faceDeltaData,
cellDeltaData, cellDeltaData,
mesh_.globalData().nTotalCells() // max iterations mesh_.globalData().nTotalCells()+1 // max iterations
); );
forAll(delta_, cellI) forAll(delta_, cellI)