Go to the documentation of this file.
38 if (a[0] ==
b[0] && a[1] ==
b[1])
42 else if (a[0] ==
b[1] && a[1] ==
b[0])
123 if (start() == a.
start() || start() == a.
end())
127 else if (end() == a.
start() || end() == a.
end())
141 Swap(
operator[](0),
operator[](1));
147 return edge(end(), start());
153 return 0.5*(
p[start()] +
p[end()]);
159 return p[end()] -
p[start()];
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static int compare(const edge &, const edge &)
Compare edges.
edge reverseEdge() const
Return reverse edge.
scalar mag(const pointField &) const
Return scalar magnitude.
vector vec(const pointField &) const
Return the vector (end - start)
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
edge()
Null constructor for lists.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensioned< scalar > mag(const dimensioned< Type > &)
point centre(const pointField &) const
Return centre (centroid)
label end() const
Return end vertex label.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool operator!=(const particle &, const particle &)
label commonVertex(const edge &a) const
Return common vertex.
void flip()
Flip the edge in-place.
line< point, const point & > linePointRef
Line using referred points.
label start() const
Return start vertex label.
linePointRef line(const pointField &) const
Return edge line.
label otherVertex(const label a) const
Given one vertex, return the other.