advancingFrontAMI Class Reference

Base class for Arbitrary Mesh Interface (AMI) methods. More...

Inheritance diagram for advancingFrontAMI:
Collaboration diagram for advancingFrontAMI:

Public Types

enum  areaNormalisationMode { project, mag }
 Area normalisation mode. More...
 

Public Member Functions

 TypeName ("advancingFrontAMI")
 Runtime type information. More...
 
 advancingFrontAMI (const dictionary &dict, const bool reverseTarget)
 Construct from components. More...
 
 advancingFrontAMI (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1, const faceAreaIntersect::triangulationMode triMode=faceAreaIntersect::tmMesh)
 Construct from components. More...
 
 advancingFrontAMI (const advancingFrontAMI &ami)
 Construct as copy. More...
 
virtual autoPtr< AMIInterpolationclone () const
 Construct and return a clone. More...
 
virtual ~advancingFrontAMI ()=default
 Destructor. More...
 
const primitivePatchsrcPatch () const
 Return const access to the source patch. More...
 
const primitivePatchtgtPatch () const
 Return const access to the target patch. More...
 
const labelListsrcNonOverlap () const
 Labels of faces that are not overlapped by any target faces. More...
 
virtual void write (Ostream &os) const
 Write. More...
 
- Public Member Functions inherited from AMIInterpolation
 TypeName ("AMIInterpolation")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, dict,(const dictionary &dict, const bool reverseTarget),(dict, reverseTarget))
 Selection table for dictionary construction. More...
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, component,(const bool requireMatch, const bool reverseTarget, const scalar lowWeightCorrection),(requireMatch, reverseTarget, lowWeightCorrection))
 Selection table for component-wise construction. More...
 
 AMIInterpolation (const dictionary &dict, const bool reverseTarget=false)
 Construct from dictionary. More...
 
 AMIInterpolation (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 Construct from components. More...
 
 AMIInterpolation (const AMIInterpolation &fineAMI, const labelList &sourceRestrictAddressing, const labelList &neighbourRestrictAddressing)
 Construct from agglomeration of AMIInterpolation. Agglomeration passed in as new coarse size and addressing from fine from coarse. More...
 
 AMIInterpolation (const AMIInterpolation &ami)
 Construct as copy. More...
 
 AMIInterpolation (Istream &is)
 Construct from Istream. More...
 
virtual ~AMIInterpolation ()=default
 Destructor. More...
 
bool upToDate () const noexcept
 Is up-to-date? More...
 
bool upToDate (bool flag) noexcept
 Set as up-to-date, return the previous value. More...
 
bool distributed () const noexcept
 Distributed across processors (singlePatchProc == -1) More...
 
bool requireMatch () const noexcept
 Return the requireMatch flag. More...
 
bool setRequireMatch (bool flag) noexcept
 Set the require match flag, return the new value. More...
 
bool mustMatchFaces () const
 Return true if requireMatch and but not lowWeightCorrection. More...
 
bool reverseTarget () const noexcept
 Access to the reverseTarget flag. More...
 
scalar lowWeightCorrection () const
 Threshold weight below which interpolation is deactivated. More...
 
bool applyLowWeightCorrection () const
 Return true if employing a 'lowWeightCorrection'. More...
 
label singlePatchProc () const noexcept
 The processor holding all faces (both sides), or -1 if distributed. More...
 
label comm () const
 Communicator to use for parallel operations. More...
 
label comm (const label newComm)
 Set communicator to use for parallel operations. Return. More...
 
const List< scalar > & srcMagSf () const
 Return const access to source patch face areas. More...
 
List< scalar > & srcMagSf ()
 Return access to source patch face areas. More...
 
const labelListListsrcAddress () const
 Return const access to source patch addressing. More...
 
labelListListsrcAddress ()
 Return access to source patch addressing. More...
 
const scalarListListsrcWeights () const
 Return const access to source patch weights. More...
 
scalarListListsrcWeights ()
 Return access to source patch weights. More...
 
const scalarFieldsrcWeightsSum () const
 Return const access to normalisation factor of source patch weights (i.e. the sum before normalisation) More...
 
scalarFieldsrcWeightsSum ()
 Return access to normalisation factor of source patch weights (i.e. the sum before normalisation) More...
 
const pointListListsrcCentroids () const
 Return const access to source patch face centroids. More...
 
pointListListsrcCentroids ()
 Return access to source patch face centroids. More...
 
const mapDistributesrcMap () const
 Source map - valid only if singlePatchProc = -1 This gets source data into a form to be consumed by tgtAddress, tgtWeights. More...
 
const mapDistributehasSrcMap () const noexcept
 Pointer to the source map (if distributed). Can be checked as a bool. More...
 
const List< scalar > & tgtMagSf () const
 Return const access to target patch face areas. More...
 
List< scalar > & tgtMagSf ()
 Return access to target patch face areas. More...
 
const labelListListtgtAddress () const
 Return const access to target patch addressing. More...
 
labelListListtgtAddress ()
 Return access to target patch addressing. More...
 
const scalarListListtgtWeights () const
 Return const access to target patch weights. More...
 
scalarListListtgtWeights ()
 Return access to target patch weights. More...
 
const scalarFieldtgtWeightsSum () const
 Return const access to normalisation factor of target patch weights (i.e. the sum before normalisation) More...
 
scalarFieldtgtWeightsSum ()
 Return access to normalisation factor of target patch weights (i.e. the sum before normalisation) More...
 
const mapDistributetgtMap () const
 Target map - valid only if singlePatchProc=-1. This gets target data into a form to be consumed by srcAddress, srcWeights. More...
 
const mapDistributehasTgtMap () const noexcept
 Pointer to the target map (if distributed). Can be checked as a bool. More...
 
void reset (autoPtr< mapDistribute > &&srcToTgtMap, autoPtr< mapDistribute > &&tgtToSrcMap, labelListList &&srcAddress, scalarListList &&srcWeights, labelListList &&tgtAddress, scalarListList &&tgtWeights, const label singlePatchProc)
 Set the maps, addresses and weights from an external source. More...
 
void append (const primitivePatch &srcPatch, const primitivePatch &tgtPatch)
 Append additional addressing and weights. More...
 
void normaliseWeights (const bool conformal, const bool output)
 Normalise the weights. More...
 
template<class Type >
void weightedSum (const bool interpolateToSource, const UList< Type > &fld, List< Type > &result, const UList< Type > &defaultValues) const
 Weighted sum of contributions. More...
 
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
 Interpolate from target to source with supplied op to combine existing value with remote value and weight. More...
 
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
 Interpolate from source to target with supplied op to combine existing value with remote value and weight. More...
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from target to source with supplied op. More...
 
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
 Interpolate from target tmp field to source with supplied op. More...
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source to target with supplied op. More...
 
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
 Interpolate from source tmp field to target with supplied op. More...
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from target to source. More...
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from target tmp field. More...
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source to target. More...
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source tmp field. More...
 
label srcPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label tgtFacei, point &tgtPoint) const
 Return source patch face index of point on target patch face. More...
 
label tgtPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label srcFacei, point &srcPoint) const
 Return target patch face index of point on source patch face. More...
 
bool checkSymmetricWeights (const bool log) const
 Check if src addresses are present in tgt addresses and viceversa. More...
 
void writeFaceConnectivity (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const labelListList &srcAddress) const
 Write face connectivity as OBJ file. More...
 
virtual bool writeData (Ostream &os) const
 Write AMI raw. More...
 
bool & upToDate () noexcept
 Non-const access to the up-to-date flag. More...
 
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
 

Static Public Attributes

static const Enum< areaNormalisationModeareaNormalisationModeNames_
 
- Static Public Attributes inherited from AMIInterpolation
static bool cacheIntersections_ = false
 

Protected Member Functions

void createExtendedTgtPatch ()
 Create a map that extends tgtPatch so that it covers srcPatch. More...
 
void checkPatches () const
 Check AMI patch coupling. More...
 
bool isCandidate (const label srcFacei, const label tgtFacei) const
 Is source/target a valid pair (i.e. not too far/different. More...
 
virtual bool calculate (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr)
 Update addressing, weights and (optional) centroids. More...
 
bool initialiseWalk (label &srcFacei, label &tgtFacei)
 Initialise walk and return true if all ok. More...
 
void writeIntersectionOBJ (const scalar area, const face &f1, const face &f2, const pointField &f1Points, const pointField &f2Points) const
 Write triangle intersection to OBJ file. More...
 
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
 Add faces neighbouring facei to the ID list. More...
 
void triangulatePatch (const primitivePatch &patch, List< DynamicList< face >> &tris, List< scalar > &magSf) const
 Helper function to decompose a patch. More...
 
virtual void nonConformalCorrection ()
 Correction for non-conformal interpolations, e.g. for ACMI. More...
 
- Protected Member Functions inherited from AMIInterpolation
void operator= (const AMIInterpolation &)=delete
 No copy assignment. More...
 
autoPtr< indexedOctree< treeType > > createTree (const primitivePatch &patch) const
 Reset the octree for the patch face search. More...
 
label calcDistribution (const primitivePatch &srcPatch, const primitivePatch &tgtPatch) const
 Calculate if patches are on multiple processors. More...
 
void projectPointsToSurface (const searchableSurface &surf, pointField &pts) const
 Project points to surface. More...
 
const primitivePatchsrcPatch0 () const
 Return the orginal src patch with optionally updated points. More...
 
const primitivePatchtgtPatch0 () const
 Return the orginal tgt patch with optionally updated points. More...
 

Protected Attributes

const scalar maxDistance2_
 Maximum squared distance. More...
 
const scalar minCosAngle_
 Minimum (cos of) angle. 1 for perfectly matching. More...
 
List< DynamicList< face > > srcTris_
 Storage for src-side triangle decomposition. More...
 
List< DynamicList< face > > tgtTris_
 Storage for tgt-side triangle decomposition. More...
 
autoPtr< primitivePatchextendedTgtPatchPtr_
 Demand-driven extended target mesh (distributed parallel usage) More...
 
faceList extendedTgtFaces_
 Extended patch faces. More...
 
pointField extendedTgtPoints_
 Extended patch points. More...
 
labelList extendedTgtFaceIDs_
 Extended patch face IDs. More...
 
autoPtr< mapDistributeextendedTgtMapPtr_
 Extended patch map. More...
 
labelList srcNonOverlap_
 Labels of faces that are not overlapped by any target faces (should be empty for correct functioning for fully covered AMIs) More...
 
autoPtr< indexedOctree< treeType > > treePtr_
 Octree used to find face seeds. More...
 
const faceAreaIntersect::triangulationMode triMode_
 Face triangulation mode. More...
 
areaNormalisationMode areaNormalisationMode_
 Area normalisation mode; default = project. More...
 
- Protected Attributes inherited from AMIInterpolation
bool requireMatch_
 Flag to indicate that the two patches must be matched/an overlap exists between them. More...
 
const bool reverseTarget_
 Flag to indicate that the two patches are co-directional and that the orientation of the target patch should be reversed. More...
 
const scalar lowWeightCorrection_
 Threshold weight below which interpolation is deactivated. More...
 
label singlePatchProc_
 Index of processor that holds all of both sides. The value is -1 for distributed cases. More...
 
label comm_
 Communicator to use for parallel operations. More...
 
scalarList srcMagSf_
 Source face areas. More...
 
labelListList srcAddress_
 Addresses of target faces per source face. More...
 
scalarListList srcWeights_
 Weights of target faces per source face. More...
 
scalarField srcWeightsSum_
 Sum of weights of target faces per source face. More...
 
pointListList srcCentroids_
 Centroid of target faces per source face. More...
 
pointField srcPatchPts_
 Source patch points if input points are manipulated, e.g. projected. More...
 
refPtr< primitivePatchtsrcPatch0_
 Source patch using manipulated input points. More...
 
autoPtr< mapDistributesrcMapPtr_
 Source map pointer - parallel running only. More...
 
scalarList tgtMagSf_
 Target face areas. More...
 
labelListList tgtAddress_
 Addresses of source faces per target face. More...
 
scalarListList tgtWeights_
 Weights of source faces per target face. More...
 
scalarField tgtWeightsSum_
 Sum of weights of source faces per target face. More...
 
pointListList tgtCentroids_
 Centroid of source faces per target face. More...
 
pointField tgtPatchPts_
 Target patch points if input points are manipulated, e.g. projected. More...
 
refPtr< primitivePatchttgtPatch0_
 Target patch using manipulated input points. More...
 
autoPtr< mapDistributetgtMapPtr_
 Target map pointer - parallel running only. More...
 
bool upToDate_
 Up-to-date flag. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AMIInterpolation
static autoPtr< AMIInterpolationNew (const word &modelName, const dictionary &dict, const bool reverseTarget=false)
 Selector for dictionary. More...
 
static autoPtr< AMIInterpolationNew (const word &modelName, const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 Selector for components. More...
 
template<class Type , class CombineOp >
static void weightedSum (const scalar lowWeightCorrection, const labelListList &allSlots, const scalarListList &allWeights, const scalarField &weightsSum, const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues)
 Weighted sum of contributions. More...
 
- Protected Types inherited from AMIInterpolation
typedef treeDataPrimitivePatch< primitivePatchtreeType
 Local typedef to octree tree-type. More...
 
- 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, const label comm)
 Normalise the (area) weights - suppresses numerical error in weights calculation. More...
 
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, const label comm)
 

Detailed Description

Base class for Arbitrary Mesh Interface (AMI) methods.

Source files

Definition at line 51 of file advancingFrontAMI.H.

Member Enumeration Documentation

◆ areaNormalisationMode

enum areaNormalisationMode
strong

Area normalisation mode.

Enumerator
project 
mag 

Definition at line 60 of file advancingFrontAMI.H.

Constructor & Destructor Documentation

◆ advancingFrontAMI() [1/3]

advancingFrontAMI ( const dictionary dict,
const bool  reverseTarget 
)

Construct from components.

Definition at line 477 of file advancingFrontAMI.C.

References DebugInfo, Foam::endl(), and faceAreaIntersect::triangulationModeNames_.

Referenced by advancingFrontAMI::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ advancingFrontAMI() [2/3]

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

Construct from components.

Definition at line 523 of file advancingFrontAMI.C.

◆ advancingFrontAMI() [3/3]

Construct as copy.

Definition at line 546 of file advancingFrontAMI.C.

◆ ~advancingFrontAMI()

virtual ~advancingFrontAMI ( )
virtualdefault

Destructor.

Member Function Documentation

◆ createExtendedTgtPatch()

void createExtendedTgtPatch ( )
protected

Create a map that extends tgtPatch so that it covers srcPatch.

