35 const scalar minFaceFraction
38 label nChangedFaces = 0;
41 nChangedFaces += mesh.boundary()[iter.key()].size();
44 List<labelPair> changedPatchAndFaces(nChangedFaces);
46 label changedFacei = 0;
50 const fvPatch& patch = mesh.boundary()[
patchi];
52 const bool conformal = !isA<nonConformalFvPatch>(patch);
61 const label polyFacei = mesh.polyFacesBf()[
patchi][patchFacei];
63 const scalar faceFraction =
64 patch.magSf()[patchFacei]/mesh.magFaceAreas()[polyFacei];
66 if (faceFraction < minFaceFraction)
continue;
74 changedPatchAndFaces.resize(changedFacei);
76 return changedPatchAndFaces;
#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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< labelPair > getChangedPatchAndFaces(const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction)
Get initial set of changed faces.
Pair< label > labelPair
Label pair.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.