cellPointBase< Type > Class Template Reference
Inheritance diagram for cellPointBase< Type >:
Collaboration diagram for cellPointBase< Type >:

Public Member Functions

 cellPointBase (const VolField< Type > &psi)
 Construct from components. More...
 
 cellPointBase (const cellPointBase< Type > &i)
 Copy construct. More...
 
 cellPointBase (const VolField< Type > &psi, tmp< PointField< Type >> psip)
 Construct from components. More...
 
Type interpolate (const vector &position, const label celli, const label facei=-1) const
 Interpolate to the given point in the given cell. More...
 
Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Interpolate to the coordinates in the given tetrahedron. More...
 
- Public Member Functions inherited from volPointInterpolation< Type >
 TypeName ("volPointInterpolation")
 Runtime type information. More...
 
 volPointInterpolation (const VolField< Type > &psi)
 Construct from components. More...
 
 volPointInterpolation (const volPointInterpolation< Type > &i)
 Copy construct. More...
 
 volPointInterpolation (const VolField< Type > &psi, tmp< PointField< Type >> psip)
 Construct from components. More...
 
virtual ~volPointInterpolation ()
 
const PointField< Type > & psip () const
 Access the point field. More...
 

Protected Member Functions

void tetTransform (const tetIndices &tetIs, vector &x0, scalar &detA, barycentricTensor &T) const
 Return the transform associated with the given tetrahedron. More...
 
void tetFaceTriTransform (const tetIndices &tetIs, vector &x0, scalar &detA, barycentricTensor &T) const
 Return the transform associated with the face-triangle of the given. More...
 
barycentric y0 () const
 Return the barycentric origin for the above transforms. More...
 
tetIndices findTet (const point &x, const label celli, const label facei, vector &x0, scalar &detA, barycentricTensor &T) const
 Find the tetrahedron (or triangle) containing the given point, and. More...
 

Additional Inherited Members

- Protected Attributes inherited from volPointInterpolation< Type >
const PointField< Type > psip_
 Interpolated volfield. More...
 

Detailed Description

template<class Type>
class Foam::interpolations::cellPointBase< Type >

Definition at line 61 of file cellPoint_interpolation.H.

Constructor & Destructor Documentation

◆ cellPointBase() [1/3]

cellPointBase ( const VolField< Type > &  psi)

Construct from components.

Definition at line 31 of file cellPoint_interpolation.C.

References psi.

◆ cellPointBase() [2/3]

cellPointBase ( const cellPointBase< Type > &  i)

Copy construct.

Definition at line 45 of file cellPoint_interpolation.C.

References psi.

◆ cellPointBase() [3/3]

cellPointBase ( const VolField< Type > &  psi,
tmp< PointField< Type >>  psip 
)

Construct from components.

Definition at line 59 of file cellPoint_interpolation.C.

References psi.

Member Function Documentation

◆ tetTransform()

void tetTransform ( const tetIndices tetIs,
vector x0,
scalar &  detA,
barycentricTensor T 
) const
inlineprotected

Return the transform associated with the given tetrahedron.

Definition at line 32 of file cellPoint_interpolationI.H.

References Foam::saturationModels::A, tetIndices::cell(), tetIndices::faceTriIs(), and Foam::T().

Here is the call graph for this function:

◆ tetFaceTriTransform()

void tetFaceTriTransform ( const tetIndices tetIs,
vector x0,
scalar &  detA,
barycentricTensor T 
) const
inlineprotected

Return the transform associated with the face-triangle of the given.

tetrahedron

Definition at line 68 of file cellPoint_interpolationI.H.

References Foam::saturationModels::A, tetIndices::cell(), tetIndices::faceTriIs(), Foam::mag(), n, and Foam::T().

Here is the call graph for this function:

◆ y0()

Foam::barycentric y0
inlineprotected

Return the barycentric origin for the above transforms.

Definition at line 106 of file cellPoint_interpolationI.H.

◆ findTet()

Foam::tetIndices findTet ( const point x,
const label  celli,
const label  facei,
vector x0,
scalar &  detA,
barycentricTensor T 
) const
inlineprotected

Find the tetrahedron (or triangle) containing the given point, and.

also generate and return the associated transformation

Definition at line 113 of file cellPoint_interpolationI.H.

References Foam::cmptMin(), forAll, Foam::minDist(), Foam::T(), x, and Foam::y0().

Here is the call graph for this function:

◆ interpolate() [1/2]

Type interpolate ( const vector position,
const label  celli,
const label  facei = -1 
) const
inline

Interpolate to the given point in the given cell.

Definition at line 193 of file cellPoint_interpolationI.H.

References Foam::fvc::interpolate(), Foam::tracking::position(), Foam::T(), y, and Foam::y0().

Here is the call graph for this function:

◆ interpolate() [2/2]

Type interpolate ( const barycentric coordinates,
const tetIndices tetIs,
const label  facei = -1 
) const
inline

Interpolate to the coordinates in the given tetrahedron.

Definition at line 221 of file cellPoint_interpolationI.H.

References tetIndices::cell(), Foam::tracking::coordinates(), and tetIndices::faceTriIs().

Here is the call graph for this function:

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