Go to the documentation of this file.
47 <<
"sortedEdgeFacesPtr_ already set"
59 const labelList& myFaceNbs = eFaces[edgeI];
61 if (myFaceNbs.
size() > 2)
70 e2 /=
mag(e2) + VSMALL;
76 label fp1 =
f.fcIndex(fp0);
77 label vertI = (
f[fp1] !=
e[1] ?
f[fp1] :
f.fcIndex(fp1));
82 e0 /=
mag(e0) + VSMALL;
93 for(
label nbI = 1; nbI < myFaceNbs.
size(); nbI++)
98 label fp1 =
f.fcIndex(fp0);
99 label vertI = (
f[fp1] !=
e[1] ?
f[fp1] :
f.fcIndex(fp1));
102 vec /=
mag(vec) + VSMALL;
134 <<
"edgeOwnerPtr_ already set"
148 if (myFaces.
size() == 1)
164 ((
f[0] ==
e.start()) && (
f[1] ==
e.end()))
165 || ((
f[1] ==
e.start()) && (
f[2] ==
e.end()))
166 || ((
f[2] ==
e.start()) && (
f[0] ==
e.end()))
178 <<
"Edge " << edgeI <<
" vertices:" <<
e
179 <<
" is used by faces " << myFaces
182 <<
" none of which use the edge vertices in the same order"
const labelListList & edgeFaces() const
Return edge-face addressing.
List< label > labelList
A List of labels.
void sort()
(stable) sort the list (if changed after construction time)
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
#define forAll(list, i)
Loop across all elements in list.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
const Field< point > & localPoints() const
Return pointField of points in patch.
label nEdges() const
Return number of edges in patch.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
dimensioned< scalar > mag(const dimensioned< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList * edgeOwnerPtr_
Label of face that 'owns' edge (i.e. e.vec() is righthanded walk.
void calcSortedEdgeFaces() const
Calculate sorted edgeFaces.
void calcEdgeOwner() const
Calculate owner.
A list that is sorted upon construction or when explicitly requested with the sort() method.
scalar pseudoAngle(const vector &e0, const vector &e1, const vector &vec)
Estimate angle of vec in coordinate system (e0, e1, e0^e1).
errorManip< error > abort(error &err)
const double e
Elementary charge.
const labelList & edgeOwner() const
If 2 face neighbours: label of face where ordering of edge.
List< labelList > labelListList
A List of labelList.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelListList * sortedEdgeFacesPtr_
Edge-face addressing (sorted)
const labelList & indices() const
Return the list of sorted indices. Updated every sort.
Triangle with additional region number.
const List< labelledTri > & localFaces() const
Return patch faces addressing into local point list.
A List with indirect addressing.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const labelListList & sortedEdgeFaces() const
Return edge-face addressing sorted (for edges with more than.
void size(const label)
Override size to be inconsistent with allocated storage.