Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
meshToMeshMethod Class Referenceabstract

Base class for mesh-to-mesh calculation methods. More...

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

Public Member Functions

 TypeName ("meshToMeshMethod")
 
 declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt))
 
 meshToMeshMethod (const polyMesh &src, const polyMesh &tgt)
 
virtual ~meshToMeshMethod ()
 
virtual void calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)=0
 
const polyMeshsrc () const
 
const polyMeshtgt () const
 
scalar V () const
 
void writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const
 

Static Public Member Functions

static autoPtr< meshToMeshMethodNew (const word &methodName, const polyMesh &src, const polyMesh &tgt)
 

Protected Member Functions

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
 

Protected Attributes

const polyMeshsrc_
 
const polyMeshtgt_
 
scalar V_
 

Static Protected Attributes

static scalar tolerance_ = 1e-6
 

Detailed Description

Base class for mesh-to-mesh calculation methods.

Source files

Definition at line 47 of file meshToMeshMethod.H.

Constructor & Destructor Documentation

◆ meshToMeshMethod()

meshToMeshMethod ( const polyMesh src,
const polyMesh tgt 
)

Definition at line 233 of file meshToMeshMethod.C.

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

Here is the call graph for this function:

◆ ~meshToMeshMethod()

~meshToMeshMethod ( )
virtual

Definition at line 256 of file meshToMeshMethod.C.

Member Function Documentation

◆ maskCells()

Foam::labelList maskCells ( ) const
protected

◆ intersect()

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

Reimplemented in directMethod.

Definition at line 74 of file meshToMeshMethod.C.

References boundBox::add(), and UList::size().

Here is the call graph for this function:

◆ interVol()

Foam::scalar interVol ( const label  srcCelli,
const label  tgtCelli 
) const
protectedvirtual

Definition at line 105 of file meshToMeshMethod.C.

References boundBox::add(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), and UList::size().

Here is the call graph for this function:

◆ interVolAndCentroid()

Foam::Tuple2< Foam::scalar, Foam::point > interVolAndCentroid ( const label  srcCellI,
const label  tgtCellI 
)
protectedvirtual

Definition at line 136 of file meshToMeshMethod.C.

References boundBox::add(), tetOverlapVolume::cellCellOverlapMomentMinDecomp(), Tuple2::first(), Tuple2::second(), UList::size(), and Foam::Zero.

Here is the call graph for this function:

◆ appendNbrCells()

void appendNbrCells ( const label  tgtCelli,
const polyMesh mesh,
const DynamicList< label > &  visitedTgtCells,
DynamicList< label > &  nbrTgtCellIDs 
) const
protectedvirtual

Definition at line 178 of file meshToMeshMethod.C.

References DynamicList::appendUniq(), primitiveMesh::cellCells(), and mesh.

Here is the call graph for this function:

◆ initialise()

bool initialise ( labelListList srcToTgtAddr,
scalarListList srcToTgtWght,
labelListList tgtToTgtAddr,
scalarListList tgtToTgtWght 
) const
protectedvirtual

Definition at line 199 of file meshToMeshMethod.C.

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

Here is the call graph for this function:

◆ TypeName()

TypeName ( "meshToMeshMethod"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
meshToMeshMethod  ,
components  ,
(const polyMesh &src, const polyMesh &tgt ,
(src, tgt  
)

◆ New()

Foam::autoPtr< Foam::meshToMeshMethod > New ( const word methodName,
const polyMesh src,
const polyMesh tgt 
)
static

Definition at line 27 of file meshToMeshMethodNew.C.

References DebugInfo, Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInLookup.

Here is the call graph for this function:

◆ calculate()

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

◆ src()

const Foam::polyMesh & src ( ) const
inline

Definition at line 21 of file meshToMeshMethodI.H.

References meshToMeshMethod::src_.

◆ tgt()

const Foam::polyMesh & tgt ( ) const
inline

Definition at line 27 of file meshToMeshMethodI.H.

◆ V()

Foam::scalar V ( ) const
inline

Definition at line 33 of file meshToMeshMethodI.H.

◆ writeConnectivity()

void writeConnectivity ( const polyMesh mesh1,
const polyMesh mesh2,
const labelListList mesh1ToMesh2Addr 
) const

Member Data Documentation

◆ src_

const polyMesh& src_
protected

Definition at line 55 of file meshToMeshMethod.H.

Referenced by meshToMeshMethod::maskCells(), and meshToMeshMethod::src().

◆ tgt_

const polyMesh& tgt_
protected

Definition at line 58 of file meshToMeshMethod.H.

Referenced by meshToMeshMethod::maskCells().

◆ V_

scalar V_
protected

Definition at line 61 of file meshToMeshMethod.H.

◆ tolerance_

Foam::scalar tolerance_ = 1e-6
staticprotected

Definition at line 64 of file meshToMeshMethod.H.


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