34 void Foam::patchWave::setChangedFaces
38 List<wallPoint>& faceDist
43 label nChangedFaces = 0;
45 forAll(mesh.boundaryMesh(), patchI)
47 if (patchIDs.found(patchI))
49 const polyPatch& patch = mesh.boundaryMesh()[patchI];
51 forAll(patch.faceCentres(), patchFaceI)
53 label meshFaceI = patch.start() + patchFaceI;
55 changedFaces[nChangedFaces] = meshFaceI;
57 faceDist[nChangedFaces] =
60 patch.faceCentres()[patchFaceI],
71 Foam::label Foam::patchWave::getValues(
const MeshWave<wallPoint>& waveInfo)
73 const List<wallPoint>& cellInfo = waveInfo.allCellInfo();
74 const List<wallPoint>& faceInfo = waveInfo.allFaceInfo();
79 distance_.setSize(cellInfo.size());
83 scalar
dist = cellInfo[cellI].distSqr();
85 if (cellInfo[cellI].valid())
91 distance_[cellI] =
dist;
98 forAll(patchDistance_, patchI)
105 patchDistance_.set(patchI, patchDistPtr);
109 forAll(patchField, patchFaceI)
111 label meshFaceI = patch.start() + patchFaceI;
113 scalar dist = faceInfo[meshFaceI].distSqr();
115 if (faceInfo[meshFaceI].valid())
119 patchField[patchFaceI] =
Foam::sqrt(dist) + SMALL;
123 patchField[patchFaceI] =
dist;
140 const bool correctWalls
145 correctWalls_(correctWalls),
171 label nWalls = sumPatchSize(patchIDs_);
177 setChangedFaces(patchIDs_, changedFaces, faceDist);
189 mesh().globalData().nTotalCells()
197 nUnset_ = getValues(waveInfo);
207 correctBoundaryFaceCells
214 correctBoundaryPointCells