interpolationBase< Type > Class Template Referenceabstract
Inheritance diagram for interpolationBase< Type >:
Collaboration diagram for interpolationBase< Type >:

Public Member Functions

 interpolationBase (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolationBase (const interpolationBase< Type > &i)
 Copy constructor. More...
 
virtual ~interpolationBase ()
 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 to the given point in the given cell. More...
 
virtual tmp< Field< Type > > interpolate (const vectorField &position, const labelList &celli, const labelList &facei=NullObjectRef< labelList >()) const =0
 As above, but for a field. More...
 
virtual Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Interpolate to the given coordinates in the. 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 =0
 As above, but for a field. More...
 

Protected Attributes

const VolField< Type > & psi_
 The vol field to interpolate. More...
 
const polyMeshmesh_
 Reference to the mesh. More...
 

Detailed Description

template<class Type>
class Foam::interpolationBase< Type >

Definition at line 60 of file interpolation.H.

Constructor & Destructor Documentation

◆ interpolationBase() [1/2]

interpolationBase ( const VolField< Type > &  psi)

Construct from components.

Definition at line 31 of file interpolation.C.

◆ interpolationBase() [2/2]

interpolationBase ( const interpolationBase< Type > &  i)

Copy constructor.

Definition at line 39 of file interpolation.C.

◆ ~interpolationBase()

Destructor.

Definition at line 89 of file interpolation.C.

Member Function Documentation

◆ psi()

const VolField<Type>& psi ( ) const
inline

Return the field to be interpolated.

Definition at line 91 of file interpolation.H.

References interpolationBase< Type >::psi_.

◆ interpolate() [1/4]

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

Interpolate to the given point in the given cell.

◆ interpolate() [2/4]

virtual tmp<Field<Type> > interpolate ( const vectorField position,
const labelList celli,
const labelList facei = NullObjectReflabelList >() 
) const
pure virtual

As above, but for a field.

◆ interpolate() [3/4]

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

Interpolate to the given coordinates in the.

tetrahedron defined by the given indices. Calls interpolate function above here except where overridden by derived interpolation types.

Definition at line 106 of file interpolation.C.

References tetrahedron< Point, PointRef >::barycentricToPoint(), tetIndices::cell(), Foam::tracking::coordinates(), Foam::fvc::interpolate(), and tetIndices::tet().

Here is the call graph for this function:

◆ interpolate() [4/4]

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

As above, but for a field.

Member Data Documentation

◆ psi_

const VolField<Type>& psi_
protected

The vol field to interpolate.

Definition at line 67 of file interpolation.H.

Referenced by interpolationBase< Type >::psi().

◆ mesh_

const polyMesh& mesh_
protected

Reference to the mesh.

Definition at line 70 of file interpolation.H.


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