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

Class cellFeatures

src/meshTools/cellFeatures/cellFeatures.H:62–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60\*---------------------------------------------------------------------------*/
61
62class cellFeatures
63{
64 // Private data
65
66 const primitiveMesh& mesh_;
67
68 //- Cos of angle between two connected faces or two connected edges on
69 // same face before edge/point is 'feature'.
70 scalar minCos_;
71
72 label celli_;
73
74 //- Feature edges
75 labelHashSet featureEdge_;
76
77 //- (demand driven) Faces after removing internal points&edges
78 mutable faceList* facesPtr_;
79
80 //- New to old face mapping
81 mutable List<DynamicList<label>> faceMap_;
82
83
84 // Private Member Functions
85
86 bool faceAlignedEdge(const label, const label) const;
87
88 label nextEdge
89 (
90 const Map<label>& toSuperFace,
91 const label superFacei,
92 const label thisEdgeI,
93 const label thisVertI
94 ) const;
95
96 bool isCellFeatureEdge(const scalar, const label) const;
97
98 void walkSuperFace
99 (
100 const label facei,
101 const label superFacei,
102 Map<label>& toSuperFace
103 ) const;
104
105 void calcSuperFaces() const;
106
107
108 //- Disallow default bitwise copy construct
109 cellFeatures(const cellFeatures&);
110
111 //- Disallow default bitwise assignment
112 void operator=(const cellFeatures&);
113
114public:
115
116 // Constructors
117
118 //- Construct from cell in mesh
119 cellFeatures

Callers 1

cellFeatures.CFile · 0.70

Calls 1

calcSuperFacesFunction · 0.85

Tested by

no test coverage detected