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>
111 const FromPatch& fromPatch,
112 const ToPatch& toPatch,
117 fromPatch_(fromPatch),
121 pointAddressingPtr_(
nullptr),
122 pointWeightsPtr_(
nullptr),
123 pointDistancePtr_(
nullptr),
124 faceAddressingPtr_(
nullptr),
125 faceWeightsPtr_(
nullptr),
126 faceDistancePtr_(
nullptr)
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 & faceDistanceToIntersection() const
Return distance to intersection for patch face centres.
const scalarField & pointDistanceToIntersection() const
Return distance to intersection for patch points.
PatchToPatchInterpolation(const FromPatch &fromPatch, const ToPatch &toPatch, const intersection::algorithm alg=intersection::algorithm::fullRay, const intersection::direction dir=intersection::direction::vector)
Construct from components.
~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.
const doubleScalar e
Elementary charge.
void deleteDemandDrivenData(DataPtr &dataPtr)