mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: MeshWave: allow 1 cells cases.
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user