FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

interpolation< Type > Class Template Reference

Abstract base class for interpolation. More...

#include <finiteVolume/interpolation.H>


Detailed Description

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

Abstract base class for interpolation.

Definition at line 54 of file interpolation.H.

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

List of all members.

Public Member Functions

virtual const word &  type () 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 ()
const GeometricField< Type,
fvPatchField, volMesh > &  
psi () const
 Return the field to be interpolated.
virtual Type  interpolate (const vector &position, const label nCell, const label facei=-1) const =0
 Interpolate field to the given point in the given cell.

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

Protected Attributes

const GeometricField< Type,
fvPatchField, volMesh > &  
psi_
const polyMesh &  pMesh_
const vectorField &  pMeshPoints_
const faceList &  pMeshFaces_
const vectorField &  pMeshFaceCentres_
const vectorField &  pMeshFaceAreas_

Constructor & Destructor Documentation

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

Construct from components.

Definition at line 42 of file interpolation.C.

virtual ~interpolation (  ) [inline, virtual]

Definition at line 118 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 34 of file newInterpolation.C.

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

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 63 of file newInterpolation.C.

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

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

Return the field to be interpolated.

Definition at line 125 of file interpolation.H.

virtual Type interpolate ( const vector &   position,
const label   nCell,
const label   facei = -1  
) const [pure virtual]

Member Data Documentation

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

Definition at line 61 of file interpolation.H.

Referenced by interpolation< 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: