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 244 of file cellPointWeight.C.
References cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), mesh, and Foam::tracking::position().

|
protected |
Definition at line 42 of file cellPointWeight.C.
References polyMeshTetDecomposition::cellTetIndices(), Foam::cutPoly::cellVolume(), primitiveMesh::cellVolumes(), Foam::det(), PointHit< Point >::distance(), Foam::endl(), tetIndices::faceTriIs(), cellPointWeight::faceVertices_, forAll, Foam::mag(), mesh, tetrahedron< Point, PointRef >::nearestPoint(), Foam::nl, tetrahedron< Point, PointRef >::pointToBarycentric(), Foam::tracking::position(), Foam::Pout, tetIndices::tet(), cellPointWeight::tol, and cellPointWeight::weights_.
Referenced by cellPointWeight::cellPointWeight().


Definition at line 136 of file cellPointWeight.C.
References Foam::det(), PointHit< Point >::distance(), Foam::endl(), polyMesh::faceOwner(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), tetIndices::faceTriIs(), forAll, Foam::mag(), primitiveMesh::magFaceAreas(), mesh, triangle< Point, PointRef >::nearestPoint(), Foam::nl, triangle< Point, PointRef >::pointToBarycentric(), Foam::tracking::position(), Foam::Pout, and Foam::sqr().
Referenced by cellPointWeight::cellPointWeight().


| ClassName | ( | "cellPointWeight" | ) |
Type information.
Cell index.
Definition at line 111 of file cellPointWeight.H.
References cellPointWeight::celli_.
Referenced by interpolationCellPoint< Type >::interpolate().

|
inline |
Interpolation weights.
Definition at line 117 of file cellPointWeight.H.
References cellPointWeight::weights_.
Referenced by interpolationCellPoint< Type >::interpolate().

|
inline |
Interpolation addressing for points on face.
Definition at line 123 of file cellPointWeight.H.
References cellPointWeight::faceVertices_.
Referenced by interpolationCellPoint< Type >::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::findTetrahedron(), and cellPointWeight::weights().
|
protected |
Face vertex indices.
Definition at line 66 of file cellPointWeight.H.
Referenced by cellPointWeight::faceVertices(), and cellPointWeight::findTetrahedron().
|
static |
Tolerance used in calculating barycentric co-ordinates.
(applied to normalised values)
Definition at line 93 of file cellPointWeight.H.
Referenced by cellPointWeight::findTetrahedron().