39 label nChangedFaces = 0;
46 label changedFacei = 0;
54 forAll(patch.faceCentres(), patchFacei)
56 const label meshFacei = patch.start() + patchFacei;
58 changedFaces[changedFacei] = meshFacei;
77 forAll(changedFaces, changedFacei)
79 const label facei = changedFaces[changedFacei];
81 changedFacesInfo[changedFacei] =
87 FaceCellWave<WallInfo<wallPoint>>
wave
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 size() const
Return the number of elements in the UPtrList.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
label nTotalCells() const
Return total number of cells in decomposed mesh.
Motion of the mesh specified as a list of pointMeshMovers.
const globalMeshData & globalData() const
Return parallel info.
const vectorField & faceCentres() const
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
label wave(const fvMesh &mesh, const List< labelPair > &changedPatchAndFaces, const label nCorrections, GeometricField< scalar, GeoMesh > &distance, TrackingData &td, GeometricField< DataType, 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.