All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
interpolationCell< Type > Class Template Reference

Uses the cell value for any point in the cell. More...

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

Public Member Functions

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

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. More...
 
static autoPtr< interpolation< Type > > New (const dictionary &interpolationSchemes, const GeometricField< Type, fvPatchField, volMesh > &psi)
 Return a reference to the selected interpolation scheme. More...
 
- 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 point in the cell.

Definition at line 48 of file interpolationCell.H.

Constructor & Destructor Documentation

◆ interpolationCell()

Construct from components.

Definition at line 33 of file interpolationCell.C.

References interpolationCell< Type >::interpolate().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "cell"  )

Runtime type information.

◆ interpolate() [1/2]

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

Interpolate field to the given point in the given cell.

Implements interpolation< Type >.

Definition at line 45 of file interpolationCell.C.

Referenced by interpolationCell< Type >::interpolate(), and interpolationCell< Type >::interpolationCell().

Here is the caller graph for this function:

◆ interpolate() [2/2]

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. This is an optimisation which skips calculating the position, as cell interpolation doesn't need it.

Reimplemented from interpolation< Type >.

Definition at line 82 of file interpolationCell.H.

References tetIndices::cell(), interpolationCell< Type >::interpolate(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.

Here is the call graph for this function:

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