OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

PatchToPatchInterpolation< FromPatch, ToPatch > Class Template Reference

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

Collaboration diagram for PatchToPatchInterpolation< FromPatch, ToPatch >:

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.

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 61 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 
) [inline]

Construct from components.

Definition at line 108 of file PatchToPatchInterpolation.C.

~PatchToPatchInterpolation (  )  [inline]

Definition at line 131 of file PatchToPatchInterpolation.C.


Member Function Documentation

static scalar setProjectionTol ( const scalar  t  )  [inline, static]

Set the projection tolerance, returning the previous value.

Definition at line 171 of file PatchToPatchInterpolation.H.

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

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 190 of file PatchToPatchInterpolation.H.

intersection::direction projectionDir (  )  const [inline]

Return direction projection to use in projection.

Definition at line 196 of file PatchToPatchInterpolation.H.

const scalarField & pointDistanceToIntersection (  )  const [inline]

Return distance to intersection for patch points.

Definition at line 142 of file PatchToPatchInterpolation.C.

const scalarField & faceDistanceToIntersection (  )  const [inline]

Return distance to intersection for patch face centres.

Definition at line 156 of file PatchToPatchInterpolation.C.

bool movePoints (  )  [inline]

Correct weighting factors for moving mesh.

Definition at line 168 of file PatchToPatchInterpolation.C.

tmp< Field< Type > > pointInterpolate ( const Field< Type > &  pf  )  const [inline]

Interpolate point field.

Definition at line 34 of file PatchToPatchInterpolate.C.

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

Here is the call graph for this function:

tmp< Field< Type > > pointInterpolate ( const tmp< Field< Type > > &  tpf  )  const [inline]

Definition at line 91 of file PatchToPatchInterpolate.C.

tmp< Field< Type > > faceInterpolate ( const Field< Type > &  pf  )  const [inline]

Interpolate face field.

Definition at line 106 of file PatchToPatchInterpolate.C.

tmp< Field< Type > > faceInterpolate ( const tmp< Field< Type > > &  tpf  )  const [inline]

Definition at line 165 of file PatchToPatchInterpolate.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd