PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

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

Inheritance diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:
[legend]
Collaboration diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:
[legend]

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
 

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 67 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 111 of file PatchToPatchInterpolation.C.

◆ ~PatchToPatchInterpolation()

Destructor.

Definition at line 135 of file PatchToPatchInterpolation.C.

Member Function Documentation

◆ setProjectionTol()

static scalar setProjectionTol ( const scalar  t)
inlinestatic

Set the projection tolerance, returning the previous value.

Definition at line 174 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 189 of file PatchToPatchInterpolation.H.

◆ projectionDir()

intersection::direction projectionDir ( ) const
inline

Return direction projection to use in projection.

Definition at line 195 of file PatchToPatchInterpolation.H.

◆ pointDistanceToIntersection()

const scalarField & pointDistanceToIntersection

Return distance to intersection for patch points.

Definition at line 146 of file PatchToPatchInterpolation.C.

◆ faceDistanceToIntersection()

const scalarField & faceDistanceToIntersection

Return distance to intersection for patch face centres.

Definition at line 160 of file PatchToPatchInterpolation.C.

◆ movePoints()

bool movePoints

Correct weighting factors for moving mesh.

Definition at line 172 of file PatchToPatchInterpolation.C.

◆ pointInterpolate() [1/2]

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

Interpolate point field.

Definition at line 42 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), UList< T >::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 92 of file PatchToPatchInterpolate.C.

◆ faceInterpolate() [1/2]

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

Interpolate face field.

Definition at line 106 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), 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 158 of file PatchToPatchInterpolate.C.


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