41 #ifndef mapNearestMethod_H 42 #define mapNearestMethod_H 69 const label startSeedI,
110 const label tgtCelli,
virtual const word & AMImethod() const
Return the corresponding AMI method for patch interpolation.
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.
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, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght)
Calculate addressing and weights.
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.
const polyMesh & src() const
Return const access to the source mesh.
void operator=(const mapNearestMethod &)=delete
Disallow default bitwise assignment.
const polyMesh & tgt() const
Return const access to the target mesh.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from string.
Base class for mesh-to-mesh calculation methods.
virtual ~mapNearestMethod()
Destructor.
TypeName("mapNearest")
Run-time type information.
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.
Mesh consisting of general polyhedral cells.
virtual label findMappedSrcCell(const label tgtCelli, const List< DynamicList< label >> &tgtToSrc) const
Find a source cell mapped to target cell tgtCelli.
Map nearest mesh-to-mesh interpolation class.
mapNearestMethod(const polyMesh &src, const polyMesh &tgt)
Construct from source and target meshes.