Go to the documentation of this file.
41 #ifndef mapNearestMethod_H
42 #define mapNearestMethod_H
69 const label startSeedI,
110 const label tgtCellI,
void operator=(const mapNearestMethod &)
Disallow default bitwise assignment.
virtual void setNextNearestCells(label &startSeedI, label &srcCellI, label &tgtCellI, boolList &mapFlag, const labelList &srcCellIDs) const
Set the next cells for the marching front algorithm.
virtual void calculate(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)
Calculate addressing and weights and optionally offset vectors.
Map nearest mesh-to-mesh interpolation class.
Mesh consisting of general polyhedral cells.
virtual ~mapNearestMethod()
Destructor.
Base class for mesh-to-mesh calculation methods.
const polyMesh & src() const
Return const access to the source mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool findInitialSeeds(const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const
Find indices of overlapping cells in src and tgt meshes - returns.
virtual label findMappedSrcCell(const label tgtCellI, const List< DynamicList< label > > &tgtToSrc) const
Find a source cell mapped to target cell tgtCellI.
virtual void calculateAddressing(labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI)
Calculate the mesh-to-mesh addressing and weights.
const polyMesh & tgt() const
Return const access to the target mesh.
mapNearestMethod(const mapNearestMethod &)
Disallow default bitwise copy construct.
virtual void findNearestCell(const polyMesh &mesh1, const polyMesh &mesh2, const label cell1, label &cell2) const
Find the nearest cell on mesh2 for cell1 on mesh1.
TypeName("mapNearest")
Run-time type information.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...