Loading...
Searching...
No Matches
cellPointWeight Class Reference

Foam::cellPointWeight. More...

#include <cellPointWeight.H>

Inheritance diagram for cellPointWeight:
Collaboration diagram for cellPointWeight:

Public Member Functions

 cellPointWeight (const polyMesh &mesh, const vector &position, const label celli, const label facei=-1)
 Construct from components.
label cell () const noexcept
 Cell index.
const barycentricweights () const noexcept
 Interpolation weights.
const triFacefaceVertices () const noexcept
 Interpolation addressing for points on face.

Static Public Attributes

static int debug
 Debug switch.
static scalar tol
 Tolerance used in calculating barycentric coordinates.

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.
barycentric weights_
 Weights applied to tet vertices.
triFace faceVertices_
 Face vertex indices.

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 235 of file cellPointWeight.C.

References celli_, findTetrahedron(), findTriangle(), and mesh.

Referenced by cellPointWeightWallModified::cellPointWeightWallModified().

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

Member Function Documentation

◆ findTetrahedron()

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

◆ findTriangle()

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

◆ cell()

label cell ( ) const
inlinenoexcept

Cell index.

Definition at line 126 of file cellPointWeight.H.

References celli_, and Foam::noexcept.

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

Here is the caller graph for this function:

◆ weights()

const barycentric & weights ( ) const
inlinenoexcept

Interpolation weights.

Definition at line 134 of file cellPointWeight.H.

References Foam::noexcept, and 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 142 of file cellPointWeight.H.

References faceVertices_, and Foam::noexcept.

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 60 of file cellPointWeight.H.

Referenced by cell(), and cellPointWeight().

◆ weights_

barycentric weights_
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 cellPointWeightWallModified::cellPointWeightWallModified(), findTetrahedron(), findTriangle(), and weights().

◆ faceVertices_

triFace faceVertices_
protected

Face vertex indices.

Definition at line 72 of file cellPointWeight.H.

Referenced by faceVertices(), findTetrahedron(), and findTriangle().

◆ debug

int debug
static

Debug switch.

Definition at line 97 of file cellPointWeight.H.

Referenced by findTetrahedron(), and findTriangle().

◆ tol

Foam::scalar tol
static

Tolerance used in calculating barycentric coordinates.

(applied to normalised values)

Definition at line 104 of file cellPointWeight.H.

Referenced by findTetrahedron(), and findTriangle().


The documentation for this class was generated from the following files:
  • src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight.H
  • src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight.C