Loading...
Searching...
No Matches
PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

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

#include <PatchToPatchInterpolation.H>

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.
 ~PatchToPatchInterpolation ()
 Destructor.
intersection::algorithm projectionAlgo () const
 Return ype of intersection algorithm to use in projection.
intersection::direction projectionDir () const
 Return direction projection to use in projection.
const scalarFieldpointDistanceToIntersection () const
 Return distance to intersection for patch points.
const scalarFieldfaceDistanceToIntersection () const
 Return distance to intersection for patch face centres.
bool movePoints ()
 Correct weighting factors for moving mesh.
template<class Type>
tmp< Field< Type > > pointInterpolate (const Field< Type > &pf) const
 Interpolate point field.
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.
template<class Type>
tmp< Field< Type > > faceInterpolate (const tmp< Field< Type > > &tpf) const
Public Member Functions inherited from PatchToPatchInterpolationBase
 ClassName ("PatchToPatchInterpolation")
 Runtime type information.
 PatchToPatchInterpolationBase () noexcept=default
 Default construct.

Additional Inherited Members

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

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()

template<class FromPatch, class ToPatch>
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 98 of file PatchToPatchInterpolation.C.

◆ ~PatchToPatchInterpolation()

template<class FromPatch, class ToPatch>
~PatchToPatchInterpolation ( )

Destructor.

Definition at line 116 of file PatchToPatchInterpolation.C.

Member Function Documentation

◆ projectionAlgo()

template<class FromPatch, class ToPatch>
intersection::algorithm projectionAlgo ( ) const
inline

Return ype of intersection algorithm to use in projection.

Definition at line 261 of file PatchToPatchInterpolation.H.

◆ projectionDir()

template<class FromPatch, class ToPatch>
intersection::direction projectionDir ( ) const
inline

Return direction projection to use in projection.

Definition at line 269 of file PatchToPatchInterpolation.H.

◆ pointDistanceToIntersection()

template<class FromPatch, class ToPatch>
const scalarField & pointDistanceToIntersection ( ) const

Return distance to intersection for patch points.

Definition at line 127 of file PatchToPatchInterpolation.C.

◆ faceDistanceToIntersection()

template<class FromPatch, class ToPatch>
const scalarField & faceDistanceToIntersection ( ) const

Return distance to intersection for patch face centres.

Definition at line 141 of file PatchToPatchInterpolation.C.

◆ movePoints()

template<class FromPatch, class ToPatch>
bool movePoints ( )

Correct weighting factors for moving mesh.

Definition at line 153 of file PatchToPatchInterpolation.C.

◆ pointInterpolate() [1/2]

template<class FromPatch, class ToPatch>
template<class Type>
tmp< Field< Type > > pointInterpolate ( const Field< Type > & pf) const

Interpolate point field.

Definition at line 36 of file PatchToPatchInterpolate.C.

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

Referenced by pointInterpolate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointInterpolate() [2/2]

template<class FromPatch, class ToPatch>
template<class Type>
tmp< Field< Type > > pointInterpolate ( const tmp< Field< Type > > & tpf) const

Definition at line 81 of file PatchToPatchInterpolate.C.

References pointInterpolate().

Here is the call graph for this function:

◆ faceInterpolate() [1/2]

template<class FromPatch, class ToPatch>
template<class Type>
tmp< Field< Type > > faceInterpolate ( const Field< Type > & pf) const

Interpolate face field.

Definition at line 95 of file PatchToPatchInterpolate.C.

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

Referenced by faceInterpolate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceInterpolate() [2/2]

template<class FromPatch, class ToPatch>
template<class Type>
tmp< Field< Type > > faceInterpolate ( const tmp< Field< Type > > & tpf) const

Definition at line 143 of file PatchToPatchInterpolate.C.

References faceInterpolate().

Here is the call graph for this function:

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