Loading...
Searching...
No Matches
tetOverlapVolume Class Reference

Calculates the overlap volume of two cells using tetrahedral decomposition. More...

#include <tetOverlapVolume.H>

Public Member Functions

 ClassName ("tetOverlapVolume")
 Runtime type information.
 tetOverlapVolume ()=default
 Default construct.
labelList overlappingCells (const polyMesh &meshA, const polyMesh &meshB, const label cellBI) const
 Return a list of cells in meshA which overlaps with cellBI in meshB.
bool cellCellOverlapMinDecomp (const primitiveMesh &meshA, const label cellAI, const primitiveMesh &meshB, const label cellBI, const treeBoundBox &cellBbB, const scalar threshold=0.0) const
 Return true if overlap volume is greater than threshold.
scalar cellCellOverlapVolumeMinDecomp (const primitiveMesh &meshA, const label cellAI, const primitiveMesh &meshB, const label cellBI, const treeBoundBox &cellBbB) const
 Calculates the overlap volume.
Tuple2< scalar, pointcellCellOverlapMomentMinDecomp (const primitiveMesh &meshA, const label cellAI, const primitiveMesh &meshB, const label cellBI, const treeBoundBox &cellBbB) const
 Calculates the overlap volume and moment.

Detailed Description

Calculates the overlap volume of two cells using tetrahedral decomposition.

Source files

Definition at line 53 of file tetOverlapVolume.H.

Constructor & Destructor Documentation

◆ tetOverlapVolume()

tetOverlapVolume ( )
default

Default construct.

Member Function Documentation

◆ ClassName()

ClassName ( "tetOverlapVolume" )

Runtime type information.

◆ overlappingCells()

Foam::labelList overlappingCells ( const polyMesh & meshA,
const polyMesh & meshB,
const label cellBI ) const

Return a list of cells in meshA which overlaps with cellBI in meshB.

Definition at line 132 of file tetOverlapVolume.C.

References primitiveMesh::cellPoints(), polyMesh::cellTree(), and polyMesh::points().

Here is the call graph for this function:

◆ cellCellOverlapMinDecomp()

bool cellCellOverlapMinDecomp ( const primitiveMesh & meshA,
const label cellAI,
const primitiveMesh & meshB,
const label cellBI,
const treeBoundBox & cellBbB,
const scalar threshold = 0.0 ) const

Return true if overlap volume is greater than threshold.

Definition at line 56 of file tetOverlapVolume.C.

◆ cellCellOverlapVolumeMinDecomp()

Foam::scalar cellCellOverlapVolumeMinDecomp ( const primitiveMesh & meshA,
const label cellAI,
const primitiveMesh & meshB,
const label cellBI,
const treeBoundBox & cellBbB ) const

Calculates the overlap volume.

Definition at line 81 of file tetOverlapVolume.C.

Referenced by meshToMeshMethod::interVol().

Here is the caller graph for this function:

◆ cellCellOverlapMomentMinDecomp()

Foam::Tuple2< Foam::scalar, Foam::point > cellCellOverlapMomentMinDecomp ( const primitiveMesh & meshA,
const label cellAI,
const primitiveMesh & meshB,
const label cellBI,
const treeBoundBox & cellBbB ) const

Calculates the overlap volume and moment.

Definition at line 107 of file tetOverlapVolume.C.

Referenced by meshToMeshMethod::interVolAndCentroid().

Here is the caller graph for this function:

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