Go to the documentation of this file.
38 #ifndef PatchToPatchInterpolation_H
39 #define PatchToPatchInterpolation_H
65 template<
class FromPatch,
class ToPatch>
68 public PatchToPatchInterpolationName
159 const FromPatch& fromPatch,
160 const ToPatch& toPatch,
labelList * pointAddressingPtr_
Face into which each point of target patch is projected.
labelList * faceAddressingPtr_
Face into which each face centre of target patch is projected.
void operator=(const PatchToPatchInterpolation &)
Disallow default bitwise assignment.
A class for managing temporary objects.
intersection::algorithm alg_
Type of intersection algorithm to use in projection.
tmp< Field< Type > > faceInterpolate(const Field< Type > &pf) const
Interpolate face field.
const labelList & faceAddr() const
Return reference to face addressing.
~PatchToPatchInterpolation()
Destructor.
void calcPointAddressing() const
Calculate point weights.
static const scalar directHitTol
Direct hit tolerance.
intersection::algorithm projectionAlgo() const
Return ype of intersection algorithm to use in projection.
scalarField * faceDistancePtr_
Distance to intersection for patch face centres.
Pre-declare SubField and related Field type.
const scalarField & faceDistanceToIntersection() const
Return distance to intersection for patch face centres.
const labelList & pointAddr() const
Return reference to point addressing.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
TemplateName(blendedSchemeBase)
const FieldField< Field, scalar > & faceWeights() const
Return reference to face weights.
void calcFaceAddressing() const
Calculate face weights.
intersection::direction projectionDir() const
Return direction projection to use in projection.
static scalar setProjectionTol(const scalar t)
Set the projection tolerance, returning the previous value.
const ToPatch & toPatch_
Reference to the target patch.
tmp< Field< Type > > pointInterpolate(const Field< Type > &pf) const
Interpolate point field.
intersection::direction dir_
Direction projection to use in projection.
errorManip< error > abort(error &err)
const FieldField< Field, scalar > & pointWeights() const
Return reference to point weights.
const scalarField & pointDistanceToIntersection() const
Return distance to intersection for patch points.
FieldField< Field, scalar > * pointWeightsPtr_
Weighting factors.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const FromPatch & fromPatch_
Reference to the source patch.
static scalar projectionTol_
Relative merge tolerance for projected points missing the target.
Interpolation class dealing with transfer of data between two primitivePatches.
bool movePoints()
Correct weighting factors for moving mesh.
PatchToPatchInterpolation(const PatchToPatchInterpolation &)
Disallow default bitwise copy construct.
scalarField * pointDistancePtr_
Distance to intersection for patch points.
FieldField< Field, scalar > * faceWeightsPtr_
Weighting factors.
void clearOut()
Clear all geometry and addressing.