38 label nChangedFaces = 0;
41 nChangedFaces += mesh.boundaryMesh()[iter.key()].size();
45 label changedFacei = 0;
49 const label patchi = iter.key();
51 const polyPatch& patch = mesh.boundaryMesh()[
patchi];
53 forAll(patch.faceCentres(), patchFacei)
55 const label meshFacei = patch.start() + patchFacei;
57 changedFaces[changedFacei] = meshFacei;
75 List<wallPoint> changedFacesInfo(changedFaces.size());
76 forAll(changedFaces, changedFacei)
78 const label facei = changedFaces[changedFacei];
80 changedFacesInfo[changedFacei] =
81 wallPoint(mesh.faceCentres()[facei], scalar(0));
85 List<wallPoint> faceInfo(mesh.nFaces()), cellInfo(mesh.nCells());
86 FaceCellWave<wallPoint>
wave 93 mesh.globalData().nTotalCells() + 1
100 nUnset += !cellInfo[celli].valid(
wave.
data());
102 cellDistance[celli] = cellInfo[celli].dist(
wave.
data());
111 const polyMesh& mesh,
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#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...
const Type & data() const
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
labelList getChangedFaces(const polyMesh &mesh, const labelHashSet &patchIDs)
Get initial set of changed faces.
List< label > labelList
A List of labels.
label calculate(const polyMesh &mesh, const labelHashSet &patchIDs, scalarField &cellDistance)
Calculate distance data from patches.
label wave(const polyMesh &mesh, const labelList &changedFaces, scalarField &cellDistance)
Wave distance data from faces.