Loading...
Searching...
No Matches
interpolationCellPoint< Type > Class Template Reference

Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate within them. More...

#include <interpolationCellPoint.H>

Inheritance diagram for interpolationCellPoint< Type >:
Collaboration diagram for interpolationCellPoint< Type >:

Public Member Functions

 TypeName ("cellPoint")
 Runtime type information.
 interpolationCellPoint (const GeometricField< Type, fvPatchField, volMesh > &psi)
 Construct from components.
Type interpolate (const cellPointWeight &cpw) const
 Interpolate field for the given cellPointWeight.
Type interpolate (const vector &position, const label celli, const label facei=-1) const
 Interpolate field to the given point in the given cell.
Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Interpolate field to the given coordinates in the tetrahedron.
Public Member Functions inherited from interpolation< Type >
virtual const wordtype () const =0
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const GeometricField< Type, fvPatchField, volMesh > &psi),(psi))
 interpolation (const GeometricField< Type, fvPatchField, volMesh > &psi)
 Construct from components.
virtual ~interpolation ()=default
 Destructor.
const GeometricField< Type, fvPatchField, volMesh > & psi () const noexcept
 Return the field to be interpolated.

Protected Attributes

const GeometricField< Type, pointPatchField, pointMeshpsip_
 Interpolated volfield.
Protected Attributes inherited from interpolation< Type >
const GeometricField< Type, fvPatchField, volMesh > & psi_
const polyMeshpMesh_
const vectorFieldpMeshPoints_
const faceListpMeshFaces_
const vectorFieldpMeshFaceCentres_
const vectorFieldpMeshFaceAreas_

Additional Inherited Members

Static Public Member Functions inherited from interpolation< Type >
static autoPtr< interpolation< Type > > New (const word &interpolationType, const GeometricField< Type, fvPatchField, volMesh > &psi)
 Return a reference to the specified interpolation scheme.
static autoPtr< interpolation< Type > > New (const dictionary &interpolationSchemes, const GeometricField< Type, fvPatchField, volMesh > &psi)
 Return a reference to the selected interpolation scheme.

Detailed Description

template<class Type>
class Foam::interpolationCellPoint< Type >

Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate within them.

Definition at line 44 of file interpolationCellPoint.H.

Constructor & Destructor Documentation

◆ interpolationCellPoint()

template<class Type>
interpolationCellPoint ( const GeometricField< Type, fvPatchField, volMesh > & psi)
explicit

Construct from components.

Definition at line 27 of file interpolationCellPoint.C.

References interpolate(), interpolation< Type >::interpolation(), mesh, Foam::name(), interpolation< Type >::New(), interpolation< Type >::psi(), and psip_.

Referenced by interpolationCellPointWallModified< Type >::interpolationCellPointWallModified().

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

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "cellPoint" )

Runtime type information.

References coordinates(), and interpolation< Type >::psi().

Here is the call graph for this function:

◆ interpolate() [1/3]

◆ interpolate() [2/3]

template<class Type>
Type interpolate ( const vector & position,
const label celli,
const label facei = -1 ) const
inlinevirtual

Interpolate field to the given point in the given cell.

Implements interpolation< Type >.

Reimplemented in interpolationCellPointWallModified< Type >.

Definition at line 42 of file interpolationCellPointI.H.

References interpolate(), and interpolation< Type >::pMesh_.

Here is the call graph for this function:

◆ interpolate() [3/3]

template<class Type>
Type interpolate ( const barycentric & coordinates,
const tetIndices & tetIs,
const label facei = -1 ) const
inlinevirtual

Interpolate field to the given coordinates in the tetrahedron.

defined by the given indices.

Reimplemented from interpolation< Type >.

Reimplemented in interpolationCellPointWallModified< Type >.

Definition at line 54 of file interpolationCellPointI.H.

References tetIndices::cell(), coordinates(), Foam::exit(), tetIndices::face(), tetIndices::faceTriIs(), Foam::FatalError, FatalErrorInFunction, and interpolation< Type >::psi_.

Here is the call graph for this function:

Member Data Documentation

◆ psip_

template<class Type>
const GeometricField<Type, pointPatchField, pointMesh> psip_
protected

Interpolated volfield.

Definition at line 55 of file interpolationCellPoint.H.

Referenced by interpolate(), and interpolationCellPoint().


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