Go to the documentation of this file.
35 #ifndef mapNearestAMI_H
36 #define mapNearestAMI_H
49 template<
class SourcePatch,
class TargetPatch>
52 public AMIMethod<SourcePatch, TargetPatch>
70 const SourcePatch& srcPatch,
71 const TargetPatch& tgtPatch,
72 const label& srcFaceI,
114 const SourcePatch& srcPatch,
115 const TargetPatch& tgtPatch,
119 const bool reverseTarget =
false,
120 const bool requireMatch =
true
scalar interArea(const label srcFaceI, const label tgtFaceI) const
Area of intersection between source and target faces.
mapNearestAMI(const mapNearestAMI &)
Disallow default bitwise copy construct.
Nearest-mapping Arbitrary Mesh Interface (AMI) method.
Base class for Arbitrary Mesh Interface (AMI) methods.
virtual ~mapNearestAMI()
Destructor.
virtual void calculate(labelListList &srcAddress, scalarListList &srcWeights, labelListList &tgtAddress, scalarListList &tgtWeights, label srcFaceI=-1, label tgtFaceI=-1)
Update addressing and weights.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
void findNearestFace(const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const label &srcFaceI, label &tgtFaceI) const
Find nearest target face for source face srcFaceI.
void setNextNearestFaces(boolList &mapFlag, label &startSeedI, label &srcFaceI, label &tgtFaceI) const
Determine next source-target face pair.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator=(const mapNearestAMI &)
Disallow default bitwise assignment.
TypeName("mapNearestAMI")
Runtime type information.
label findMappedSrcFace(const label tgtFaceI, const List< DynamicList< label > > &tgtToSrc) const
Find mapped source face.