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

Cell-volume-weighted mesh-to-mesh interpolation class. More...

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

Public Member Functions

 TypeName ("cellVolumeWeight")
 
 cellVolumeWeightMethod (const polyMesh &src, const polyMesh &tgt)
 
virtual ~cellVolumeWeightMethod ()
 
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

bool findInitialSeeds (const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const
 
void calculateAddressing (labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI)
 
void setNextCells (label &startSeedI, label &srcCelli, label &tgtCelli, const labelList &srcCellIDs, const boolList &mapFlag, const DynamicList< label > &visitedCells, labelList &seedCells) const
 
- Protected Member Functions inherited from meshToMeshMethod
labelList maskCells () const
 
virtual bool intersect (const label srcCelli, const label tgtCelli) 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

Cell-volume-weighted mesh-to-mesh interpolation class.

Volume conservative.

Source files

Definition at line 48 of file cellVolumeWeightMethod.H.

Constructor & Destructor Documentation

◆ cellVolumeWeightMethod()

cellVolumeWeightMethod ( const polyMesh src,
const polyMesh tgt 
)

Definition at line 329 of file cellVolumeWeightMethod.C.

◆ ~cellVolumeWeightMethod()

~cellVolumeWeightMethod ( )
virtual

Definition at line 340 of file cellVolumeWeightMethod.C.

Member Function Documentation

◆ findInitialSeeds()

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

Definition at line 43 of file cellVolumeWeightMethod.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), points, 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 
)
protected

◆ setNextCells()

void setNextCells ( label &  startSeedI,
label &  srcCelli,
label &  tgtCelli,
const labelList srcCellIDs,
const boolList mapFlag,
const DynamicList< label > &  visitedCells,
labelList seedCells 
) const
protected

Definition at line 225 of file cellVolumeWeightMethod.C.

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

Here is the call graph for this function:

◆ TypeName()

TypeName ( "cellVolumeWeight"  )

◆ calculate()

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

Implements meshToMeshMethod.

Reimplemented in correctedCellVolumeWeightMethod.

Definition at line 347 of file cellVolumeWeightMethod.C.


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