36 template<
class FromPatch,
class ToPatch>
38 PatchToPatchInterpolation<FromPatch, ToPatch>::directHitTol = 1
e-5;
42 template<
class FromPatch,
class ToPatch>
44 PatchToPatchInterpolation<FromPatch, ToPatch>::pointAddr()
const 46 if (!pointAddressingPtr_)
48 calcPointAddressing();
51 return *pointAddressingPtr_;
55 template<
class FromPatch,
class ToPatch>
56 const FieldField<Field, scalar>&
57 PatchToPatchInterpolation<FromPatch, ToPatch>::pointWeights()
const 59 if (!pointWeightsPtr_)
61 calcPointAddressing();
64 return *pointWeightsPtr_;
68 template<
class FromPatch,
class ToPatch>
70 PatchToPatchInterpolation<FromPatch, ToPatch>::faceAddr()
const 72 if (!faceAddressingPtr_)
77 return *faceAddressingPtr_;
81 template<
class FromPatch,
class ToPatch>
82 const FieldField<Field, scalar>&
83 PatchToPatchInterpolation<FromPatch, ToPatch>::faceWeights()
const 90 return *faceWeightsPtr_;
94 template<
class FromPatch,
class ToPatch>
95 void PatchToPatchInterpolation<FromPatch, ToPatch>::clearOut()
108 template<
class FromPatch,
class ToPatch>
109 PatchToPatchInterpolation<FromPatch, ToPatch>::PatchToPatchInterpolation
111 const FromPatch& fromPatch,
112 const ToPatch& toPatch,
117 fromPatch_(fromPatch),
121 pointAddressingPtr_(NULL),
122 pointWeightsPtr_(NULL),
123 pointDistancePtr_(NULL),
124 faceAddressingPtr_(NULL),
125 faceWeightsPtr_(NULL),
126 faceDistancePtr_(NULL)
132 template<
class FromPatch,
class ToPatch>
141 template<
class FromPatch,
class ToPatch>
146 if (!pointDistancePtr_)
148 calcPointAddressing();
151 return *pointDistancePtr_;
155 template<
class FromPatch,
class ToPatch>
160 if (!faceDistancePtr_)
162 calcFaceAddressing();
165 return *faceDistancePtr_;
169 template<
class FromPatch,
class ToPatch>
const scalarField & pointDistanceToIntersection() const
Return distance to intersection for patch points.
const double e
Elementary charge.
const scalarField & faceDistanceToIntersection() const
Return distance to intersection for patch face centres.
~PatchToPatchInterpolation()
Destructor.
List< label > labelList
A List of labels.
Template functions to aid in the implementation of demand driven data.
bool movePoints()
Correct weighting factors for moving mesh.
Patch to patch interpolation functions.
void deleteDemandDrivenData(DataPtr &dataPtr)