cell< Type > Class Template Reference

Basic piecewise-constant interpolation method. Interpolates to a point by using the value in the cell containing the point. More...

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

Public Member Functions

 TypeName ("cell")
 Runtime type information. More...
 
 cell (const VolField< Type > &psi)
 Construct from components. More...
 
 cell (const cell< Type > &i)
 Copy construct. More...
 
virtual autoPtr< interpolation< Type > > clone () const
 Clone. 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...
 

Detailed Description

template<class Type>
class Foam::interpolations::cell< Type >

Basic piecewise-constant interpolation method. Interpolates to a point by using the value in the cell containing the point.

Source files

Definition at line 52 of file cell_interpolation.H.

Constructor & Destructor Documentation

◆ cell() [1/2]

cell ( const VolField< Type > &  psi)

Construct from components.

Definition at line 32 of file cell_interpolation.C.

◆ cell() [2/2]

cell ( const cell< Type > &  i)

Copy construct.

Definition at line 39 of file cell_interpolation.C.

Member Function Documentation

◆ TypeName()

TypeName ( "cell< Type >"  )

Runtime type information.

◆ clone()

virtual autoPtr<interpolation<Type> > clone ( ) const
inlinevirtual

Clone.

Definition at line 71 of file cell_interpolation.H.

◆ interpolate() [1/2]

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

Interpolate field to the given point in the given cell.

Definition at line 48 of file cell_interpolation.C.

◆ interpolate() [2/2]

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

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.

Definition at line 96 of file cell_interpolation.H.


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