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")
 Run-time type information. More...
 
 cellVolumeWeightMethod (const polyMesh &src, const polyMesh &tgt)
 Construct from source and target meshes. More...
 
virtual ~cellVolumeWeightMethod ()
 Destructor. More...
 
virtual void calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght)
 Calculate addressing and weights. 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...
 
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...
 

Protected Member Functions

bool findInitialSeeds (const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const
 Find indices of overlapping cells in src and tgt meshes - returns. More...
 
void calculateAddressing (labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI)
 Calculate the mesh-to-mesh addressing and weights. More...
 
void setNextCells (label &startSeedI, label &srcCellI, label &tgtCellI, const labelList &srcCellIDs, const boolList &mapFlag, const DynamicList< label > &visitedCells, labelList &seedCells) const
 Set the next cells in the advancing front algorithm. More...
 
 cellVolumeWeightMethod (const cellVolumeWeightMethod &)
 Disallow default bitwise copy construct. More...
 
void operator= (const cellVolumeWeightMethod &)
 Disallow default bitwise assignment. More...
 
- 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 void appendNbrCells (const label tgtCellI, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const
 Append target cell neihgbour cells to cellIDs list. More...
 
virtual bool initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
 
 meshToMeshMethod (const meshToMeshMethod &)
 Disallow default bitwise copy construct. More...
 
void operator= (const meshToMeshMethod &)
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from meshToMeshMethod
static autoPtr< meshToMeshMethodNew (const word &methodName, const polyMesh &src, const polyMesh &tgt)
 Selector. More...
 
- 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

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

Volume conservative.

Source files

Definition at line 50 of file cellVolumeWeightMethod.H.

Constructor & Destructor Documentation

Disallow default bitwise copy construct.

Referenced by cellVolumeWeightMethod::setNextCells().

Here is the caller graph for this function:

cellVolumeWeightMethod ( const polyMesh src,
const polyMesh tgt 
)

Construct from source and target meshes.

Definition at line 297 of file cellVolumeWeightMethod.C.

~cellVolumeWeightMethod ( )
virtual

Destructor.

Definition at line 308 of file cellVolumeWeightMethod.C.

References cellVolumeWeightMethod::calculate().

Here is the call graph for this function:

Member Function Documentation

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

Find indices of overlapping cells in src and tgt meshes - returns.

true if found a matching pair

Definition at line 47 of file cellVolumeWeightMethod.C.

References cellVolumeWeightMethod::calculateAddressing(), Foam::endl(), forAll, points, Foam::Pout, and List< T >::size().

Here is the call graph for this function:

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

Calculate the mesh-to-mesh addressing and weights.

Definition at line 94 of file cellVolumeWeightMethod.C.

References List< T >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), List< T >::clear(), UList< T >::empty(), forAll, cellVolumeWeightMethod::setNextCells(), and List< T >::transfer().

Referenced by cellVolumeWeightMethod::findInitialSeeds().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Set the next cells in the advancing front algorithm.

Definition at line 193 of file cellVolumeWeightMethod.C.

References cellVolumeWeightMethod::cellVolumeWeightMethod(), Foam::endl(), forAll, Foam::Pout, and List< T >::size().

Referenced by cellVolumeWeightMethod::calculateAddressing().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator= ( const cellVolumeWeightMethod )
protected

Disallow default bitwise assignment.

TypeName ( "cellVolumeWeight"  )

Run-time type information.

void calculate ( labelListList srcToTgtAddr,
scalarListList srcToTgtWght,
labelListList tgtToTgtAddr,
scalarListList tgtToTgtWght 
)
virtual

Calculate addressing and weights.

Implements meshToMeshMethod.

Definition at line 315 of file cellVolumeWeightMethod.C.

Referenced by cellVolumeWeightMethod::~cellVolumeWeightMethod().

Here is the caller graph for this function:


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