Definition at line 164 of file advancingFrontAMI.C.

◆ checkPatches()

void checkPatches ( ) const
protected

◆ isCandidate()

bool isCandidate ( const label  srcFacei,
const label  tgtFacei 
) const
protected

Is source/target a valid pair (i.e. not too far/different.

orientation). Used for prefiltering before e.g. area overlap

Definition at line 114 of file advancingFrontAMI.C.

References Foam::sqr().

Here is the call graph for this function:

◆ calculate()

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

Update addressing, weights and (optional) centroids.

Reimplemented from AMIInterpolation.

Reimplemented in faceAreaWeightAMI, and faceAreaWeightAMI2D.

Definition at line 567 of file advancingFrontAMI.C.

References AMIInterpolation::calculate().

Referenced by faceAreaWeightAMI::calculate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseWalk()

bool initialiseWalk ( label &  srcFacei,
label &  tgtFacei 
)
protected

Initialise walk and return true if all ok.

Definition at line 198 of file advancingFrontAMI.C.

References Foam::abort(), Foam::createTree(), Foam::ensightOutput::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, and WarningInFunction.

Here is the call graph for this function:

◆ writeIntersectionOBJ()

void writeIntersectionOBJ ( const scalar  area,
const face f1,
const face f2,
const pointField f1Points,
const pointField f2Points 
) const
protected

Write triangle intersection to OBJ file.

Definition at line 260 of file advancingFrontAMI.C.

References Foam::fieldTypes::area, Foam::BitOps::count(), Foam::endl(), forAll, n, Foam::name(), Foam::nl, os(), face::points(), Foam::Pout, and Foam::meshTools::writeOBJ().

Here is the call graph for this function:

◆ findTargetFace()

Foam::label findTargetFace ( const label  srcFacei,
const UList< label > &  excludeFaces = UList<label>::null(),
const label  srcFacePti = -1 
) const
protected

◆ appendNbrFaces()

void appendNbrFaces ( const label  facei,
const primitivePatch patch,
const DynamicList< label > &  visitedFaces,
DynamicList< label > &  faceIDs 
) const
protected

Add faces neighbouring facei to the ID list.

Definition at line 351 of file advancingFrontAMI.C.

References DynamicList< T, SizeMin >::append(), Foam::cos(), Foam::degToRad(), UList< T >::found(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ triangulatePatch()

void triangulatePatch ( const primitivePatch patch,
List< DynamicList< face >> &  tris,
List< scalar > &  magSf 
) const
protected

Helper function to decompose a patch.

Definition at line 383 of file advancingFrontAMI.C.

References f(), forAll, Foam::mag(), Foam::foamVersion::patch, points, List< T >::setSize(), faceAreaIntersect::tmFan, faceAreaIntersect::tmMesh, and faceAreaIntersect::triangleFan().

Here is the call graph for this function:

◆ nonConformalCorrection()

void nonConformalCorrection ( )
protectedvirtual

Correction for non-conformal interpolations, e.g. for ACMI.

Definition at line 453 of file advancingFrontAMI.C.

◆ TypeName()

TypeName ( "advancingFrontAMI"  )

Runtime type information.

◆ clone()

virtual autoPtr<AMIInterpolation> clone ( ) const
inlinevirtual

Construct and return a clone.

Reimplemented from AMIInterpolation.

Reimplemented in faceAreaWeightAMI, and faceAreaWeightAMI2D.

Definition at line 310 of file advancingFrontAMI.H.

References advancingFrontAMI::advancingFrontAMI().

Here is the call graph for this function:

◆ srcPatch()

const Foam::primitivePatch & srcPatch ( ) const
inline

Return const access to the source patch.

Definition at line 21 of file advancingFrontAMII.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and AMIInterpolation::tsrcPatch0_.

Referenced by advancingFrontAMI::checkPatches().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tgtPatch()

const Foam::primitivePatch & tgtPatch ( ) const
inline

Return const access to the target patch.

Definition at line 34 of file advancingFrontAMII.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Referenced by advancingFrontAMI::checkPatches().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ srcNonOverlap()

const Foam::labelList & srcNonOverlap ( ) const
inline

Labels of faces that are not overlapped by any target faces.

Note: this should be empty for correct functioning

Definition at line 52 of file advancingFrontAMII.H.

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from AMIInterpolation.

Reimplemented in faceAreaWeightAMI, and faceAreaWeightAMI2D.

Definition at line 627 of file advancingFrontAMI.C.

References os(), faceAreaIntersect::tmMesh, faceAreaIntersect::triangulationModeNames_, AMIInterpolation::write(), and Ostream::writeEntryIfDifferent().

Referenced by faceAreaWeightAMI2D::write(), and faceAreaWeightAMI::write().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ areaNormalisationModeNames_

const Foam::Enum< Foam::advancingFrontAMI::areaNormalisationMode > areaNormalisationModeNames_
static
Initial value:

Definition at line 66 of file advancingFrontAMI.H.

◆ maxDistance2_

const scalar maxDistance2_
protected

Maximum squared distance.

Definition at line 122 of file advancingFrontAMI.H.

◆ minCosAngle_

const scalar minCosAngle_
protected

Minimum (cos of) angle. 1 for perfectly matching.

Definition at line 127 of file advancingFrontAMI.H.

◆ srcTris_

List<DynamicList<face> > srcTris_
protected

Storage for src-side triangle decomposition.

Definition at line 132 of file advancingFrontAMI.H.

◆ tgtTris_

List<DynamicList<face> > tgtTris_
protected

Storage for tgt-side triangle decomposition.

Definition at line 137 of file advancingFrontAMI.H.

◆ extendedTgtPatchPtr_

autoPtr<primitivePatch> extendedTgtPatchPtr_
protected

Demand-driven extended target mesh (distributed parallel usage)

Definition at line 142 of file advancingFrontAMI.H.

◆ extendedTgtFaces_

faceList extendedTgtFaces_
protected

Extended patch faces.

Definition at line 147 of file advancingFrontAMI.H.

◆ extendedTgtPoints_

pointField extendedTgtPoints_
protected

Extended patch points.

Definition at line 152 of file advancingFrontAMI.H.

◆ extendedTgtFaceIDs_

labelList extendedTgtFaceIDs_
protected

Extended patch face IDs.

Definition at line 157 of file advancingFrontAMI.H.

◆ extendedTgtMapPtr_

autoPtr<mapDistribute> extendedTgtMapPtr_
protected

Extended patch map.

Definition at line 162 of file advancingFrontAMI.H.

◆ srcNonOverlap_

labelList srcNonOverlap_
protected

Labels of faces that are not overlapped by any target faces (should be empty for correct functioning for fully covered AMIs)

Definition at line 168 of file advancingFrontAMI.H.

◆ treePtr_

autoPtr<indexedOctree<treeType> > treePtr_
protected

Octree used to find face seeds.

Definition at line 173 of file advancingFrontAMI.H.

◆ triMode_

const faceAreaIntersect::triangulationMode triMode_
protected

Face triangulation mode.

Definition at line 178 of file advancingFrontAMI.H.

◆ areaNormalisationMode_

areaNormalisationMode areaNormalisationMode_
protected

Area normalisation mode; default = project.

Definition at line 183 of file advancingFrontAMI.H.


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