Public Member Functions | Static Public Member Functions | List of all members
PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

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

Inheritance diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:
Inheritance graph
[legend]
Collaboration diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:
Collaboration graph
[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 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
 

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 ( 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 110 of file PatchToPatchInterpolation.C.

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

static scalar setProjectionTol ( const scalar  t)
inlinestatic

Set the projection tolerance, returning the previous value.

Definition at line 172 of file PatchToPatchInterpolation.H.

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

Here is the call graph for this function:

intersection::algorithm projectionAlgo ( ) const
inline

Return ype of intersection algorithm to use in projection.

Definition at line 187 of file PatchToPatchInterpolation.H.

intersection::direction projectionDir ( ) const
inline
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:

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:

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:

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:

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:

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:

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

Definition at line 156 of file PatchToPatchInterpolate.C.


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