Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search. More...
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 polyMesh & | mesh () 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< pointIndexHit > | intersections (const point &pStart, const point &pEnd) const |
bool | isInside (const point &) const |
void | clearOut () |
void | correct () |
Static Public Attributes | |
static scalar | tol_ = 1e-3 |
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Definition at line 56 of file meshSearch.H.
|
explicit |
Definition at line 544 of file meshSearch.C.
References polyMesh::CELL_TETS, polyMesh::FACE_DIAG_TRIS, mesh, and polyMesh::tetBasePtIs().
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().
~meshSearch | ( | ) |
Definition at line 590 of file meshSearch.C.
ClassName | ( | "meshSearch" | ) |
|
inline |
Definition at line 191 of file meshSearch.H.
|
inline |
Definition at line 196 of file meshSearch.H.
const Foam::indexedOctree< Foam::treeDataFace > & boundaryTree | ( | ) | const |
Definition at line 621 of file meshSearch.C.
References Foam::identity().
const Foam::indexedOctree< Foam::treeDataFace > & nonCoupledBoundaryTree | ( | ) | const |
Definition at line 655 of file meshSearch.C.
References forAll, patches, and List::setSize().
const Foam::indexedOctree< Foam::treeDataCell > & cellTree | ( | ) | const |
Definition at line 700 of file meshSearch.C.
Foam::label findNearestCell | ( | const point & | location, |
const label | seedCelli = -1 , |
||
const bool | useTreeSearch = true |
||
) | const |
Definition at line 727 of file meshSearch.C.
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().
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().
Foam::label findNearestBoundaryFace | ( | const point & | location, |
const label | seedFacei = -1 , |
||
const bool | useTreeSearch = true |
||
) | const |
Definition at line 797 of file meshSearch.C.
References indexedOctree::bb(), PointHit< PointType >::distance(), f(), PointIndexHit::hit(), PointIndexHit::index(), Foam::magSqr(), boundBox::max(), boundBox::min(), indexedOctree::shapes(), and Foam::sqr().
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().
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().
Definition at line 906 of file meshSearch.C.
References volumeType::INSIDE, and p.
void clearOut | ( | ) |
Definition at line 912 of file meshSearch.C.
void correct | ( | ) |
Definition at line 920 of file meshSearch.C.
|
static |
Definition at line 159 of file meshSearch.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.