| 31 | // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // |
| 32 | |
| 33 | void Foam::patchWave::setChangedFaces |
| 34 | ( |
| 35 | const labelHashSet& patchIDs, |
| 36 | labelList& changedFaces, |
| 37 | List<wallPoint>& faceDist |
| 38 | ) const |
| 39 | { |
| 40 | const polyMesh& mesh = cellDistFuncs::mesh(); |
| 41 | |
| 42 | label nChangedFaces = 0; |
| 43 | |
| 44 | forAll(mesh.boundaryMesh(), patchi) |
| 45 | { |
| 46 | if (patchIDs.found(patchi)) |
| 47 | { |
| 48 | const polyPatch& patch = mesh.boundaryMesh()[patchi]; |
| 49 | |
| 50 | forAll(patch.faceCentres(), patchFacei) |
| 51 | { |
| 52 | label meshFacei = patch.start() + patchFacei; |
| 53 | |
| 54 | changedFaces[nChangedFaces] = meshFacei; |
| 55 | |
| 56 | faceDist[nChangedFaces] = |
| 57 | wallPoint |
| 58 | ( |
| 59 | patch.faceCentres()[patchFacei], |
| 60 | 0.0 |
| 61 | ); |
| 62 | |
| 63 | nChangedFaces++; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | |
| 70 | Foam::label Foam::patchWave::getValues(const MeshWave<wallPoint>& waveInfo) |