44 #ifndef Foam_meshToMesh0_H 45 #define Foam_meshToMesh0_H 59 template<
class Type>
class indexedOctree;
94 mutable std::unique_ptr<scalarListList> inverseDistanceWeightsPtr_;
97 mutable std::unique_ptr<scalarListList> inverseVolumeWeightsPtr_;
100 mutable std::unique_ptr<labelListList> cellToCellAddressingPtr_;
111 void calcAddressing();
122 void calculateInverseDistanceWeights()
const;
124 void calculateInverseVolumeWeights()
const;
126 void calculateCellToCellAddressing()
const;
138 static const scalar directHitTol;
198 directAddressing_(addr)
210 return directAddressing_.
size();
225 return directAddressing_;
247 return cellAddressing_;
260 template<
class Type,
class CombineOp>
270 template<
class Type,
class CombineOp>
281 template<
class Type,
class CombineOp>
293 template<
class Type,
class CombineOp>
305 template<
class Type,
class CombineOp>
314 template<
class Type,
class CombineOp>
325 template<
class Type,
class CombineOp>
334 template<
class Type,
class CombineOp>
345 template<
class Type,
class CombineOp>
353 template<
class Type,
class CombineOp>
void size(const label n)
Older name for setAddressableSize.
void interpolate(VolumeField< Type > &, const VolumeField< Type > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const
Interpolate volume field.
void mapField(Field< Type > &, const Field< Type > &, const labelList &adr, const CombineOp &cop) const
Map field.
Serial mesh to mesh interpolation class.
order
Enumeration specifying required accuracy.
Generic GeometricField class.
bool direct() const
Is it a direct (non-interpolating) mapper?
const fvMesh & toMesh() const
label size() const
The size of the mapper.
const labelList & cellAddressing() const
From toMesh cells to fromMesh cells.
A FieldMapper for finite-volume patch fields.
virtual ~patchFieldInterpolator()=default
Destructor.
const fvMesh & fromMesh() const
~meshToMesh0()=default
Destructor.
void interpolateField(Field< Type > &, const VolumeField< Type > &, const labelList &adr, const scalarListList &weights, const CombineOp &cop) const
Interpolate field using inverse-distance weights.
Patch-field interpolation class.
patchFieldInterpolator(const labelList &addr)
Construct given addressing.
Non-pointer based hierarchical recursive searching.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Mesh data needed to do the Finite Volume discretisation.
const labelList & directAddressing() const
Return the direct addressing values.
scalar V() const
Overlap volume.
bool hasUnmapped() const
Any unmapped values?
A class for managing temporary objects.
void interpolateInternalField(Field< Type > &, const VolumeField< Type > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const
Interpolate internal volume field.
meshToMesh0(const fvMesh &fromMesh, const fvMesh &toMesh, const HashTable< word > &patchMap, const wordList &cuttingPatchNames)
Construct from the two meshes, the patch name map for the patches.