tetOverlapVolume Class Reference

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

Public Member Functions

 ClassName ("tetOverlapVolume")
 Runtime type information. More...
 
 tetOverlapVolume ()
 Null constructor. More...
 
labelList overlappingCells (const polyMesh &meshA, const polyMesh &meshB, const label cellBI) const
 Return a list of cells in meshA which overlaps with cellBI in. More...
 
scalar cellVolumeMinDecomp (const primitiveMesh &mesh, const label celli) const
 Calculates the cell volume. More...
 
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 olverlap volume is greater than threshold. More...
 
scalar cellCellOverlapVolumeMinDecomp (const primitiveMesh &meshA, const label cellAI, const primitiveMesh &meshB, const label cellBI, const treeBoundBox &cellBbB) const
 Calculates the overlap volume. More...
 

Detailed Description

Calculates the overlap volume of two cells using tetrahedral decomposition.

Source files

Definition at line 52 of file tetOverlapVolume.H.

Constructor & Destructor Documentation

◆ tetOverlapVolume()

Null constructor.

Definition at line 44 of file tetOverlapVolume.C.

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 149 of file tetOverlapVolume.C.

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

Here is the call graph for this function:

◆ cellVolumeMinDecomp()

Foam::scalar cellVolumeMinDecomp ( const primitiveMesh mesh,
const label  celli 
) const

Calculates the cell volume.

Definition at line 164 of file tetOverlapVolume.C.

References primitiveMesh::cellCentres(), primitiveMesh::cells(), f(), primitiveMesh::faceOwner(), primitiveMesh::faces(), UList< T >::fcIndex(), forAll, tetrahedron< Point, PointRef >::mag(), primitiveMesh::points(), and List< T >::size().

Referenced by intersection::normalise().

Here is the call graph for this function:
Here is the caller 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

◆ cellCellOverlapVolumeMinDecomp()

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

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