Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
faceAreaWeightAMI2D Class Reference

Face area weighted Arbitrary Mesh Interface (AMI) method that performs the intersection of src and tgt face area in 2D. More...

Inheritance diagram for faceAreaWeightAMI2D:
Inheritance graph
[legend]
Collaboration diagram for faceAreaWeightAMI2D:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("faceAreaWeightAMI2D")
 
 faceAreaWeightAMI2D (const dictionary &dict, const bool reverseTarget=false)
 
 faceAreaWeightAMI2D (const bool requireMatch, const bool reverseTarget=false, const scalar lowWeightCorrection=-1, const faceAreaIntersect::triangulationMode triMode=faceAreaIntersect::tmMesh, const bool restartUncoveredSourceFace=true)
 
 faceAreaWeightAMI2D (const faceAreaWeightAMI2D &ami)
 
virtual autoPtr< AMIInterpolationclone () const
 
virtual ~faceAreaWeightAMI2D ()=default
 
virtual bool calculate (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr)
 
virtual void write (Ostream &os) const
 
- Public Member Functions inherited from advancingFrontAMI
 TypeName ("advancingFrontAMI")
 
 advancingFrontAMI (const dictionary &dict, const bool reverseTarget)
 
 advancingFrontAMI (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1, const faceAreaIntersect::triangulationMode triMode=faceAreaIntersect::tmMesh)
 
 advancingFrontAMI (const advancingFrontAMI &ami)
 
virtual ~advancingFrontAMI ()=default
 
const primitivePatchsrcPatch () const
 
const primitivePatchtgtPatch () const
 
const labelListsrcNonOverlap () const
 
