PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

Interpolation class dealing with transfer of data between two primitivePatches. More...

Inheritance diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:
Collaboration diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:

Public Member Functions

 PatchToPatchInterpolation (const FromPatch &fromPatch, const ToPatch &toPatch, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR)
 Construct from components. More...
 
 ~PatchToPatchInterpolation ()
 Destructor. More...
 
intersection::algorithm projectionAlgo () const
 Return ype of intersection algorithm to use in projection. More...
 
intersection::direction projectionDir () const
 Return direction projection to use in projection. More...
 
const scalarFieldpointDistanceToIntersection () const
 Return distance to intersection for patch points. More...
 
const scalarFieldfaceDistanceToIntersection () const
 Return distance to intersection for patch face centres. More...
 
bool movePoints ()
 Correct weighting factors for moving mesh. More...
 
template<class Type >
tmp< Field< Type > > pointInterpolate (const Field< Type > &pf) const
 Interpolate point field. More...
 
template<class Type >
tmp< Field< Type > > pointInterpolate (const tmp< Field< Type >> &tpf) const
 
template<class Type >
tmp< Field< Type > > faceInterpolate (const Field< Type > &pf) const
 Interpolate face field. More...
 
template<class Type >
tmp< Field< Type > > faceInterpolate (const tmp< Field< Type >> &tpf) const
 
- Public Member Functions inherited from PatchToPatchInterpolationBase
 ClassName ("PatchToPatchInterpolation")
 Runtime type information. More...
 
 PatchToPatchInterpolationBase () noexcept=default
 Default construct. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from PatchToPatchInterpolationBase
static scalar projectionTol () noexcept
 Access to projection tolerance. More...
 
static scalar setProjectionTol (const scalar tol)
 Change propagation tolerance, return previous value. More...
 
- Static Protected Attributes inherited from PatchToPatchInterpolationBase
static scalar projectionTol_ = 0.05
 Relative merge tolerance for projected points missing the target. More...
 
static const scalar directHitTol = 1e-5
 Direct hit tolerance. More...
 

Detailed Description

template<class FromPatch, class ToPatch>
class Foam::PatchToPatchInterpolation< FromPatch, ToPatch >

Interpolation class dealing with transfer of data between two primitivePatches.

Source files

Definition at line 122 of file PatchToPatchInterpolation.H.

Constructor & Destructor Documentation

◆ PatchToPatchInterpolation()

PatchToPatchInterpolation ( const FromPatch &  fromPatch,
const ToPatch &  toPatch,
const intersection::algorithm  alg = intersection::FULL_RAY,
const intersection::direction  dir = intersection::VECTOR 
)

Construct from components.

Definition at line 99 of file PatchToPatchInterpolation.C.

◆ ~PatchToPatchInterpolation()

Destructor.

Definition at line 122 of file PatchToPatchInterpolation.C.

Member Function Documentation

◆ projectionAlgo()

intersection::algorithm projectionAlgo ( ) const
inline

Return ype of intersection algorithm to use in projection.

Definition at line 261 of file PatchToPatchInterpolation.H.

◆ projectionDir()

intersection::direction projectionDir ( ) const
inline

Return direction projection to use in projection.

Definition at line 269 of file PatchToPatchInterpolation.H.

◆ pointDistanceToIntersection()

const scalarField & pointDistanceToIntersection ( ) const

Return distance to intersection for patch points.

Definition at line 133 of file PatchToPatchInterpolation.C.

◆ faceDistanceToIntersection()

const scalarField & faceDistanceToIntersection ( ) const

Return distance to intersection for patch face centres.

Definition at line 147 of file PatchToPatchInterpolation.C.

◆ movePoints()

bool movePoints ( )

Correct weighting factors for moving mesh.

Definition at line 159 of file PatchToPatchInterpolation.C.

◆ pointInterpolate() [1/2]

tmp< Field< Type > > pointInterpolate ( const Field< Type > &  pf) const

Interpolate point field.

Definition at line 37 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::New(), UList< Type >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ pointInterpolate() [2/2]

tmp< Field< Type > > pointInterpolate ( const tmp< Field< Type >> &  tpf) const

Definition at line 82 of file PatchToPatchInterpolate.C.

References tmp< T >::clear().

Here is the call graph for this function:

◆ faceInterpolate() [1/2]

tmp< Field< Type > > faceInterpolate ( const Field< Type > &  pf) const

Interpolate face field.

Definition at line 96 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::fv::ff(), forAll, Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ faceInterpolate() [2/2]

tmp< Field< Type > > faceInterpolate ( const tmp< Field< Type >> &  tpf) const

Definition at line 144 of file PatchToPatchInterpolate.C.


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