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

Function faceAlignedEdge

src/meshTools/cellFeatures/cellFeatures.C:39–61  ·  view source on GitHub ↗

Return true if edge start and end are on increasing face vertices. (edge is guaranteed to be on face)

Source from the content-addressed store, hash-verified

37// Return true if edge start and end are on increasing face vertices. (edge is
38// guaranteed to be on face)
39bool Foam::cellFeatures::faceAlignedEdge(const label facei, const label edgeI)
40 const
41{
42 const edge& e = mesh_.edges()[edgeI];
43
44 const face& f = mesh_.faces()[facei];
45
46 forAll(f, fp)
47 {
48 if (f[fp] == e.start())
49 {
50 label fp1 = f.fcIndex(fp);
51
52 return f[fp1] == e.end();
53 }
54 }
55
56 FatalErrorInFunction
57 << "Can not find edge " << mesh_.edges()[edgeI]
58 << " on face " << facei << abort(FatalError);
59
60 return false;
61}
62
63
64// Return edge in featureEdge that uses vertI and is on same superface

Callers 1

cellFeatures.CFile · 0.85

Calls 7

forAllFunction · 0.50
abortFunction · 0.50
edgesMethod · 0.45
facesMethod · 0.45
startMethod · 0.45
fcIndexMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected