fieldInterpolation< Type, InterpolationType > Class Template Reference
Inheritance diagram for fieldInterpolation< Type, InterpolationType >:
Collaboration diagram for fieldInterpolation< Type, InterpolationType >:

Public Member Functions

virtual tmp< Field< Type > > interpolate (const vectorField &position, const labelList &celli, const labelList &facei=NullObjectRef< labelList >()) const
 Interpolate field to the given points in the given cells. More...
 
virtual tmp< Field< Type > > interpolate (const Field< barycentric > &coordinates, const labelList &celli, const labelList &tetFacei, const labelList &tetPti, const labelList &facei=NullObjectRef< labelList >()) const
 Interpolate field to the given coordinates in the given tetrahedra. More...
 
- Public Member Functions inherited from interpolation< Type >
 TypeName ("interpolation")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const VolField< Type > &psi),(psi))
 
 interpolation (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolation (const interpolation< Type > &i)
 Copy constructor. More...
 
virtual autoPtr< interpolation< Type > > clone () const =0
 Clone. More...
 
virtual ~interpolation ()
 Destructor. More...
 
const VolField< Type > & psi () const
 Return the field to be interpolated. More...
 
virtual Type interpolate (const vector &position, const label celli, const label facei=-1) const =0
 Interpolate field to the given point in the given cell. More...
 
virtual Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Interpolate field to the given coordinates in the tetrahedron. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from interpolation< Type >
static autoPtr< interpolation< Type > > New (const word &interpolationType, const VolField< Type > &psi)
 Return a reference to the specified interpolation scheme. More...
 
static autoPtr< interpolation< Type > > New (const dictionary &interpolationSchemes, const VolField< Type > &psi)
 Return a reference to the selected interpolation scheme. More...
 
- Protected Attributes inherited from interpolation< Type >
const VolField< Type > & psi_
 The vol field to interpolate. More...
 
const polyMeshmesh_
 Reference to the mesh. More...
 

Detailed Description

template<class Type, class InterpolationType>
class Foam::fieldInterpolation< Type, InterpolationType >

Definition at line 177 of file interpolation.H.

Member Function Documentation

◆ interpolate() [1/2]

Foam::tmp< Foam::Field< Type > > interpolate ( const vectorField position,
const labelList celli,
const labelList facei = NullObjectRef<labelList>() 
) const
virtual

Interpolate field to the given points in the given cells.

Implements interpolation< Type >.

Definition at line 111 of file interpolation.C.

◆ interpolate() [2/2]

Foam::tmp< Foam::Field< Type > > interpolate ( const Field< barycentric > &  coordinates,
const labelList celli,
const labelList tetFacei,
const labelList tetPti,
const labelList facei = NullObjectRef<labelList>() 
) const
virtual

Interpolate field to the given coordinates in the given tetrahedra.

Implements interpolation< Type >.

Definition at line 139 of file interpolation.C.

References forAll, tmp< T >::ref(), and List< T >::size().

Here is the call graph for this function:

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