MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / setChangedFaces

Function setChangedFaces

src/meshTools/cellDist/patchWave/patchWave.C:33–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
32
33void 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
70Foam::label Foam::patchWave::getValues(const MeshWave<wallPoint>& waveInfo)

Callers 2

patchDataWave.CFile · 0.70
correctFunction · 0.70

Calls 5

meshFunction · 0.85
wallPointClass · 0.70
forAllFunction · 0.50
foundMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected