cellPointWeight Class Reference

Foam::cellPointWeight. More...

Inheritance diagram for cellPointWeight:
[legend]
Collaboration diagram for cellPointWeight:
[legend]

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 barycentricweights () const noexcept
 Interpolation weights. More...
 
const triFacefaceVertices () 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...
 

Detailed Description

Constructor & Destructor Documentation

◆ cellPointWeight()

cellPointWeight ( const polyMesh mesh,
const vector position,
const label  celli,
const label  facei = -1 
)

Construct from components.

Definition at line 242 of file cellPointWeight.C.

References cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), and mesh.

Here is the call graph for this function:

Member Function Documentation

◆ findTetrahedron()

void findTetrahedron ( const polyMesh mesh,
const vector position,
const label  celli 
)
protected

Definition at line 40 of file cellPointWeight.C.

References polyMeshTetDecomposition::cellTetIndices(), primitiveMesh::cellVolumes(), cellPointWeight::debug, Foam::det(), PointHit< PointType >::distance(), Foam::endl(), tetIndices::faceTriIs(), cellPointWeight::faceVertices_, forAll, Foam::mag(), mesh, tetrahedron< Point, PointRef >::nearestPoint(), Foam::nl, tetrahedron< Point, PointRef >::pointToBarycentric(), Foam::Pout, tetIndices::tet(), cellPointWeight::tol, and cellPointWeight::weights_.

Referenced by cellPointWeight::cellPointWeight().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findTriangle()

void findTriangle ( const polyMesh mesh,
const vector position,
const label  facei 
)
protected

Definition at line 134 of file cellPointWeight.C.

References Foam::det(), PointHit< PointType >::distance(), Foam::endl(), primitiveMesh::faceAreas(), polyMesh::faceOwner(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), tetIndices::faceTriIs(), forAll, Foam::mag(), Foam::magSqr(), mesh, triangle< Point, PointRef >::nearestPoint(), Foam::nl, triangle< Point, PointRef >::pointToBarycentric(), and Foam::Pout.

Referenced by cellPointWeight::cellPointWeight().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cell()

label cell ( ) const
inlinenoexcept

Cell index.

Definition at line 114 of file cellPointWeight.H.

References cellPointWeight::celli_.

Referenced by interpolationCellPoint< Type >::interpolate().

Here is the caller graph for this function:

◆ weights()

const barycentric & weights ( ) const
inlinenoexcept

Interpolation weights.

Definition at line 120 of file cellPointWeight.H.

References cellPointWeight::weights_.

Referenced by interpolationCellPoint< Type >::interpolate().

Here is the caller graph for this function:

◆ faceVertices()

const triFace & faceVertices ( ) const
inlinenoexcept

Interpolation addressing for points on face.

Definition at line 126 of file cellPointWeight.H.

References cellPointWeight::faceVertices_.

Referenced by interpolationCellPoint< Type >::interpolate().

Here is the caller graph for this function:

Member Data Documentation

◆ celli_

const label celli_
protected

Cell index.

Definition at line 62 of file cellPointWeight.H.

Referenced by cellPointWeight::cell().

◆ weights_

barycentric weights_
protected

Weights applied to tet vertices.

Equal to the barycentric coordinates of the interpolation position.

Definition at line 66 of file cellPointWeight.H.

Referenced by cellPointWeightWallModified::cellPointWeightWallModified(), cellPointWeight::findTetrahedron(), and cellPointWeight::weights().

◆ faceVertices_

triFace faceVertices_
protected

Face vertex indices.

Definition at line 69 of file cellPointWeight.H.

Referenced by cellPointWeight::faceVertices(), and cellPointWeight::findTetrahedron().

◆ debug

int debug
static

Debug switch.

Definition at line 92 of file cellPointWeight.H.

Referenced by cellPointWeight::findTetrahedron().

◆ tol

Foam::scalar tol
static

Tolerance used in calculating barycentric coordinates.

(applied to normalised values)

Definition at line 96 of file cellPointWeight.H.

Referenced by cellPointWeight::findTetrahedron().


The documentation for this class was generated from the following files: