Face area weighted Arbitrary Mesh Interface (AMI) method. More...
Public Member Functions | |
TypeName ("faceAreaWeightAMI") | |
faceAreaWeightAMI (const dictionary &dict, const bool reverseTarget=false) | |
faceAreaWeightAMI (const bool requireMatch, const bool reverseTarget=false, const scalar lowWeightCorrection=-1, const faceAreaIntersect::triangulationMode triMode=faceAreaIntersect::tmMesh, const bool restartUncoveredSourceFace=true) | |
faceAreaWeightAMI (const faceAreaWeightAMI &ami) | |
virtual autoPtr< AMIInterpolation > | clone () const |
virtual | ~faceAreaWeightAMI ()=default |
virtual bool | calculate (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr) |
virtual void | write (Ostream &os) const |
![]() | |
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 primitivePatch & | srcPatch () const |
const primitivePatch & | tgtPatch () const |
const labelList & | srcNonOverlap () const |
![]() | |
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 |
bool & | upToDate () |
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 labelListList & | srcAddress () const |
labelListList & | srcAddress () |
const scalarListList & | srcWeights () const |
scalarListList & | srcWeights () |
const scalarField & | srcWeightsSum () const |
scalarField & | srcWeightsSum () |
const pointListList & | srcCentroids () const |
pointListList & | srcCentroids () |
const mapDistribute & | srcMap () const |
const List< scalar > & | tgtMagSf () const |
List< scalar > & | tgtMagSf () |
const labelListList & | tgtAddress () const |
labelListList & | tgtAddress () |
const scalarListList & | tgtWeights () const |
scalarListList & | tgtWeights () |
const scalarField & | tgtWeightsSum () const |
scalarField & | tgtWeightsSum () |
const mapDistribute & | tgtMap () 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 faceAreaWeightAMI &)=delete |
virtual void | calcAddressing (List< DynamicList< label >> &srcAddress, List< DynamicList< scalar >> &srcWeights, List< DynamicList< point >> &srcCentroids, List< DynamicList< label >> &tgtAddress, List< DynamicList< scalar >> &tgtWeights, label srcFacei, label tgtFacei) |
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< point >> &srcCtr, List< DynamicList< label >> &tgtAddr, List< DynamicList< scalar >> &tgtWght) |
virtual void | restartUncoveredSourceFace (List< DynamicList< label >> &srcAddr, List< DynamicList< scalar >> &srcWght, List< DynamicList< point >> &srcCtr, List< DynamicList< label >> &tgtAddr, List< DynamicList< scalar >> &tgtWght) |
virtual bool | setNextFaces (label &startSeedi, label &srcFacei, label &tgtFacei, const bitSet &mapFlag, labelList &seedFaces, const DynamicList< label > &visitedFaces, const bool errorOnNotFound=true) const |
virtual void | calcInterArea (const label srcFacei, const label tgtFacei, scalar &area, vector ¢roid) const |
virtual bool | overlaps (const label srcFacei, const label tgtFacei, const scalar threshold) const |
![]() | |
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 () |
![]() | |
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 primitivePatch & | srcPatch0 () const |
const primitivePatch & | tgtPatch0 () const |
Face area weighted Arbitrary Mesh Interface (AMI) method.
Searching is performed using an advancing front.
Definition at line 49 of file faceAreaWeightAMI.H.
faceAreaWeightAMI | ( | const dictionary & | dict, |
const bool | reverseTarget = false |
||
) |
Definition at line 591 of file faceAreaWeightAMI.C.
Referenced by faceAreaWeightAMI::clone().
faceAreaWeightAMI | ( | const bool | requireMatch, |
const bool | reverseTarget = false , |
||
const scalar | lowWeightCorrection = -1 , |
||
const faceAreaIntersect::triangulationMode | triMode = faceAreaIntersect::tmMesh , |
||
const bool | restartUncoveredSourceFace = true |
||
) |
Definition at line 605 of file faceAreaWeightAMI.C.
faceAreaWeightAMI | ( | const faceAreaWeightAMI & | ami | ) |
Definition at line 624 of file faceAreaWeightAMI.C.
|
virtualdefault |
|
protecteddelete |
|
protectedvirtual |
Definition at line 91 of file faceAreaWeightAMI.C.
References addProfiling, DynamicList::append(), DynamicList::clear(), and bitSet::unset().
|
protectedvirtual |
Definition at line 176 of file faceAreaWeightAMI.C.
References addProfiling, DynamicList::append(), Foam::expressions::patchExpr::debug, DebugVar, Foam::max(), DynamicList::remove(), and Foam::Zero.
|
protectedvirtual |
Definition at line 515 of file faceAreaWeightAMI.C.
References addProfiling, DynamicList::clear(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, s, Foam::sum(), and WarningInFunction.
|
protectedvirtual |
Definition at line 249 of file faceAreaWeightAMI.C.
References Foam::abort(), addProfiling, bitSet::count(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, bitSet::find_next(), Foam::Pout, and bitSet::test().
|
protectedvirtual |
Definition at line 366 of file faceAreaWeightAMI.C.
References addProfiling, Foam::fieldTypes::area, faceAreaIntersect::calc(), Foam::expressions::patchExpr::debug, Foam::endl(), Foam::mag(), n, faceAreaIntersect::triangles(), WarningInFunction, and OBJstream::write().
|
protectedvirtual |
Definition at line 449 of file faceAreaWeightAMI.C.
References Foam::endl(), Foam::mag(), n, faceAreaIntersect::overlaps(), and WarningInFunction.
TypeName | ( | "faceAreaWeightAMI" | ) |
|
inlinevirtual |
Reimplemented from advancingFrontAMI.
Definition at line 171 of file faceAreaWeightAMI.H.
References faceAreaWeightAMI::faceAreaWeightAMI().
|
virtual |
Reimplemented from advancingFrontAMI.
Definition at line 634 of file faceAreaWeightAMI.C.
References addProfiling, advancingFrontAMI::calculate(), Foam::expressions::patchExpr::debug, mapDistributeBase::distribute(), Foam::endl(), forAll, globalIndex::inplaceToGlobal(), UPstream::nonBlocking, and Foam::Pout.
|
virtual |
Reimplemented from AMIInterpolation.
Definition at line 797 of file faceAreaWeightAMI.C.
References os(), AMIInterpolation::write(), and Ostream::writeEntry().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.