cellPatchConstrained< Type > Class Template Reference

Basic piecewise-constant interpolation method. Interpolates to a point by using the value in the cell containing the point, unless the point is on a boundary face in which case the boundary value will be used. More...

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

Public Member Functions

 TypeName ("cellPatchConstrained")
 Runtime type information. More...
 
 cellPatchConstrained (const VolField< Type > &psi)
 Construct from components. More...
 
 cellPatchConstrained (const cellPatchConstrained< 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::cellPatchConstrained< Type >

Basic piecewise-constant interpolation method. Interpolates to a point by using the value in the cell containing the point, unless the point is on a boundary face in which case the boundary value will be used.

Source files

Definition at line 53 of file cellPatchConstrained.H.

Constructor & Destructor Documentation

◆ cellPatchConstrained() [1/2]

cellPatchConstrained ( const VolField< Type > &  psi)

Construct from components.

Definition at line 32 of file cellPatchConstrained.C.

◆ cellPatchConstrained() [2/2]

Copy construct.

Definition at line 42 of file cellPatchConstrained.C.

Member Function Documentation

◆ TypeName()

TypeName ( "cellPatchConstrained< Type >"  )

Runtime type information.

◆ clone()

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

Clone.

Definition at line 72 of file cellPatchConstrained.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 54 of file cellPatchConstrained.C.

References polyMesh::boundary(), mesh, primitiveMesh::nInternalFaces(), patchi, polyBoundaryMesh::patchIndices(), and fvMesh::poly().

Here is the call graph for this function:

◆ 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 97 of file cellPatchConstrained.H.


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