38#ifndef faceAreaWeightAMI2D_H
39#define faceAreaWeightAMI2D_H
128 const bool restartUncoveredSourceFace =
true
Templated tree of axis-aligned bounding boxes (AABB).
bool reverseTarget() const noexcept
Access to the reverseTarget flag.
bool requireMatch() const noexcept
Return the requireMatch flag.
scalar lowWeightCorrection() const
Threshold weight below which interpolation is deactivated.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const primitivePatch & tgtPatch() const
Return const access to the target patch.
advancingFrontAMI(const dictionary &dict, const bool reverseTarget)
Construct from components.
const primitivePatch & srcPatch() const
Return const access to the source patch.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bounding box defined in terms of min/max extrema points.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual autoPtr< AMIInterpolation > clone() const
Construct and return a clone.
void storeInterArea(const label srcFacei, const label tgtFacei, DynamicList< label > &srcAddr, DynamicList< scalar > &srcWght, DynamicList< vector > &srcCtr, DynamicList< label > &tgtAddr, DynamicList< scalar > &tgtWght) const
Calculate and store the area of intersection between source and target faces.
virtual ~faceAreaWeightAMI2D()=default
Destructor.
virtual bool calculate(const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr)
Update addressing, weights and (optional) centroids.
scalar Cbb_
Face bounding box factor.
void operator=(const faceAreaWeightAMI2D &)=delete
No copy assignment.
labelList overlappingTgtFaces(const AABBTree< face > &tree, const List< boundBox > &tgtFaceBbs, const boundBox &srcFaceBb) const
Return the set of tgt face IDs that overlap the src face bb.
TypeName("faceAreaWeightAMI2D")
Runtime type information.
void writeNoMatch(const label srcFacei, const labelList &tgtFaceCandidates, const boundBox &srcFaceBb) const
Helper function to write non-matched source faces to the set of candidate faces.
faceAreaWeightAMI2D(const dictionary &dict, const bool reverseTarget=false)
Construct from dictionary.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field.
Tree tree(triangles.begin(), triangles.end())
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.