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

Class geomCellLooper

src/dynamicMesh/meshCut/cellLooper/geomCellLooper.H:64–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62\*---------------------------------------------------------------------------*/
63
64class geomCellLooper
65:
66 public cellLooper
67{
68
69 // Static
70
71 //- Tolerance for point equal test. Fraction of edge length.
72 static const scalar pointEqualTol_;
73
74 //- Tolerance for cut through edges to get snapped to edge end point.
75 // Fraction of length of minimum connected edge length.
76 static scalar snapTol_;
77
78
79 // Private Member Functions
80
81 //- Min length of attached edges
82 scalar minEdgeLen(const label vertI) const;
83
84 //- Return true and set weight if edge is cut
85 bool cutEdge
86 (
87 const plane& cutPlane,
88 const label edgeI,
89 scalar& weight
90 ) const;
91
92 //- Snaps cut through edge by cut through vertex (if weight closer than
93 // tol to 0 or 1). Returns vertex label snapped to or -1.
94 label snapToVert
95 (
96 const scalar tol,
97 const label edgeI,
98 const scalar weight
99 ) const;
100
101 //- Gets two (random) vectors perpendicular to n and each other to be
102 // used as base.
103 void getBase
104 (
105 const vector& n,
106 vector& e0,
107 vector& e1
108 ) const;
109
110 //- Return true if the cut edge at loop[index] is inbetween the cuts
111 // through the edge end points.
112 bool edgeEndsCut(const labelList&, const label index) const;
113
114
115 //- Disallow default bitwise copy construct
116 geomCellLooper(const geomCellLooper&);
117
118 //- Disallow default bitwise assignment
119 void operator=(const geomCellLooper&);
120
121

Callers 4

hexCellLooper.CFile · 0.85
cutFunction · 0.85
geomCellLooper.CFile · 0.85
refineFromDictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected