Foam::cellPointWeight. More...
Public Member Functions | |
ClassName ("cellPointWeight") | |
Type information. More... | |
cellPointWeight (const polyMesh &mesh, const vector &position, const label celli, const label facei=-1) | |
Construct from components. More... | |
label | cell () const |
Cell index. More... | |
const barycentric & | weights () const |
Interpolation weights. More... | |
const triFace & | faceVertices () const |
Interpolation addressing for points on face. More... | |
Static Public Attributes | |
static scalar | tol |
Tolerance used in calculating barycentric co-ordinates. 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. Equal to the barycentric coordinates. More... | |
triFace | faceVertices_ |
Face vertex indices. More... | |
Definition at line 52 of file cellPointWeight.H.
cellPointWeight | ( | const polyMesh & | mesh, |
const vector & | position, | ||
const label | celli, | ||
const label | facei = -1 |
||
) |
Construct from components.
Definition at line 245 of file cellPointWeight.C.
Referenced by cellPointWeight::findTriangle().
|
protected |
Definition at line 43 of file cellPointWeight.C.
References polyMeshTetDecomposition::cellTetIndices(), primitiveMesh::cellVolumes(), Foam::det(), PointHit< Point >::distance(), Foam::endl(), tetIndices::faceTriIs(), cellPointWeight::findTriangle(), forAll, Foam::mag(), tetrahedron< Point, PointRef >::nearestPoint(), Foam::nl, tetrahedron< Point, PointRef >::pointToBarycentric(), Foam::Pout, and tetIndices::tet().
Definition at line 137 of file cellPointWeight.C.
References cellPointWeight::cellPointWeight(), Foam::det(), PointHit< Point >::distance(), Foam::endl(), polyMesh::faceOwner(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), tetIndices::faceTriIs(), forAll, Foam::mag(), primitiveMesh::magFaceAreas(), triangle< Point, PointRef >::nearestPoint(), Foam::nl, triangle< Point, PointRef >::pointToBarycentric(), Foam::Pout, and Foam::sqr().
Referenced by cellPointWeight::findTetrahedron().
ClassName | ( | "cellPointWeight" | ) |
Type information.
Cell index.
Definition at line 111 of file cellPointWeight.H.
References cellPointWeight::celli_.
Referenced by interpolationCellPoint< Foam::Vector >::interpolate().
|
inline |
Interpolation weights.
Definition at line 117 of file cellPointWeight.H.
References cellPointWeight::weights_.
Referenced by interpolationCellPoint< Foam::Vector >::interpolate().
|
inline |
Interpolation addressing for points on face.
Definition at line 123 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 63 of file cellPointWeight.H.
Referenced by cellPointWeight::weights().
|
protected |
Face vertex indices.
Definition at line 66 of file cellPointWeight.H.
Referenced by cellPointWeight::faceVertices().
|
static |
Tolerance used in calculating barycentric co-ordinates.
(applied to normalised values)
Definition at line 93 of file cellPointWeight.H.