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::algorithm::fullRay, const intersection::direction dir=intersection::direction::vector)
 Construct from components. More...
 
 PatchToPatchInterpolation (const PatchToPatchInterpolation &)=delete
 Disallow default bitwise copy construction. 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 scalarField & pointDistanceToIntersection () const
 Return distance to intersection for patch points. More...
 
const scalarField & faceDistanceToIntersection () 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
 
void operator= (const PatchToPatchInterpolation &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static scalar setProjectionTol (const scalar t)
 Set the projection tolerance, returning the previous value. 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 65 of file PatchToPatchInterpolation.H.

Constructor & Destructor Documentation

◆ PatchToPatchInterpolation() [1/2]

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

Construct from components.

Definition at line 110 of file PatchToPatchInterpolation.C.

◆ PatchToPatchInterpolation() [2/2]

PatchToPatchInterpolation ( const PatchToPatchInterpolation< FromPatch, ToPatch > &  )
delete

Disallow default bitwise copy construction.

◆ ~PatchToPatchInterpolation()

Destructor.

Definition at line 133 of file PatchToPatchInterpolation.C.

References PatchToPatchInterpolation< FromPatch, ToPatch >::pointDistanceToIntersection().

Here is the call graph for this function:

Member Function Documentation

◆ setProjectionTol()

static scalar setProjectionTol ( const scalar  t)
inlinestatic

Set the projection tolerance, returning the previous value.

Definition at line 170 of file PatchToPatchInterpolation.H.

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

Here is the call graph for this function:

◆ projectionAlgo()

intersection::algorithm projectionAlgo ( ) const
inline

Return ype of intersection algorithm to use in projection.

Definition at line 185 of file PatchToPatchInterpolation.H.

◆ projectionDir()

◆ pointDistanceToIntersection()

const scalarField & pointDistanceToIntersection ( ) const

Return distance to intersection for patch points.

Definition at line 144 of file PatchToPatchInterpolation.C.

References PatchToPatchInterpolation< FromPatch, ToPatch >::faceDistanceToIntersection().

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir(), and PatchToPatchInterpolation< FromPatch, ToPatch >::~PatchToPatchInterpolation().

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

◆ faceDistanceToIntersection()

const scalarField & faceDistanceToIntersection ( ) const

Return distance to intersection for patch face centres.

Definition at line 158 of file PatchToPatchInterpolation.C.

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::pointDistanceToIntersection(), and PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().

Here is the caller graph for this function:

◆ movePoints()

bool movePoints ( )

Correct weighting factors for moving mesh.

Definition at line 170 of file PatchToPatchInterpolation.C.

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().

Here is the caller graph for this function:

◆ pointInterpolate() [1/2]

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

Interpolate point field.

Definition at line 40 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), List< Type >::size(), and Foam::Zero.

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().

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

◆ pointInterpolate() [2/2]

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

Definition at line 90 of file PatchToPatchInterpolate.C.

References tmp< T >::clear(), and PatchToPatchInterpolation< FromPatch, ToPatch >::faceInterpolate().

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 104 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), List< Type >::size(), and Foam::Zero.

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::pointInterpolate(), and PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().

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

◆ faceInterpolate() [2/2]

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

Definition at line 156 of file PatchToPatchInterpolate.C.

◆ operator=()

void operator= ( const PatchToPatchInterpolation< FromPatch, ToPatch > &  )
delete

Disallow default bitwise assignment.

Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().

Here is the caller graph for this function:

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