Go to the documentation of this file.
35 #ifndef faceAreaWeightAMI_H
36 #define faceAreaWeightAMI_H
49 template<
class SourcePatch,
class TargetPatch>
52 public AMIMethod<SourcePatch, TargetPatch>
89 const label tgtStartFaceI,
116 bool errorOnNotFound =
true
125 const label srcFaceI,
141 const SourcePatch& srcPatch,
142 const TargetPatch& tgtPatch,
146 const bool reverseTarget =
false,
147 const bool requireMatch =
true,
faceAreaWeightAMI(const faceAreaWeightAMI &)
Disallow default bitwise copy construct.
const bool restartUncoveredSourceFace_
Flag to restart uncovered source faces.
virtual scalar interArea(const label srcFaceI, const label tgtFaceI) const
Area of intersection between source and target faces.
virtual void restartUncoveredSourceFace(List< DynamicList< label > > &srcAddr, List< DynamicList< scalar > > &srcWght, List< DynamicList< label > > &tgtAddr, List< DynamicList< scalar > > &tgtWght)
Attempt to re-evaluate source faces that have not been included.
virtual void setNextFaces(label &startSeedI, label &srcFaceI, label &tgtFaceI, const boolList &mapFlag, labelList &seedFaces, const DynamicList< label > &visitedFaces, bool errorOnNotFound=true) const
Set the source and target seed faces.
Base class for Arbitrary Mesh Interface (AMI) methods.
Face area weighted Arbitrary Mesh Interface (AMI) method.
TypeName("faceAreaWeightAMI")
Runtime type information.
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.
virtual void calcAddressing(List< DynamicList< label > > &srcAddress, List< DynamicList< scalar > > &srcWeights, List< DynamicList< label > > &tgtAddress, List< DynamicList< scalar > > &tgtWeights, label srcFaceI, label tgtFaceI)
Calculate addressing and weights using temporary storage.
virtual ~faceAreaWeightAMI()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator=(const faceAreaWeightAMI &)
Disallow default bitwise assignment.
virtual void calculate(labelListList &srcAddress, scalarListList &srcWeights, labelListList &tgtAddress, scalarListList &tgtWeights, label srcFaceI=-1, label tgtFaceI=-1)
Update addressing and weights.
virtual bool processSourceFace(const label srcFaceI, const label tgtStartFaceI, DynamicList< label > &nbrFaces, DynamicList< label > &visitedFaces, List< DynamicList< label > > &srcAddr, List< DynamicList< scalar > > &srcWght, List< DynamicList< label > > &tgtAddr, List< DynamicList< scalar > > &tgtWght)
Determine overlap contributions for source face srcFaceI.