Public Member Functions | Static Public Attributes | List of all members
meshSearch Class Reference

Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search. More...

Inheritance diagram for meshSearch:
Inheritance graph
[legend]

Public Member Functions

 ClassName ("meshSearch")
 
 meshSearch (const polyMesh &mesh, const polyMesh::cellDecomposition=polyMesh::CELL_TETS)
 
 meshSearch (const polyMesh &mesh, const treeBoundBox &bb, const polyMesh::cellDecomposition=polyMesh::CELL_TETS)
 
 ~meshSearch ()
 
const polyMeshmesh () const
 
polyMesh::cellDecomposition decompMode () const
 
const indexedOctree< treeDataFace > & boundaryTree () const
 
const indexedOctree< treeDataFace > & nonCoupledBoundaryTree () const
 
const indexedOctree< treeDataCell > & cellTree () const
 
label findNearestCell (const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
 
label findNearestFace (const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
 
label findCell (const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
 
label findNearestBoundaryFace (const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
 
pointIndexHit intersection (const point &pStart, const point &pEnd) const
 
List< pointIndexHitintersections (const point &pStart, const point &pEnd) const
 
bool isInside (const point &) const
 
void clearOut ()
 
void correct ()
 

Static Public Attributes

static scalar tol_ = 1e-3
 

Detailed Description

Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.

Source files

Definition at line 56 of file meshSearch.H.

Constructor & Destructor Documentation

◆ meshSearch() [1/2]

meshSearch ( const polyMesh mesh,
const polyMesh::cellDecomposition  cellDecompMode = polyMesh::CELL_TETS 
)
explicit

Definition at line 544 of file meshSearch.C.

References polyMesh::CELL_TETS, polyMesh::FACE_DIAG_TRIS, mesh, and polyMesh::tetBasePtIs().

Here is the call graph for this function:

◆ meshSearch() [2/2]

meshSearch ( const polyMesh mesh,
const treeBoundBox bb,
const polyMesh::cellDecomposition  cellDecompMode = polyMesh::CELL_TETS 
)

Definition at line 565 of file meshSearch.C.

References polyMesh::CELL_TETS, polyMesh::FACE_DIAG_TRIS, mesh, and polyMesh::tetBasePtIs().

Here is the call graph for this function:

◆ ~meshSearch()

~meshSearch ( )

Definition at line 590 of file meshSearch.C.

Member Function Documentation

◆ ClassName()

ClassName ( "meshSearch"  )

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 191 of file meshSearch.H.

◆ decompMode()

polyMesh::cellDecomposition decompMode ( ) const
inline

Definition at line 196 of file meshSearch.H.

◆ boundaryTree()

const Foam::indexedOctree< Foam::treeDataFace > & boundaryTree ( ) const

Definition at line 621 of file meshSearch.C.

References Foam::identity().

Here is the call graph for this function:

◆ nonCoupledBoundaryTree()

const Foam::indexedOctree< Foam::treeDataFace > & nonCoupledBoundaryTree ( ) const

Definition at line 655 of file meshSearch.C.

References forAll, patches, and List::setSize().

Here is the call graph for this function:

◆ cellTree()

const Foam::indexedOctree< Foam::treeDataCell > & cellTree ( ) const

Definition at line 700 of file meshSearch.C.

◆ findNearestCell()

Foam::label findNearestCell ( const point location,
const label  seedCelli = -1,
const bool  useTreeSearch = true 
) const

Definition at line 727 of file meshSearch.C.

◆ findNearestFace()

Foam::label findNearestFace ( const point location,
const label  seedFacei = -1,
const bool  useTreeSearch = true 
) const

Definition at line 750 of file meshSearch.C.

Referenced by mappedPatchBase::findLocalSamples().

Here is the caller graph for this function:

◆ findCell()

Foam::label findCell ( const point location,
const label  seedCelli = -1,
const bool  useTreeSearch = true 
) const

Definition at line 773 of file meshSearch.C.

Referenced by trackingInverseDistance::markDonors().

Here is the caller graph for this function:

◆ findNearestBoundaryFace()

Foam::label findNearestBoundaryFace ( const point location,
const label  seedFacei = -1,
const bool  useTreeSearch = true 
) const

◆ intersection()

Foam::pointIndexHit intersection ( const point pStart,
const point pEnd 
) const

Definition at line 863 of file meshSearch.C.

References PointIndexHit::hit(), PointIndexHit::index(), and PointIndexHit::setIndex().

Here is the call graph for this function:

◆ intersections()

Foam::List< Foam::pointIndexHit > intersections ( const point pStart,
const point pEnd 
) const

Definition at line 880 of file meshSearch.C.

References DynamicList::append(), PointIndexHit::hit(), PointIndexHit::index(), PointIndexHit::setIndex(), and DynamicList::shrink().

Here is the call graph for this function:

◆ isInside()

bool isInside ( const point p) const

Definition at line 906 of file meshSearch.C.

References volumeType::INSIDE, and p.

◆ clearOut()

void clearOut ( )

Definition at line 912 of file meshSearch.C.

◆ correct()

void correct ( )

Definition at line 920 of file meshSearch.C.

Member Data Documentation

◆ tol_

scalar tol_ = 1e-3
static

Definition at line 159 of file meshSearch.H.


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