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

Function combine

src/meshTools/sets/faceSources/boxToFace/boxToFace.C:55–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
54
55void Foam::boxToFace::combine(topoSet& set, const bool add) const
56{
57 const pointField& ctrs = mesh_.faceCentres();
58
59 forAll(ctrs, facei)
60 {
61 forAll(bbs_, i)
62 {
63 if (bbs_[i].contains(ctrs[facei]))
64 {
65 addOrDelete(set, facei, add);
66 break;
67 }
68 }
69 }
70}
71
72
73// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 2

applyToSetFunction · 0.70
FaceCellWave.CFile · 0.50

Calls 3

addOrDeleteFunction · 0.85
forAllFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected