FreeFOAM The Cross-Platform CFD Toolkit
PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

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

#include <OpenFOAM/PatchToPatchInterpolation_.H>


Detailed Description

List of all members.

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 ()
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 scalarField & pointDistanceToIntersection () const
 Return distance to intersection for patch points.
const scalarField & faceDistanceToIntersection () 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

Static Public Member Functions

static scalar setProjectionTol (const scalar t)
 Set the projection tolerance, returning the previous value.

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 115 of file PatchToPatchInterpolation_.C.


Member Function Documentation

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 FatalErrorIn.

intersection::algorithm projectionAlgo ( ) const
inline

Return ype of intersection algorithm to use in projection.

Definition at line 193 of file PatchToPatchInterpolation_.H.

intersection::direction projectionDir ( ) const
inline

Return direction projection to use in projection.

Definition at line 199 of file PatchToPatchInterpolation_.H.

const scalarField & pointDistanceToIntersection ( ) const

Return distance to intersection for patch points.

Definition at line 149 of file PatchToPatchInterpolation_.C.

const scalarField & faceDistanceToIntersection ( ) const

Return distance to intersection for patch face centres.

Definition at line 163 of file PatchToPatchInterpolation_.C.

References calcFaceAddressing().

bool movePoints ( )

Correct weighting factors for moving mesh.

Definition at line 175 of file PatchToPatchInterpolation_.C.

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

Interpolate point field.

Definition at line 41 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and List< Type >::size().

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

Definition at line 98 of file PatchToPatchInterpolate.C.

References tmp< T >::clear().

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

Interpolate face field.

Definition at line 113 of file PatchToPatchInterpolate.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and List< Type >::size().

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

Definition at line 172 of file PatchToPatchInterpolate.C.


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