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

Uses the cell value for any location within the cell. More...

#include <interpolationCell.H>

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

Public Member Functions

 TypeName ("cell")
 Runtime type information.
 interpolationCell (const GeometricField< Type, fvPatchField, volMesh > &psi)
 Construct from components.
Type interpolate (const vector &position, const label celli, const label facei=-1) const
 Returns the cell value.
Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Returns the cell value corresponding to the given 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.

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.
Protected Attributes inherited from interpolation< Type >
const GeometricField< Type, fvPatchField, volMesh > & psi_
const polyMeshpMesh_
const vectorFieldpMeshPoints_
const faceListpMeshFaces_
const vectorFieldpMeshFaceCentres_
const vectorFieldpMeshFaceAreas_

Detailed Description

template<class Type>
class Foam::interpolationCell< Type >

Uses the cell value for any location within the cell.

Definition at line 44 of file interpolationCell.H.

Constructor & Destructor Documentation

◆ interpolationCell()

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

Construct from components.

Definition at line 27 of file interpolationCell.C.

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

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "cell" )

Runtime type information.

References interpolation< Type >::psi().

Here is the call graph for this function:

◆ interpolate() [1/2]

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

Returns the cell value.

Implements interpolation< Type >.

Definition at line 72 of file interpolationCell.H.

References interpolation< Type >::psi_.

◆ interpolate() [2/2]

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

Returns the cell value corresponding to the given tetrahedron.

Reimplemented from interpolation< Type >.

Definition at line 85 of file interpolationCell.H.

References tetIndices::cell(), coordinates(), and interpolation< Type >::psi_.

Here is the call graph for this function:

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