Public Member Functions | Protected Member Functions | List of all members
directMethod Class Reference

Direct (one-to-one cell correspondence) mesh-to-mesh interpolation class. More...

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

Public Member Functions

 TypeName ("direct")
 
 directMethod (const polyMesh &src, const polyMesh &tgt)
 
virtual ~directMethod ()
 
virtual void calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)
 
- Public Member Functions inherited from meshToMeshMethod
 TypeName ("meshToMeshMethod")
 
 declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt))
 
 meshToMeshMethod (const polyMesh &src, const polyMesh &tgt)
 
virtual ~meshToMeshMethod ()
 
const polyMeshsrc () const
 
const polyMeshtgt () const
 
scalar V () const
 
void writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const
 

Protected Member Functions

virtual bool intersect (const label srcCelli, const label tgtCelli) const
 
virtual bool findInitialSeeds (const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const
 
virtual void calculateAddressing (labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI)
 
virtual void appendToDirectSeeds (boolList &mapFlag, labelList &srcTgtSeed, DynamicList< label > &srcSeeds, label &srcSeedI, label &tgtSeedI) const
 
- Protected Member Functions inherited from meshToMeshMethod
labelList maskCells () const
 
virtual scalar interVol (const label srcCelli, const label tgtCelli) const
 
virtual Tuple2< scalar, pointinterVolAndCentroid (const label srcCellI, const label tgtCellI)
 
virtual void appendNbrCells (const label tgtCelli, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const
 
virtual bool initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
 

Additional Inherited Members

- Static Public Member Functions inherited from meshToMeshMethod
static autoPtr< meshToMeshMethodNew (const word &methodName, const polyMesh &src, const polyMesh &tgt)
 
- Protected Attributes inherited from meshToMeshMethod
const polyMeshsrc_
 
const polyMeshtgt_
 
scalar V_
 
- Static Protected Attributes inherited from meshToMeshMethod
static scalar tolerance_ = 1e-6
 

Detailed Description

Direct (one-to-one cell correspondence) mesh-to-mesh interpolation class.

Volume conservative.

Source files

Definition at line 48 of file directMethod.H.

Constructor & Destructor Documentation

◆ directMethod()

directMethod ( const polyMesh src,
const polyMesh tgt 
)

Definition at line 219 of file directMethod.C.

◆ ~directMethod()

~directMethod ( )
virtual

Definition at line 230 of file directMethod.C.

Member Function Documentation

◆ intersect()

bool intersect ( const label  srcCelli,
const label  tgtCelli 
) const
protectedvirtual

Reimplemented from meshToMeshMethod.

Definition at line 37 of file directMethod.C.

◆ findInitialSeeds()

bool findInitialSeeds ( const labelList srcCellIDs,
const boolList mapFlag,
const label  startSeedI,
label &  srcSeedI,
label &  tgtSeedI 
) const
protectedvirtual

Definition at line 52 of file directMethod.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

◆ calculateAddressing()

void calculateAddressing ( labelListList srcToTgtCellAddr,
scalarListList srcToTgtCellWght,
labelListList tgtToSrcCellAddr,
scalarListList tgtToSrcCellWght,
const label  srcSeedI,
const label  tgtSeedI,
const labelList srcCellIDs,
boolList mapFlag,
label &  startSeedI 
)
protectedvirtual

Definition at line 93 of file directMethod.C.

References List::append(), forAll, and List::transfer().

Here is the call graph for this function:

◆ appendToDirectSeeds()

void appendToDirectSeeds ( boolList mapFlag,
labelList srcTgtSeed,
DynamicList< label > &  srcSeeds,
label &  srcSeedI,
label &  tgtSeedI 
) const
protectedvirtual

Definition at line 159 of file directMethod.C.

References DynamicList::append(), forAll, found, and DynamicList::remove().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "direct"  )

◆ calculate()

void calculate ( labelListList srcToTgtAddr,
scalarListList srcToTgtWght,
pointListList srcToTgtVec,
labelListList tgtToSrcAddr,
scalarListList tgtToSrcWght,
pointListList tgtToSrcVec 
)
virtual

Implements meshToMeshMethod.

Definition at line 237 of file directMethod.C.


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