Go to the documentation of this file.
169 const scalar tol = 0.0
179 const scalar tol = 0.0
245 const uLabel val = (t0*t1*t2 + t0+t1+t2);
280 result[xI] =
x[xI] + offset;
pointHit intersection(const point &p, const vector &q, const pointField &points, const intersection::algorithm alg, const scalar tol=0.0) const
Fast intersection with a ray.
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
vector normal(const pointField &) const
Vector normal; magnitude is equal to area of face.
triFace reverseFace() const
Return face with reverse direction.
#define forAll(list, i)
Loop across all elements in list.
This class describes the interaction of a face and a point. It carries the info of a successful hit a...
point centre(const pointField &) const
Return centre (centroid)
Type average(const pointField &, const Field< Type > &) const
Calculate average value at centroid of face.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
face triFaceFace() const
Return triangle as a face.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
friend bool operator!=(const triFace &, const triFace &)
void flip()
Flip the face in-place.
label collapse()
Collapse face by removing duplicate point labels.
bool contiguous< triFace >()
A triangle primitive used to calculate face normals and swept volumes.
scalar mag(const pointField &) const
Magnitude of face area.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
pointField points(const pointField &) const
Return the points corresponding to this face.
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)....
edgeList edges() const
Return edges in face point ordering,.
edge faceEdge(const label n) const
Return n-th face edge.
unsigned operator()(const PrimitiveType &p, unsigned seed) const
pointHit ray(const point &p, const vector &q, const pointField &points, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const
Return point intersection with a ray starting at p,.
friend bool operator==(const triFace &, const triFace &)
bool operator!=(const particle &, const particle &)
static int compare(const triFace &, const triFace &)
Compare triFaces.
scalar sweptVol(const pointField &oldPoints, const pointField &newPoints) const
Return swept-volume.
tensor inertia(const pointField &, const point &refPt=vector::zero, scalar density=1.0) const
Return the inertia tensor, with optional reference.
triPointRef tri(const pointField &) const
Return the triangle.
A triangular face using a FixedList of labels corresponding to mesh vertices.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T> with a fixed size <Size>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const dimensionedScalar c
Speed of light in a vacuum.
pointHit nearestPoint(const point &p, const pointField &points) const
Return nearest point to face.
A face is a list of labels corresponding to mesh vertices.
int edgeDirection(const edge &) const
Return the edge direction on the face.
uintWM_LABEL_SIZE_t uLabel
A uLabel is an uint32_t or uint64_t as specified by the pre-processor macro WM_LABEL_SIZE.
pointHit nearestPointClassify(const point &p, const pointField &points, label &nearType, label &nearLabel) const
Return nearest point to face and classify it:
label nTriangles() const
Number of triangles after splitting.
label nEdges() const
Return number of edges.