interpolationCellPointWallModified< Type > Class Template Reference

As interpolationCellPoint, but with the point field modified on wall faces. More...

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

Public Member Functions

 TypeName ("cellPointWallModified")
 Runtime type information. More...
 
 interpolationCellPointWallModified (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolationCellPointWallModified (const interpolationCellPointWallModified< Type > &i)
 Copy construct. More...
 
virtual autoPtr< interpolation< Type > > clone () const
 Clone. More...
 
template<class TYPE >
Foam::tmp< Foam::PointField< TYPE > > calcPointField (const VolField< TYPE > &psi) const
 
- Public Member Functions inherited from interpolationCellPoint< Type >
 TypeName ("cellPoint")
 Runtime type information. More...
 
 interpolationCellPoint (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolationCellPoint (const interpolationCellPoint< Type > &i)
 Copy construct. More...
 
 interpolationCellPoint (const VolField< Type > &psi, tmp< PointField< Type >> psip)
 Construct from components. More...
 
Type interpolate (const cellPointWeight &cpw) const
 Interpolate field for the given cellPointWeight. 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...
 
- Public Member Functions inherited from fieldInterpolation< Type, interpolationCellPoint< Type > >
virtual tmp< Field< Type > > interpolate (const vectorField &position, const labelList &celli, const labelList &facei=NullObjectRef< labelList >()) const
 Interpolate field to the given points in the given cells. More...
 
virtual tmp< Field< Type > > interpolate (const Field< barycentric > &coordinates, const labelList &celli, const labelList &tetFacei, const labelList &tetPti, const labelList &facei=NullObjectRef< labelList >()) const
 Interpolate field to the given coordinates in the given tetrahedra. More...
 
- Public Member Functions inherited from interpolation< Type >
 TypeName ("interpolation")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const VolField< Type > &psi),(psi))
 
 interpolation (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolation (const interpolation< Type > &i)
 Copy constructor. More...
 
virtual ~interpolation ()
 Destructor. More...
 
const VolField< Type > & psi () const
 Return the field to be interpolated. More...
 
- Public Member Functions inherited from interpolationVolPointInterpolation< Type >
 TypeName ("interpolationVolPointInterpolation")
 Runtime type information. More...
 
 interpolationVolPointInterpolation (const VolField< Type > &psi)
 Construct from components. More...
 
 interpolationVolPointInterpolation (const interpolationVolPointInterpolation< Type > &i)
 Copy construct. More...
 
 interpolationVolPointInterpolation (const VolField< Type > &psi, tmp< PointField< Type >> psip)
 Construct from components. More...
 
virtual ~interpolationVolPointInterpolation ()
 
const PointField< Type > & psip () const
 Access the point field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from interpolation< Type >
static autoPtr< interpolation< Type > > New (const word &interpolationType, const VolField< Type > &psi)
 Return a reference to the specified interpolation scheme. More...
 
static autoPtr< interpolation< Type > > New (const dictionary &interpolationSchemes, const VolField< Type > &psi)
 Return a reference to the selected interpolation scheme. More...
 
- Protected Attributes inherited from interpolation< Type >
const VolField< Type > & psi_
 The vol field to interpolate. More...
 
const polyMeshmesh_
 Reference to the mesh. More...
 
- Protected Attributes inherited from interpolationVolPointInterpolation< Type >
const PointField< Type > psip_
 Interpolated volfield. More...
 

Detailed Description

template<class Type>
class Foam::interpolationCellPointWallModified< Type >

As interpolationCellPoint, but with the point field modified on wall faces.

This method is defined only for vectors. The point field is extrapolated from the cells to the wall faces, and then rotated towards the (reverse) point normal so that the vectors do not point out of the domain. The result is also scaled so so if the necessary rotation exceeds 90 degrees, it is clamped to zero.

This prevents unresolvable drag-rebound couplings when applied to the velocity interpolation in a Lagrangian simulation.

Definition at line 55 of file interpolationCellPointWallModified.H.

Constructor & Destructor Documentation

◆ interpolationCellPointWallModified() [1/2]

interpolationCellPointWallModified ( const VolField< Type > &  psi)

Construct from components.

Definition at line 324 of file interpolationCellPointWallModified.C.

◆ interpolationCellPointWallModified() [2/2]

Copy construct.

Definition at line 335 of file interpolationCellPointWallModified.C.

Member Function Documentation

◆ TypeName()

TypeName ( "cellPointWallModified"  )

Runtime type information.

◆ clone()

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

Clone.

Reimplemented from interpolationCellPoint< Type >.

Definition at line 94 of file interpolationCellPointWallModified.H.

◆ calcPointField()

Foam::tmp<Foam::PointField<TYPE> > calcPointField ( const VolField< TYPE > &  psi) const

Definition at line 37 of file interpolationCellPointWallModified.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

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