Calculates the overlap volume of two cells using tetrahedral decomposition. More...
Public Member Functions | |
| ClassName ("tetOverlapVolume") | |
| Runtime type information. More... | |
| tetOverlapVolume () | |
| Null constructor. 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... | |
Calculates the overlap volume of two cells using tetrahedral decomposition.
Definition at line 52 of file tetOverlapVolume.H.
| tetOverlapVolume | ( | ) |
Null constructor.
Definition at line 42 of file tetOverlapVolume.C.
| ClassName | ( | "tetOverlapVolume" | ) |
Runtime type information.
| Foam::scalar cellVolumeMinDecomp | ( | const primitiveMesh & | mesh, |
| const label | celli | ||
| ) | const |
Calculates the cell volume.
Definition at line 147 of file tetOverlapVolume.C.
References primitiveMesh::cellCentres(), primitiveMesh::cells(), f(), polyMesh::faceOwner(), polyMesh::faces(), UList< T >::fcIndex(), forAll, tetrahedron< Point, PointRef >::mag(), mesh, polyMesh::points(), and List< T >::size().
Referenced by intersection::normalise().


| 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.
Definition at line 205 of file tetOverlapVolume.C.
References tetrahedron< Point, PointRef >::bounds(), primitiveMesh::cellCentres(), primitiveMesh::cells(), primitiveMesh::faceOwner(), primitiveMesh::faces(), UList< T >::fcIndex(), forAll, boundBox::overlaps(), treeBoundBox::overlaps(), primitiveMesh::points(), and List< T >::size().

| 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 334 of file tetOverlapVolume.C.
References tetrahedron< Point, PointRef >::bounds(), primitiveMesh::cellCentres(), primitiveMesh::cells(), primitiveMesh::faceOwner(), primitiveMesh::faces(), UList< T >::fcIndex(), forAll, boundBox::overlaps(), treeBoundBox::overlaps(), primitiveMesh::points(), and List< T >::size().
