Foam::cellPointWeight. More...


Public Member Functions | |
| cellPointWeight (const polyMesh &mesh, const vector &position, const label celli, const label facei=-1) | |
| Construct from components. More... | |
| label | cell () const noexcept |
| Cell index. More... | |
| const barycentric & | weights () const noexcept |
| Interpolation weights. More... | |
| const triFace & | faceVertices () const noexcept |
| Interpolation addressing for points on face. More... | |
Static Public Attributes | |
| static int | debug |
| Debug switch. More... | |
| static scalar | tol |
| Tolerance used in calculating barycentric coordinates. More... | |
Protected Member Functions | |
| void | findTetrahedron (const polyMesh &mesh, const vector &position, const label celli) |
| void | findTriangle (const polyMesh &mesh, const vector &position, const label facei) |
Protected Attributes | |
| const label | celli_ |
| Cell index. More... | |
| barycentric | weights_ |
| Weights applied to tet vertices. More... | |
| triFace | faceVertices_ |
| Face vertex indices. More... | |
Definition at line 51 of file cellPointWeight.H.
| cellPointWeight | ( | const polyMesh & | mesh, |
| const vector & | position, | ||
| const label | celli, | ||
| const label | facei = -1 |
||
| ) |
|
protected |
Definition at line 34 of file cellPointWeight.C.
References Foam::ensightOutput::debug, Foam::det(), PointHit< PointType >::distance(), Foam::endl(), tetIndices::faceTriIs(), forAll, Foam::mag(), mesh, tetrahedron< Point, PointRef >::nearestPoint(), Foam::nl, tetrahedron< Point, PointRef >::pointToBarycentric(), Foam::Pout, and tetIndices::tet().

Definition at line 128 of file cellPointWeight.C.
References Foam::ensightOutput::debug, Foam::det(), PointHit< PointType >::distance(), Foam::endl(), tetIndices::faceTri(), tetIndices::faceTriIs(), forAll, Foam::mag(), Foam::magSqr(), mesh, triangle< Point, PointRef >::nearestPoint(), Foam::nl, triangle< Point, PointRef >::pointToBarycentric(), and Foam::Pout.

|
inlinenoexcept |
Cell index.
Definition at line 126 of file cellPointWeight.H.
References cellPointWeight::celli_.
Referenced by interpolationCellPoint< Foam::vector >::interpolate().

|
inlinenoexcept |
Interpolation weights.
Definition at line 134 of file cellPointWeight.H.
References cellPointWeight::weights_.
Referenced by interpolationCellPoint< Foam::vector >::interpolate().

|
inlinenoexcept |
Interpolation addressing for points on face.
Definition at line 142 of file cellPointWeight.H.
References cellPointWeight::faceVertices_.
Referenced by interpolationCellPoint< Foam::vector >::interpolate().

|
protected |
|
protected |
Weights applied to tet vertices.
Equal to the barycentric coordinates of the interpolation position.
Definition at line 67 of file cellPointWeight.H.
Referenced by cellPointWeight::weights().
|
protected |
Face vertex indices.
Definition at line 72 of file cellPointWeight.H.
Referenced by cellPointWeight::faceVertices().
|
static |
Debug switch.
Definition at line 97 of file cellPointWeight.H.
|
static |
Tolerance used in calculating barycentric coordinates.
(applied to normalised values)
Definition at line 104 of file cellPointWeight.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.