38template<
class FromPatch,
class ToPatch>
40PatchToPatchInterpolation<FromPatch, ToPatch>::pointAddr()
const
42 if (!pointAddressingPtr_)
44 calcPointAddressing();
47 return *pointAddressingPtr_;
51template<
class FromPatch,
class ToPatch>
53PatchToPatchInterpolation<FromPatch, ToPatch>::pointWeights()
const
55 if (!pointWeightsPtr_)
57 calcPointAddressing();
60 return *pointWeightsPtr_;
64template<
class FromPatch,
class ToPatch>
66PatchToPatchInterpolation<FromPatch, ToPatch>::faceAddr()
const
68 if (!faceAddressingPtr_)
73 return *faceAddressingPtr_;
77template<
class FromPatch,
class ToPatch>
79PatchToPatchInterpolation<FromPatch, ToPatch>::faceWeights()
const
86 return *faceWeightsPtr_;
90template<
class FromPatch,
class ToPatch>
91void PatchToPatchInterpolation<FromPatch, ToPatch>::clearOut()
93 pointAddressingPtr_.reset(
nullptr);
94 pointWeightsPtr_.reset(
nullptr);
95 pointDistancePtr_.reset(
nullptr);
96 faceAddressingPtr_.reset(
nullptr);
97 faceWeightsPtr_.reset(
nullptr);
98 faceDistancePtr_.reset(
nullptr);
104template<
class FromPatch,
class ToPatch>
105PatchToPatchInterpolation<FromPatch, ToPatch>::PatchToPatchInterpolation
107 const FromPatch& fromPatch,
108 const ToPatch& toPatch,
113 fromPatch_(fromPatch),
122template<
class FromPatch,
class ToPatch>
131template<
class FromPatch,
class ToPatch>
133PatchToPatchInterpolation<FromPatch, ToPatch>
134::pointDistanceToIntersection()
const
136 if (!pointDistancePtr_)
138 calcPointAddressing();
141 return *pointDistancePtr_;
145template<
class FromPatch,
class ToPatch>
150 if (!faceDistancePtr_)
152 calcFaceAddressing();
155 return *faceDistancePtr_;
159template<
class FromPatch,
class ToPatch>
Patch to patch interpolation functions.
A field of fields is a PtrList of fields with reference counting.
Interpolation class dealing with transfer of data between two primitivePatches.
bool movePoints()
Correct weighting factors for moving mesh.
~PatchToPatchInterpolation()
Destructor.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.