cellPointFace< Type > Class Template Reference

Piecewise-linear interpolation method. Uses volPointInterpolation to create values on the points and linear surfaceInterpolation to create values at the face-centres. Then uses a face-centre tetrahedral decomposition to linearly interpolate between the values at the points, at the face-centres and at the cell-centres. More...

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

Public Member Functions

 TypeName ("cellPointFace")
 Runtime type information. More...
 
 cellPointFace (const VolField< Type > &psi)
 Construct from components. More...
 
 cellPointFace (const cellPointFace< 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...
 
- Public Member Functions inherited from volPointInterpolation< Type >
 TypeName ("volPointInterpolation")
 Runtime type information. More...
 
 volPointInterpolation (const VolField< Type > &psi)
 Construct from components. More...
 
 volPointInterpolation (const volPointInterpolation< Type > &i)
 Copy construct. More...
 
 volPointInterpolation (const VolField< Type > &psi, tmp< PointField< Type >> psip)
 Construct from components. More...
 
virtual ~volPointInterpolation ()
 
const PointField< Type > & psip () const
 Access the point field. More...
 

Additional Inherited Members

- Protected Attributes inherited from volPointInterpolation< Type >
const PointField< Type > psip_
 Interpolated volfield. More...
 

Detailed Description

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

Piecewise-linear interpolation method. Uses volPointInterpolation to create values on the points and linear surfaceInterpolation to create values at the face-centres. Then uses a face-centre tetrahedral decomposition to linearly interpolate between the values at the points, at the face-centres and at the cell-centres.

Source files

Definition at line 55 of file cellPointFace.H.

Constructor & Destructor Documentation

◆ cellPointFace() [1/2]

cellPointFace ( const VolField< Type > &  psi)

Construct from components.

Definition at line 219 of file cellPointFace.C.

◆ cellPointFace() [2/2]

cellPointFace ( const cellPointFace< Type > &  i)

Copy construct.

Definition at line 231 of file cellPointFace.C.

Member Function Documentation

◆ TypeName()

TypeName ( "cellPointFace< Type >"  )

Runtime type information.

◆ clone()

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

Clone.

Definition at line 110 of file cellPointFace.H.

◆ interpolate()

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 245 of file cellPointFace.C.

References Foam::endl(), forAll, InfoInFunction, Foam::mag(), Foam::max(), Foam::min(), n, patchi, Foam::tracking::position(), List< T >::size(), Foam::tab, and Foam::Zero.

Here is the call graph for this function:

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