Go to the documentation of this file.
36 template<
class FromPatch,
class ToPatch>
42 template<
class FromPatch,
class ToPatch>
46 if (!pointAddressingPtr_)
48 calcPointAddressing();
51 return *pointAddressingPtr_;
55 template<
class FromPatch,
class ToPatch>
59 if (!pointWeightsPtr_)
61 calcPointAddressing();
64 return *pointWeightsPtr_;
68 template<
class FromPatch,
class ToPatch>
72 if (!faceAddressingPtr_)
77 return *faceAddressingPtr_;
81 template<
class FromPatch,
class ToPatch>
90 return *faceWeightsPtr_;
94 template<
class FromPatch,
class ToPatch>
109 template<
class FromPatch,
class ToPatch>
112 const FromPatch& fromPatch,
113 const ToPatch& toPatch,
118 fromPatch_(fromPatch),
122 pointAddressingPtr_(NULL),
123 pointWeightsPtr_(NULL),
124 pointDistancePtr_(NULL),
125 faceAddressingPtr_(NULL),
126 faceWeightsPtr_(NULL),
127 faceDistancePtr_(NULL)
133 template<
class FromPatch,
class ToPatch>
142 template<
class FromPatch,
class ToPatch>
147 if (!pointDistancePtr_)
149 calcPointAddressing();
152 return *pointDistancePtr_;
156 template<
class FromPatch,
class ToPatch>
161 if (!faceDistancePtr_)
163 calcFaceAddressing();
166 return *faceDistancePtr_;
170 template<
class FromPatch,
class ToPatch>
List< label > labelList
A List of labels.
Template functions to aid in the implementation of demand driven data.
const labelList & faceAddr() const
Return reference to face addressing.
~PatchToPatchInterpolation()
Destructor.
static const scalar directHitTol
Direct hit tolerance.
void deleteDemandDrivenData(DataPtr &dataPtr)
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.
const FieldField< Field, scalar > & faceWeights() const
Return reference to face weights.
const double e
Elementary charge.
const FieldField< Field, scalar > & pointWeights() const
Return reference to point weights.
Patch to patch interpolation functions.
const scalarField & pointDistanceToIntersection() const
Return distance to intersection for patch points.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool movePoints()
Correct weighting factors for moving mesh.
PatchToPatchInterpolation(const PatchToPatchInterpolation &)
Disallow default bitwise copy construct.
void clearOut()
Clear all geometry and addressing.