- Public Member Functions inherited from AMIInterpolation
 TypeName ("AMIInterpolation")
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, dict,(const dictionary &dict, const bool reverseTarget),(dict, reverseTarget))
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, component,(const bool requireMatch, const bool reverseTarget, const scalar lowWeightCorrection),(requireMatch, reverseTarget, lowWeightCorrection))
 
 AMIInterpolation (const dictionary &dict, const bool reverseTarget=false)
 
 AMIInterpolation (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 
 AMIInterpolation (const AMIInterpolation &fineAMI, const labelList &sourceRestrictAddressing, const labelList &neighbourRestrictAddressing)
 
 AMIInterpolation (const AMIInterpolation &ami)
 
virtual ~AMIInterpolation ()=default
 
bool upToDate () const
 
boolupToDate ()
 
bool distributed () const
 
bool requireMatch () const
 
bool setRequireMatch (const bool flag)
 
bool mustMatchFaces () const
 
bool reverseTarget () const
 
scalar lowWeightCorrection () const
 
bool applyLowWeightCorrection () const
 
label singlePatchProc () const
 
const List< scalar > & srcMagSf () const
 
List< scalar > & srcMagSf ()
 
const labelListListsrcAddress () const
 
labelListListsrcAddress ()
 
const scalarListListsrcWeights () const
 
scalarListListsrcWeights ()
 
const scalarFieldsrcWeightsSum () const
 
scalarFieldsrcWeightsSum ()
 
const pointListListsrcCentroids () const
 
pointListListsrcCentroids ()
 
const mapDistributesrcMap () const
 
const List< scalar > & tgtMagSf () const
 
List< scalar > & tgtMagSf ()
 
const labelListListtgtAddress () const
 
labelListListtgtAddress ()
 
const scalarListListtgtWeights () const
 
scalarListListtgtWeights ()
 
const scalarFieldtgtWeightsSum () const
 
scalarFieldtgtWeightsSum ()
 
const mapDistributetgtMap () const
 
void reset (autoPtr< mapDistribute > &&srcToTgtMap, autoPtr< mapDistribute > &&tgtToSrcMap, labelListList &&srcAddress, scalarListList &&srcWeights, labelListList &&tgtAddress, scalarListList &&tgtWeights)
 
void append (const primitivePatch &srcPatch, const primitivePatch &tgtPatch)
 
void normaliseWeights (const bool conformal, const bool output)
 
template<class Type , class CombineOp >
void interpolateToSource (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
void interpolateToTarget (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
label srcPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label tgtFacei, point &tgtPoint) const
 
label tgtPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label srcFacei, point &srcPoint) const
 
bool checkSymmetricWeights (const bool log) const
 
void writeFaceConnectivity (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const labelListList &srcAddress) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const
 

Protected Member Functions

void operator= (const faceAreaWeightAMI2D &)=delete
 
void writeNoMatch (const label srcFacei, const labelList &tgtFaceCandidates, const boundBox &srcFaceBb) const
 
void storeInterArea (const label srcFacei, const label tgtFacei, DynamicList< label > &srcAddr, DynamicList< scalar > &srcWght, DynamicList< vector > &srcCtr, DynamicList< label > &tgtAddr, DynamicList< scalar > &tgtWght) const
 
labelList overlappingTgtFaces (const AABBTree< face > &tree, const List< boundBox > &tgtFaceBbs, const boundBox &srcFaceBb) const
 
- Protected Member Functions inherited from advancingFrontAMI
void createExtendedTgtPatch ()
 
void checkPatches () const
 
bool initialiseWalk (label &srcFacei, label &tgtFacei)
 
void writeIntersectionOBJ (const scalar area, const face &f1, const face &f2, const pointField &f1Points, const pointField &f2Points) const
 
label findTargetFace (const label srcFacei, const UList< label > &excludeFaces=UList< label >::null(), const label srcFacePti=-1) const
 
void appendNbrFaces (const label facei, const primitivePatch &patch, const DynamicList< label > &visitedFaces, DynamicList< label > &faceIDs) const
 
void triangulatePatch (const primitivePatch &patch, List< DynamicList< face >> &tris, List< scalar > &magSf) const
 
virtual void nonConformalCorrection ()
 
- Protected Member Functions inherited from AMIInterpolation
void operator= (const AMIInterpolation &)=delete
 
autoPtr< indexedOctree< treeType > > createTree (const primitivePatch &patch) const
 
label calcDistribution (const primitivePatch &srcPatch, const primitivePatch &tgtPatch) const
 
void projectPointsToSurface (const searchableSurface &surf, pointField &pts) const
 
const primitivePatchsrcPatch0 () const
 
const primitivePatchtgtPatch0 () const
 

Protected Attributes

scalar Cbb_
 
- Protected Attributes inherited from advancingFrontAMI
List< DynamicList< face > > srcTris_
 
List< DynamicList< face > > tgtTris_
 
autoPtr< primitivePatchextendedTgtPatchPtr_
 
faceList extendedTgtFaces_
 
pointField extendedTgtPoints_
 
labelList extendedTgtFaceIDs_
 
autoPtr< mapDistributeextendedTgtMapPtr_
 
labelList srcNonOverlap_
 
autoPtr< indexedOctree< treeType > > treePtr_
 
const faceAreaIntersect::triangulationMode triMode_
 
- Protected Attributes inherited from AMIInterpolation
bool requireMatch_
 
const bool reverseTarget_
 
const scalar lowWeightCorrection_
 
label singlePatchProc_
 
scalarList srcMagSf_
 
labelListList srcAddress_
 
scalarListList srcWeights_
 
scalarField srcWeightsSum_
 
pointListList srcCentroids_
 
pointField srcPatchPts_
 
refPtr< primitivePatchtsrcPatch0_
 
autoPtr< mapDistributesrcMapPtr_
 
scalarList tgtMagSf_
 
labelListList tgtAddress_
 
scalarListList tgtWeights_
 
scalarField tgtWeightsSum_
 
pointListList tgtCentroids_
 
pointField tgtPatchPts_
 
refPtr< primitivePatchttgtPatch0_
 
autoPtr< mapDistributetgtMapPtr_
 
bool upToDate_
 

Additional Inherited Members

- Static Public Member Functions inherited from AMIInterpolation
static autoPtr< AMIInterpolationNew (const word &modelName, const dictionary &dict, const bool reverseTarget=false)
 
static autoPtr< AMIInterpolationNew (const word &modelName, const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 
- Static Public Attributes inherited from AMIInterpolation
static bool cacheIntersections_ = false
 
- Protected Types inherited from AMIInterpolation
typedef treeDataPrimitivePatch< primitivePatchtreeType
 
- Static Protected Member Functions inherited from AMIInterpolation
static void normaliseWeights (const scalarList &patchAreas, const word &patchName, const labelListList &addr, scalarListList &wght, scalarField &wghtSum, const bool conformal, const bool output, const scalar lowWeightTol)
 
static void agglomerate (const autoPtr< mapDistribute > &targetMap, const scalarList &fineSrcMagSf, const labelListList &fineSrcAddress, const scalarListList &fineSrcWeights, const labelList &sourceRestrictAddressing, const labelList &targetRestrictAddressing, scalarList &srcMagSf, labelListList &srcAddress, scalarListList &srcWeights, scalarField &srcWeightsSum, autoPtr< mapDistribute > &tgtMap)
 

Detailed Description

Face area weighted Arbitrary Mesh Interface (AMI) method that performs the intersection of src and tgt face area in 2D.

Source files

Definition at line 48 of file faceAreaWeightAMI2D.H.

Constructor & Destructor Documentation

◆ faceAreaWeightAMI2D() [1/3]

faceAreaWeightAMI2D ( const dictionary dict,
const bool  reverseTarget = false 
)

Definition at line 253 of file faceAreaWeightAMI2D.C.

Referenced by faceAreaWeightAMI2D::clone().

Here is the caller graph for this function:

◆ faceAreaWeightAMI2D() [2/3]

faceAreaWeightAMI2D ( const bool  requireMatch,
const bool  reverseTarget = false,
const scalar  lowWeightCorrection = -1,
const faceAreaIntersect::triangulationMode  triMode = faceAreaIntersect::tmMesh,
const bool  restartUncoveredSourceFace = true 
)

Definition at line 264 of file faceAreaWeightAMI2D.C.

◆ faceAreaWeightAMI2D() [3/3]

Definition at line 284 of file faceAreaWeightAMI2D.C.

◆ ~faceAreaWeightAMI2D()

virtual ~faceAreaWeightAMI2D ( )
virtualdefault

Member Function Documentation

◆ operator=()

void operator= ( const faceAreaWeightAMI2D )
protecteddelete

◆ writeNoMatch()

void writeNoMatch ( const label  srcFacei,
const labelList tgtFaceCandidates,
const boundBox srcFaceBb 
) const
protected

Definition at line 44 of file faceAreaWeightAMI2D.C.

References Foam::endl(), forAll, Foam::Info, Foam::name(), Foam::nl, os(), p, points, and boundBox::points().

Here is the call graph for this function:

◆ storeInterArea()

void storeInterArea ( const label  srcFacei,
const label  tgtFacei,
DynamicList< label > &  srcAddr,
DynamicList< scalar > &  srcWght,
DynamicList< vector > &  srcCtr,
DynamicList< label > &  tgtAddr,
DynamicList< scalar > &  tgtWght 
) const
protected

◆ overlappingTgtFaces()

Foam::labelList overlappingTgtFaces ( const AABBTree< face > &  tree,
const List< boundBox > &  tgtFaceBbs,
const boundBox srcFaceBb 
) const
protected

Definition at line 217 of file faceAreaWeightAMI2D.C.

References AABBTree::addressing(), AABBTree::boundBoxes(), forAll, HashSet::insert(), and boundBox::overlaps().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "faceAreaWeightAMI2D"  )

◆ clone()

virtual autoPtr<AMIInterpolation> clone ( ) const
inlinevirtual

Reimplemented from advancingFrontAMI.

Definition at line 130 of file faceAreaWeightAMI2D.H.

References faceAreaWeightAMI2D::faceAreaWeightAMI2D().

Here is the call graph for this function:

◆ calculate()

bool calculate ( const primitivePatch srcPatch,
const primitivePatch tgtPatch,
const autoPtr< searchableSurface > &  surfPtr = nullptr 
)
virtual

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from AMIInterpolation.

Definition at line 513 of file faceAreaWeightAMI2D.C.

References os(), and AMIInterpolation::write().

Here is the call graph for this function:

Member Data Documentation

◆ Cbb_

scalar Cbb_
protected

Definition at line 57 of file faceAreaWeightAMI2D.H.


The documentation for this class was generated from the following files: