223 const polyMesh&
mesh,
226 const triSurfaceSearch& querySurf,
229 const label nCutLayers,
237 cellClassification cellType(
mesh, querySurf, outsidePts);
243 cellType.trimCutCells
253 label cType = cellType[celli];
261 inside.insert(celli);
265 outside.insert(celli);
273 const primitiveMesh&
mesh,
290 if (internalCells.found(celli))
297 const face&
f = faces[cFaces[cFacei]];
303 if (pointSide[pointi] == NOTSET)
305 pointSide[pointi] = INSIDE;
307 else if (pointSide[pointi] == OUTSIDE)
309 pointSide[pointi] = MIXED;
325 const face&
f = faces[cFaces[cFacei]];
331 if (pointSide[pointi] == NOTSET)
333 pointSide[pointi] = OUTSIDE;
335 else if (pointSide[pointi] == INSIDE)
337 pointSide[pointi] = MIXED;
369 const label celli = iter.key();
372 label usesMixedOnly =
true;
376 const face&
f = faces[cFaces[i]];
380 if (pointSide[
f[fp]] != MIXED)
382 usesMixedOnly =
false;
394 mixedOnlyCells.insert(celli);
398 return mixedOnlyCells;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Motion of the mesh specified as a list of pointMeshMovers.
virtual const faceList & faces() const
Return raw faces.
const cellList & cells() const
static labelHashSet getHangingCells(const primitiveMesh &mesh, const labelHashSet &internalCells)
Get cells using points on 'outside' only.
static void getSurfaceSets(const polyMesh &mesh, const fileName &surfName, const triSurface &surf, const triSurfaceSearch &querySurf, const pointField &outsidePts, const label nCutLayers, labelHashSet &inside, labelHashSet &outside, labelHashSet &cut)
Divide cells into cut,inside and outside.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< cell > cellList
list of cells
vectorField pointField
pointField is a vectorField.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.