Loading...
Searching...
No Matches
interpolationCellPatchConstrained< Type > Class Template Reference

Uses the cell value for any point in the cell apart from a boundary face where it uses the boundary value directly. Note: will not work on an empty patch. More...

#include <interpolationCellPatchConstrained.H>

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

Public Member Functions

 TypeName ("cellPatchConstrained")
 Runtime type information.
 interpolationCellPatchConstrained (const GeometricField< Type, fvPatchField, volMesh > &psi)
 Construct from components.
Type interpolate (const vector &position, const label celli, const label facei=-1) const
 Interpolate field to the given point in the given cell.
Type interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const
 Interpolate field to the given coordinates in the tetrahedron.
Public Member Functions inherited from interpolation< Type >
virtual const wordtype () 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 ()=default
 Destructor.
const GeometricField< Type, fvPatchField, volMesh > & psi () const noexcept
 Return the field to be interpolated.

Additional Inherited Members

Static Public Member Functions inherited from interpolation< Type >
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 inherited from interpolation< Type >
const GeometricField< Type, fvPatchField, volMesh > & psi_
const polyMeshpMesh_
const vectorFieldpMeshPoints_
const faceListpMeshFaces_
const vectorFieldpMeshFaceCentres_
const vectorFieldpMeshFaceAreas_

Detailed Description

template<class Type>
class Foam::interpolationCellPatchConstrained< Type >

Uses the cell value for any point in the cell apart from a boundary face where it uses the boundary value directly. Note: will not work on an empty patch.

Definition at line 44 of file interpolationCellPatchConstrained.H.

Constructor & Destructor Documentation

◆ interpolationCellPatchConstrained()

template<class Type>
interpolationCellPatchConstrained ( const GeometricField< Type, fvPatchField, volMesh > & psi)

Construct from components.

Definition at line 27 of file interpolationCellPatchConstrained.C.

References interpolation< Type >::interpolation(), and interpolation< Type >::psi().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "cellPatchConstrained" )

Runtime type information.

References interpolation< Type >::psi().

Here is the call graph for this function:

◆ interpolate() [1/2]

template<class Type>
Type interpolate ( const vector & position,
const label celli,
const label facei = -1 ) const
virtual

Interpolate field to the given point in the given cell.

Implements interpolation< Type >.

Definition at line 39 of file interpolationCellPatchConstrained.C.

References pbm, and interpolation< Type >::psi_.

Referenced by interpolate().

Here is the caller graph for this function:

◆ interpolate() [2/2]

template<class Type>
Type interpolate ( const barycentric & coordinates,
const tetIndices & tetIs,
const label facei = -1 ) const
inlinevirtual

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.

Reimplemented from interpolation< Type >.

Definition at line 85 of file interpolationCellPatchConstrained.H.

References tetIndices::cell(), coordinates(), interpolate(), and VectorSpace< Form, Cmpt, Ncmpts >::zero.

Here is the call graph for this function:

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