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

Function visNormal

src/meshTools/meshTools/meshTools.C:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31
32bool Foam::meshTools::visNormal
33(
34 const vector& n,
35 const vectorField& faceNormals,
36 const labelList& faceLabels
37)
38{
39 forAll(faceLabels, i)
40 {
41 if ((faceNormals[faceLabels[i]] & n) < SMALL)
42 {
43 // Found normal in different direction from n.
44 return false;
45 }
46 }
47
48 return true;
49}
50
51
52Foam::vectorField Foam::meshTools::calcBoxPointNormals(const primitivePatch& pp)

Callers 3

outwardsDisplacementFunction · 0.85
getPatchDisplacementFunction · 0.85
meshTools.CFile · 0.85

Calls 1

forAllFunction · 0.50

Tested by

no test coverage detected