A collection of tools for searching, sorting PrimitivePatch information. More...
Public Member Functions | |
template<class FaceList , class PointField > | |
Foam::labelList | edgeOwner (const PrimitivePatch< FaceList, PointField > &p) |
template<class FaceList , class PointField > | |
Foam::tmp< Foam::pointField > | pointNormals (const polyMesh &mesh, const PrimitivePatch< FaceList, PointField > &p) |
template<class FaceList , class PointField > | |
Foam::tmp< Foam::pointField > | edgeNormals (const polyMesh &mesh, const PrimitivePatch< FaceList, PointField > &p, const labelList &patchEdges, const labelList &coupledEdges) |
template<class BoolListType , class FaceList , class PointField > | |
Foam::label | markZones (const PrimitivePatch< FaceList, PointField > &p, const BoolListType &borderEdge, labelList &faceZone) |
template<class FaceList , class PointField > | |
Foam::labelListList | sortedEdgeFaces (const PrimitivePatch< FaceList, PointField > &p) |
template<class FaceList , class PointField > | |
Foam::labelListList | sortedPointEdges (const PrimitivePatch< FaceList, PointField > &p) |
Static Public Member Functions | |
template<class FaceList , class PointField > | |
static bool | checkOrientation (const PrimitivePatch< FaceList, PointField > &, const bool report=false, labelHashSet *marked=0) |
template<class BoolListType , class FaceList , class PointField > | |
static void | markZone (const PrimitivePatch< FaceList, PointField > &, const BoolListType &borderEdge, const label facei, const label currentZone, labelList &faceZone) |
template<class BoolListType , class FaceList , class PointField > | |
static label | markZones (const PrimitivePatch< FaceList, PointField > &, const BoolListType &borderEdge, labelList &faceZone) |
template<class BoolListType , class FaceList , class PointField > | |
static void | subsetMap (const PrimitivePatch< FaceList, PointField > &p, const BoolListType &includeFaces, labelList &pointMap, labelList &faceMap) |
template<class FaceList , class PointField > | |
static void | calcBounds (const PrimitivePatch< FaceList, PointField > &p, boundBox &bb, label &nPoints) |
template<class FaceList , class PointField > | |
static labelListList | sortedEdgeFaces (const PrimitivePatch< FaceList, PointField > &) |
template<class FaceList , class PointField > | |
static labelListList | sortedPointEdges (const PrimitivePatch< FaceList, PointField > &) |
template<class FaceList , class PointField > | |
static labelList | edgeOwner (const PrimitivePatch< FaceList, PointField > &) |
template<class FaceList1 , class PointField1 , class FaceList2 , class PointField2 > | |
static void | matchPoints (const PrimitivePatch< FaceList1, PointField1 > &p1, const PrimitivePatch< FaceList2, PointField2 > &p2, labelList &p1PointLabels, labelList &p2PointLabels) |
template<class FaceList1 , class PointField1 , class FaceList2 , class PointField2 > | |
static void | matchEdges (const PrimitivePatch< FaceList1, PointField1 > &p1, const PrimitivePatch< FaceList2, PointField2 > &p2, labelList &p1EdgeLabels, labelList &p2EdgeLabels, bitSet &sameOrientation) |
template<class FaceList , class PointField > | |
static tmp< pointField > | pointNormals (const polyMesh &, const PrimitivePatch< FaceList, PointField > &) |
template<class FaceList , class PointField > | |
static tmp< pointField > | edgeNormals (const polyMesh &, const PrimitivePatch< FaceList, PointField > &, const labelList &patchEdges, const labelList &coupledEdges) |
template<class FaceList , class PointField > | |
static void | gatherAndMerge (const scalar mergeDist, const PrimitivePatch< FaceList, PointField > &p, Field< typename PrimitivePatch< FaceList, PointField >::point_type > &mergedPoints, List< typename PrimitivePatch< FaceList, PointField >::face_type > &mergedFaces, labelList &pointMergeMap) |
template<class FaceList > | |
static void | gatherAndMerge (const polyMesh &mesh, const FaceList &faces, const labelList &meshPoints, const Map< label > &meshPointMap, labelList &pointToGlobal, labelList &uniqueMeshPointLabels, autoPtr< globalIndex > &globalPoints, autoPtr< globalIndex > &globalFaces, List< typename FaceList::value_type > &mergedFaces, pointField &mergedPoints) |
A collection of tools for searching, sorting PrimitivePatch information.
The class could also be extended to include more that just static methods.
Definition at line 65 of file PatchTools.H.
|
static |
Definition at line 29 of file PatchToolsCheck.C.
References Foam::constant::electromagnetic::e, Foam::endl(), f(), forAll, Foam::Info, HashSet::insert(), Foam::nl, p, and p0.
Referenced by searchableSurfaces::checkNormalOrientation().
|
static |
Definition at line 34 of file PatchToolsSearch.C.
References Foam::abort(), DynamicList::append(), Foam::FatalError, FatalErrorInFunction, forAll, p, and List::transfer().
|
static |
Referenced by searchableSurfaces::checkNormalOrientation().
|
static |
Definition at line 136 of file PatchToolsSearch.C.
References List::clear(), Foam::faceMap(), forAll, p, bitSet::set(), and bitSet::sortedToc().
Referenced by UnsortedMeshedSurface< Face >::subsetMeshMap(), triSurface::subsetMeshMap(), and MeshedSurface< Foam::face >::subsetMeshMap().
|
static |
Definition at line 172 of file PatchToolsSearch.C.
References boundBox::add(), f(), nPoints, p, points, and bitSet::set().
Referenced by triSurfaceMesh::edgeTree(), triSurfaceSearch::tree(), triSurfaceRegionSearch::treeByRegion(), and distributedTriSurfaceMesh::writeStats().
|
static |
|
static |
|
static |
|
static |
Definition at line 32 of file PatchToolsMatch.C.
References forAll, PrimitivePatch< FaceList, PointField >::meshPointMap(), PrimitivePatch< FaceList, PointField >::meshPoints(), PrimitivePatch< FaceList, PointField >::nPoints(), and List::resize().
|
static |
Definition at line 70 of file PatchToolsMatch.C.
References HashTable::cfind(), PrimitivePatch< FaceList, PointField >::edges(), forAll, HashTable::insert(), PrimitivePatch< FaceList, PointField >::meshEdge(), PrimitivePatch< FaceList, PointField >::nEdges(), List::resize(), PackedList::resize(), and bitSet::set().
Referenced by addPatchCellLayer::calcExtrudeInfo(), and createShellMesh::calcPointRegions().
|
static |
|
static |
|
static |
Definition at line 31 of file PatchToolsGatherAndMerge.C.
References f(), globalIndex::gather(), Foam::ListListOps::inplaceRenumber(), Foam::mergePoints(), p, globalIndex::sizes(), and List::transfer().
Referenced by mergedSurf::merge(), shortestPathSet::shortestPathSet(), and AMIWeights::writeWeightField().
|
static |
Definition at line 114 of file PatchToolsGatherAndMerge.C.
References f(), Foam::identity(), Foam::ListListOps::inplaceRenumber(), mesh, autoPtr::reset(), and List::setSize().
Foam::labelList edgeOwner | ( | const PrimitivePatch< FaceList, PointField > & | p | ) |
Definition at line 29 of file PatchToolsEdgeOwner.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, and p.
Foam::tmp<Foam::pointField> pointNormals | ( | const polyMesh & | mesh, |
const PrimitivePatch< FaceList, PointField > & | p | ||
) |
Definition at line 32 of file PatchToolsNormals.C.
References mapDistributeBase::constructSize(), globalMeshData::coupledPatch(), mapDistribute::distribute(), f(), faceNormals(), forAll, globalMeshData::globalPointSlaves(), globalMeshData::globalPointSlavesMap(), globalMeshData::globalPointTransformedSlaves(), globalMeshData::globalTransforms(), Foam::mag(), mesh, PrimitivePatch< FaceList, PointField >::meshPointMap(), n, p, pFaces, tmp::ref(), mapDistribute::reverseDistribute(), List::setSize(), Foam::sum(), and Foam::Zero.
Foam::tmp<Foam::pointField> edgeNormals | ( | const polyMesh & | mesh, |
const PrimitivePatch< FaceList, PointField > & | p, | ||
const labelList & | patchEdges, | ||
const labelList & | coupledEdges | ||
) |
Definition at line 188 of file PatchToolsNormals.C.
References mapDistributeBase::constructSize(), faceNormals(), forAll, globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeSlavesMap(), globalMeshData::globalEdgeTransformedSlaves(), globalMeshData::globalTransforms(), Foam::mag(), mesh, Foam::New(), p, globalMeshData::syncData(), and Foam::Zero.
Foam::label markZones | ( | const PrimitivePatch< FaceList, PointField > & | p, |
const BoolListType & | borderEdge, | ||
labelList & | faceZone | ||
) |
Definition at line 104 of file PatchToolsSearch.C.
References p, and List::setSize().
Foam::labelListList sortedEdgeFaces | ( | const PrimitivePatch< FaceList, PointField > & | p | ) |
Definition at line 31 of file PatchToolsSortEdges.C.
References Foam::constant::electromagnetic::e, f(), forAll, SortableList::indices(), Foam::mag(), Foam::max(), Foam::normalised(), p, Foam::pseudoAngle(), and SortableList::sort().
Foam::labelListList sortedPointEdges | ( | const PrimitivePatch< FaceList, PointField > & | p | ) |
Definition at line 29 of file PatchToolsSortPoints.C.
References DynamicList::append(), DynamicList::clear(), edge::end(), Foam::endl(), forAll, Foam::nl, p, DynamicList::setCapacity(), edge::start(), and WarningInFunction.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.