Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
interpolation< Type > Class Template Referenceabstract

Abstract base class for interpolation. More...

Inheritance diagram for interpolation< Type >:
Inheritance graph
[legend]
Collaboration diagram for interpolation< Type >:
Collaboration graph
[legend]

Public Member Functions

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...
 
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 vector &position, const tetIndices &tetIs, const label facei=-1) const
 Interpolate field to the given point in the tetrahedron. More...
 

Static Public Member Functions

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

const GeometricField< Type, fvPatchField, volMesh > & psi_
 
const polyMeshpMesh_
 
const vectorFieldpMeshPoints_
 
const faceListpMeshFaces_
 
const vectorFieldpMeshFaceCentres_
 
const vectorFieldpMeshFaceAreas_
 

Detailed Description

template<class Type>
class Foam::interpolation< Type >

Abstract base class for interpolation.

Definition at line 57 of file mappedPatchFieldBase.H.

Constructor & Destructor Documentation

interpolation ( const GeometricField< Type, fvPatchField, volMesh > &  psi)

Construct from components.

Definition at line 35 of file interpolation.C.

virtual ~interpolation ( )
inlinevirtual

Destructor.

Definition at line 117 of file interpolation.H.

Member Function Documentation

virtual const word& type ( ) const
pure virtual

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
interpolation< Type >  ,
dictionary  ,
(const GeometricField< Type, fvPatchField, volMesh > &psi ,
(psi  
)
Foam::autoPtr< Foam::interpolation< Type > > New ( const word interpolationType,
const GeometricField< Type, fvPatchField, volMesh > &  psi 
)
static

Return a reference to the specified interpolation scheme.

Definition at line 33 of file interpolationNew.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOobject::name(), Foam::nl, and psi.

Here is the call graph for this function:

Foam::autoPtr< Foam::interpolation< Type > > New ( const dictionary interpolationSchemes,
const GeometricField< Type, fvPatchField, volMesh > &  psi 
)
static

Return a reference to the selected interpolation scheme.

Definition at line 57 of file interpolationNew.C.

References dictionary::lookup(), IOobject::name(), Foam::New(), and psi.

Here is the call graph for this function:

const GeometricField<Type, fvPatchField, volMesh>& psi ( ) const
inline

Return the field to be interpolated.

Definition at line 124 of file interpolation.H.

Referenced by sampledCuttingPlane::interpolateField(), sampledIsoSurface::interpolateField(), and distanceSurface::interpolateField().

Here is the caller graph for this function:

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

Interpolate field to the given point in the tetrahedron.

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

Reimplemented in interpolationCellPoint< Type >, interpolationCellPoint< scalar >, interpolationCellPoint< Foam::Vector >, and interpolationCellPointWallModified< Type >.

Definition at line 142 of file interpolation.H.

Member Data Documentation

const GeometricField<Type, fvPatchField, volMesh>& psi_
protected

Definition at line 61 of file interpolation.H.

Referenced by interpolation< Foam::Vector >::psi().

const polyMesh& pMesh_
protected

Definition at line 63 of file interpolation.H.

const vectorField& pMeshPoints_
protected

Definition at line 64 of file interpolation.H.

const faceList& pMeshFaces_
protected

Definition at line 65 of file interpolation.H.

const vectorField& pMeshFaceCentres_
protected

Definition at line 66 of file interpolation.H.

const vectorField& pMeshFaceAreas_
protected

Definition at line 67 of file interpolation.H.


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