waveMethod Class Reference

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

Inheritance diagram for waveMethod:
[legend]
Collaboration diagram for waveMethod:
[legend]

Public Member Functions

 TypeName ("wave")
 Run-time type information. More...
 
 waveMethod (const polyMesh &src, const polyMesh &tgt)
 Construct from source and target meshes. More...
 
virtual ~waveMethod ()
 Destructor. More...
 
virtual void calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)
 Calculate addressing and weights and optionally offset vectors. More...
 
- Public Member Functions inherited from meshToMeshMethod
 TypeName ("meshToMeshMethod")
 Run-time type information. More...
 
 declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt))
 Declare runtime constructor selection table. More...
 
 meshToMeshMethod (const polyMesh &src, const polyMesh &tgt)
 Construct from source and target meshes. More...
 
virtual ~meshToMeshMethod ()
 Destructor. More...
 
virtual void calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)=0
 Calculate addressing and weights and optionally offset vectors. More...
 
const polyMeshsrc () const
 Return const access to the source mesh. More...
 
const polyMeshtgt () const
 Return const access to the target mesh. More...
 
scalar V () const
 Return const access to the overlap volume. More...
 
void writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const
 Write the connectivity (debugging) More...
 

Static Public Member Functions

static void calculate (const polyMesh &src, const polyMesh &tgt, labelList &srcToTgtAddr)
 Calculate addressing. More...
 
- Static Public Member Functions inherited from meshToMeshMethod
static autoPtr< meshToMeshMethodNew (const word &methodName, const polyMesh &src, const polyMesh &tgt)
 Selector. More...
 

Additional Inherited Members

- Protected Member Functions inherited from meshToMeshMethod
labelList maskCells () const
 Return src cell IDs for the overlap region. More...
 
virtual bool intersect (const label srcCelli, const label tgtCelli) const
 Return the true if cells intersect. More...
 
virtual scalar interVol (const label srcCelli, const label tgtCelli) const
 Return the intersection volume between two cells. More...
 
virtual Tuple2< scalar, pointinterVolAndCentroid (const label srcCellI, const label tgtCellI)
 Return the intersection volume and centroid between two cells. More...
 
virtual void appendNbrCells (const label tgtCelli, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const
 Append target cell neighbour cells to cellIDs list. More...
 
virtual bool initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
 
- Protected Attributes inherited from meshToMeshMethod
const polyMeshsrc_
 Reference to the source mesh. More...
 
const polyMeshtgt_
 Reference to the target mesh. More...
 
scalar V_
 Cell total volume in overlap region [m3]. More...
 
- Static Protected Attributes inherited from meshToMeshMethod
static scalar tolerance_ = 1e-6
 Tolerance used in volume overlap calculations. More...
 

Detailed Description

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

Source files

Definition at line 50 of file waveMethod.H.

Constructor & Destructor Documentation

◆ waveMethod()

waveMethod ( const polyMesh src,
const polyMesh tgt 
)

Construct from source and target meshes.

Definition at line 159 of file waveMethod.C.

◆ ~waveMethod()

~waveMethod ( )
virtual

Destructor.

Definition at line 171 of file waveMethod.C.

Member Function Documentation

◆ TypeName()

TypeName ( "wave"  )

Run-time type information.

◆ calculate() [1/2]

void calculate ( const polyMesh src,
const polyMesh tgt,
labelList srcToTgtAddr 
)
static

Calculate addressing.

Definition at line 44 of file waveMethod.C.

References DynamicList< T, SizeMin >::append(), waveMethod::calculate(), polyMesh::CELL_TETS, primitiveMesh::cellCentres(), primitiveMesh::cells(), polyMesh::cellTree(), DynamicList< T, SizeMin >::clear(), treeBoundBox::contains(), UList< T >::empty(), Foam::endl(), polyMesh::findCell(), forAll, polyMesh::globalData(), primitiveMesh::nCells(), primitiveMesh::nFaces(), globalMeshData::nTotalCells(), UPstream::parRun(), Foam::Pout, Foam::returnReduce(), List< T >::setSize(), UList< T >::size(), meshToMeshMethod::src(), polyMesh::tetBasePtIs(), and meshToMeshMethod::tgt().

Referenced by waveMethod::calculate().

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

◆ calculate() [2/2]

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

Calculate addressing and weights and optionally offset vectors.

Implements meshToMeshMethod.

Definition at line 177 of file waveMethod.C.

References waveMethod::calculate(), forAll, List< T >::setSize(), and UList< T >::size().

Here is the call graph for this function:

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