39 label nChangedFaces = 0;
42 nChangedFaces += mesh.boundaryMesh()[iter.key()].size();
46 label changedFacei = 0;
52 const polyPatch& patch = mesh.boundaryMesh()[
patchi];
54 forAll(patch.faceCentres(), patchFacei)
56 const label meshFacei = patch.start() + patchFacei;
58 changedFaces[changedFacei] = meshFacei;
76 List<WallInfo<wallPoint>> changedFacesInfo(changedFaces.size());
77 forAll(changedFaces, changedFacei)
79 const label facei = changedFaces[changedFacei];
81 changedFacesInfo[changedFacei] =
82 WallInfo<wallPoint>(mesh.faceCentres()[facei], scalar(0));
86 List<WallInfo<wallPoint>> faceInfo(mesh.nFaces()), cellInfo(mesh.nCells());
87 FaceCellWave<WallInfo<wallPoint>>
wave
94 mesh.globalData().nTotalCells() + 1
101 nUnset += !cellInfo[celli].valid(
wave.data());
103 cellDistance[celli] = cellInfo[celli].dist(
wave.data());
112 const polyMesh& mesh,
#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.
label wave(const fvMesh &mesh, const List< labelPair > &changedPatchAndFaces, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance, TrackingData &td, GeometricField< DataType, PatchField, GeoMesh > &... data)
Wave distance (and maybe additional) data from faces. If nCorrections is.
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.
labelList getChangedFaces(const polyMesh &mesh, const labelHashSet &patchIDs)
Get initial set of changed faces.
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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.