A list of faces which address into the list of points. More...
Public Types | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
typedef std::remove_reference< FaceList >::type::value_type | face_type |
The face type. More... | |
typedef std::remove_reference< PointField >::type::value_type | point_type |
The point type. More... | |
typedef FaceList | FaceListType |
The face list type. More... | |
typedef PointField | PointFieldType |
The point field type. More... | |
typedef face_type | FaceType |
Deprecated(2020-03) prefer face_type typedef. More... | |
Public Member Functions | |
PrimitivePatch (const FaceList &faces, const PointField &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList &&faces, const PointField &points) | |
Construct from components, transferring faces. More... | |
PrimitivePatch (FaceList &faces, PointField &points, const bool reuse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< FaceList, PointField > &pp) | |
Copy construct. More... | |
virtual | ~PrimitivePatch () |
Destructor. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | swap (PrimitivePatch &)=delete |
Suppress direct swapping, since storage containers may be const. More... | |
const Field< point_type > & | points () const noexcept |
Return reference to global points. More... | |
label | nFaces () const noexcept |
Number of faces in the patch. More... | |
label | nPoints () const |
Number of points supporting patch faces. More... | |
label | nEdges () const |
Number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
const edgeList::subList | internalEdges () const |
Return sub-list of internal edges, address into LOCAL point list. More... | |
const edgeList::subList | boundaryEdges () const |
Return sub-list of boundary edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
label | nBoundaryEdges () const |
Number of boundary edges == (nEdges() - nInternalEdges()) More... | |
bool | isInternalEdge (const label edgei) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points, address into LOCAL point list. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< face_type > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
labelList | boundaryFaces () const |
labelList | uniqBoundaryFaces () const |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. More... | |
const Field< point_type > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. More... | |
edge | meshEdge (const label edgei) const |
From patch edge to global edge using meshPoints. More... | |
edge | meshEdge (const edge &e) const |
From patch edge to global edge using meshPoints. More... | |
label | findEdge (const edge &e) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
label | meshEdge (const label edgei, const edgeList &allEdges, const labelListList &pointEdges) const |
labelList | meshEdges (const labelUList &edgeLabels, const edgeList &allEdges, const labelListList &pointEdges) const |
const Field< point_type > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< point_type > & | faceAreas () const |
Return face area vectors for patch. More... | |
const Field< scalar > & | magFaceAreas () const |
Return face area magnitudes for patch. More... | |
const Field< point_type > & | faceNormals () const |
Return face unit normals for patch. More... | |
const Field< point_type > & | pointNormals () const |
Return point normals for patch. More... | |
bool | hasFaceAreas () const |
bool | hasFaceCentres () const |
bool | hasFaceNormals () const |
bool | hasPointNormals () const |
bool | hasBoundaryPoints () const |
bool | hasFaceFaces () const |
bool | hasEdgeFaces () const |
bool | hasFaceEdges () const |
bool | hasPointEdges () const |
bool | hasPointFaces () const |
bool | hasMeshPointMap () const |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
virtual void | movePoints (const Field< point_type > &) |
Correct patch after moving points. More... | |
void | operator= (const PrimitivePatch< FaceList, PointField > &rhs) |
Copy assign faces. Leave points alone (could be a reference). More... | |
void | operator= (PrimitivePatch< FaceList, PointField > &&rhs) |
Move assign faces. Leave points alone (could be a reference). More... | |
label | whichEdge (const edge &e) const |
Identical to findEdge. More... | |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
![]() | |
ClassName ("PrimitivePatch") | |
Runtime type information. More... | |
PrimitivePatchBase ()=default | |
Default construct. More... | |
A list of faces which address into the list of points.
The class is templated on the face type (e.g. triangle, polygon etc.) and on the list type of faces and points so that it can refer to existing lists using UList and const pointField& or hold the storage using List and pointField.
Definition at line 79 of file PrimitivePatch.H.
typedef std::remove_reference<FaceList>::type::value_type face_type |
The face type.
Definition at line 90 of file PrimitivePatch.H.
typedef std::remove_reference<PointField>::type::value_type point_type |
The point type.
Definition at line 94 of file PrimitivePatch.H.
typedef FaceList FaceListType |
The face list type.
Definition at line 97 of file PrimitivePatch.H.
typedef PointField PointFieldType |
The point field type.
Definition at line 100 of file PrimitivePatch.H.
Deprecated(2020-03) prefer face_type typedef.
Definition at line 104 of file PrimitivePatch.H.
enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Enumerator | |
---|---|
MANIFOLD | |
OPEN | |
ILLEGAL |
Definition at line 110 of file PrimitivePatch.H.
PrimitivePatch | ( | const FaceList & | faces, |
const PointField & | points | ||
) |
Construct from components.
Definition at line 35 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList && | faces, |
const PointField & | points | ||
) |
Construct from components, transferring faces.
Definition at line 66 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList & | faces, |
PointField & | points, | ||
const bool | reuse | ||
) |
Construct from components, reuse storage.
Definition at line 97 of file PrimitivePatch.C.
PrimitivePatch | ( | const PrimitivePatch< FaceList, PointField > & | pp | ) |
Copy construct.
Definition at line 129 of file PrimitivePatch.C.
|
virtual |
Destructor.
void clearOut | ( | ) |
Definition at line 85 of file PrimitivePatchClear.C.
Referenced by processorPolyPatch::updateMesh().
void clearGeom | ( | ) |
Definition at line 35 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearGeom(), and polyPatch::updateMesh().
void clearTopology | ( | ) |
Definition at line 50 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing().
void clearPatchMeshAddr | ( | ) |
Definition at line 73 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing().
|
delete |
Suppress direct swapping, since storage containers may be const.
|
inlinenoexcept |
Return reference to global points.
Definition at line 299 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), addPatchCellLayer::calcExtrudeInfo(), cyclicPolyPatch::calcTransforms(), cyclicAMIPolyPatch::calcTransforms(), AMIInterpolation::calculate(), triSurfaceTools::curvatures(), distributedTriSurfaceMesh::distribute(), Foam::drawHitProblem(), edgeIntersections::edgeIntersections(), Foam::edgeMeshTools::featureProximity(), patchProbes::findElements(), mappedPatchBase::findLocalSamples(), processorPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), trackingInverseDistance::markBoundaries(), inverseDistance::markBoundaries(), momentOfInertia::massPropertiesPatch(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), offsetSurface::operator()(), triSurface::operator=(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicPolyPatch::order(), orientedSurface::orientedSurface(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), boundaryMesh::read(), refinementSurfaces::setMinLevelFields(), addPatchCellLayer::setRefinement(), AMIInterpolation::srcPointFace(), MeshedSurface< Foam::face >::storedPoints(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), AMIInterpolation::tgtPointFace(), triSurfaceSearch::tree(), triSurfaceMeshPointSet::triSurfaceMeshPointSet(), triSurfaceTools::validTri(), triSurfaceTools::vertexNormals(), and triSurfaceTools::vertexTriads().
|
inlinenoexcept |
Number of faces in the patch.
Definition at line 305 of file PrimitivePatch.H.
|
inline |
Number of points supporting patch faces.
Definition at line 316 of file PrimitivePatch.H.
Referenced by patchMeshWriter::beginPiece(), booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), snappySnapDriver::getFacePoints(), triSurfaceTools::greenRefine(), PatchTools::matchPoints(), triSurfaceTools::mergePoints(), globalMeshData::mergePoints(), meshStructure::meshStructure(), fieldSmoother::minSmoothField(), offsetSurface::offsetSurface(), parseDriver::pointSize(), addPatchCellLayer::setRefinement(), patchFunction1Base::size(), surfaceIntersection::surfaceIntersection(), syncTools::syncPointList(), triSurfaceTools::vertexNormals(), patchMeshWriter::writePolys(), and patchMeshWriter::writePolysLegacy().
|
inline |
Number of edges in patch.
Definition at line 322 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), addPatchCellLayer::calcExtrudeInfo(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), edgeIntersections::edgeIntersections(), edgeSurface::edgeSurface(), triSurfaceTools::greenRefine(), PatchTools::matchEdges(), meshStructure::meshStructure(), polyBoundaryMesh::neighbourEdges(), offsetSurface::offsetSurface(), edgeIntersections::removeDegenerates(), addPatchCellLayer::setRefinement(), surfaceIntersection::surfaceIntersection(), syncTools::syncEdgeList(), faMesh::updateMesh(), and searchableSurfaces::writeStats().
const Foam::edgeList & edges | ( | ) | const |
Return list of edges, address into LOCAL point list.
Definition at line 183 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), addPatchCellLayer::calcExtrudeInfo(), snappySnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), faMeshDecomposition::decomposeMesh(), edgeSurface::edgeSurface(), triSurfaceTools::getEdge(), combineFaces::getOutsideFace(), triSurfaceTools::getVertexTriangles(), triSurfaceTools::getVertexVertices(), triSurfaceTools::greenRefine(), PatchTools::matchEdges(), triSurfaceTools::maxEdge(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), fieldSmoother::minSmoothField(), slidingInterface::modifyMotionPoints(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nEdges(), polyBoundaryMesh::neighbourEdges(), triSurfaceTools::oppositeEdge(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), fieldSmoother::smoothPatchNormals(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeList(), and syncTools::syncEdgeMap().
const Foam::edgeList::subList internalEdges | ( | ) | const |
Return sub-list of internal edges, address into LOCAL point list.
Definition at line 196 of file PrimitivePatch.C.
const Foam::edgeList::subList boundaryEdges | ( | ) | const |
Return sub-list of boundary edges, address into LOCAL point list.
Definition at line 205 of file PrimitivePatch.C.
Foam::label nInternalEdges | ( | ) | const |
Number of internal edges.
Definition at line 214 of file PrimitivePatch.C.
Referenced by faPatch::boundaryConnections(), faPatch::boundaryProcs(), faPatch::boundaryProcSizes(), patchPatchDist::correct(), faMeshDecomposition::decomposeMesh(), combineFaces::getOutsideFace(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::isInternalEdge(), polyBoundaryMesh::neighbourEdges(), addPatchCellLayer::setRefinement(), and faMesh::updateMesh().
Foam::label nBoundaryEdges | ( | ) | const |
Number of boundary edges == (nEdges() - nInternalEdges())
Definition at line 227 of file PrimitivePatch.C.
Referenced by faMesh::updateMesh().
|
inline |
Is internal edge?
Definition at line 343 of file PrimitivePatch.H.
const Foam::labelList & boundaryPoints | ( | ) | const |
Return list of boundary points, address into LOCAL point list.
Definition at line 236 of file PrimitivePatch.C.
const Foam::labelListList & faceFaces | ( | ) | const |
Return face-face addressing.
Definition at line 249 of file PrimitivePatch.C.
Referenced by triSurfaceTools::validTri().
const Foam::labelListList & edgeFaces | ( | ) | const |
Return edge-face addressing.
Definition at line 262 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), addPatchCellLayer::calcExtrudeInfo(), triSurfaceTools::collapseEdges(), triSurfaceTools::edgeSide(), edgeSurface::edgeSurface(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), triSurfaceTools::getVertexTriangles(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), triSurfaceTools::otherFace(), addPatchCellLayer::setRefinement(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceNormal(), and faMesh::updateMesh().
const Foam::labelListList & faceEdges | ( | ) | const |
Return face-edge addressing.
Definition at line 275 of file PrimitivePatch.C.
Referenced by cyclicPolyPatch::coupledEdges(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), intersectedSurface::intersectedSurface(), triSurfaceTools::oppositeEdge(), triSurfaceTools::otherEdges(), addPatchCellLayer::setRefinement(), triSurfaceTools::surfaceNormal(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointEdges | ( | ) | const |
Return point-edge addressing.
Definition at line 288 of file PrimitivePatch.C.
Referenced by snappySnapDriver::calcSnapDistance(), triSurfaceTools::getEdge(), triSurfaceTools::getVertexVertices(), edgeIntersections::minEdgeLength(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointFaces | ( | ) | const |
Return point-face addressing.
Definition at line 301 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), triSurfaceTools::getVertexTriangles(), oldCyclicPolyPatch::order(), and triSurfaceTools::vertexNormals().
const Foam::List< typename Foam::PrimitivePatch< FaceList, PointField >::face_type > & localFaces | ( | ) | const |
Return patch faces addressing into local point list.
Definition at line 317 of file PrimitivePatch.C.
Referenced by mappedPatchBase::calcAMI(), triSurfaceTools::collapseEdges(), combineFaces::getOutsideFace(), triSurfaceTools::greenRefine(), processorPolyPatch::initOrder(), processorCyclicPolyPatch::initOrder(), intersectedSurface::intersectedSurface(), triSurfaceTools::mergePoints(), triSurfaceTools::oppositeVertex(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), triSurfaceTools::otherEdges(), triSurfaceTools::otherVertices(), boundaryMesh::readTriSurface(), snappySnapDriver::repatchToSurface(), cyclicAMIPolyPatch::resetAMI(), addPatchCellLayer::setRefinement(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), triSurfaceTools::triangulateFaceCentre(), sampledFaceZone::update(), sampledPatch::update(), ensightFaces::write(), patchMeshWriter::writePolys(), patchMeshWriter::writePolysLegacy(), lumpedPointMovement::writeVTP(), AMIWeights::writeWeightField(), and lumpedPointMovement::writeZonesVTP().
Foam::labelList boundaryFaces | ( | ) | const |
Extract list of local faces corresponding to the boundary edges.
Definition at line 34 of file PrimitivePatchBdryFaces.C.
Foam::labelList uniqBoundaryFaces | ( | ) | const |
Extract sorted list of unique local faces associated with the boundary edges.
Definition at line 58 of file PrimitivePatchBdryFaces.C.
const Foam::labelList & meshPoints | ( | ) | const |
Return labelList of mesh points in patch.
They are constructed by walking through the faces in incremental order and not sorted anymore.
Definition at line 330 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), addPatchCellLayer::calcExtrudeInfo(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), triSurfaceTools::curvatures(), faMeshDecomposition::decomposeMesh(), snappySnapDriver::detectNearSurfaces(), mappedPatchBase::findLocalSamples(), combineFaces::getOutsideFace(), globalIndexAndTransform::globalIndexAndTransform(), globalPoints::globalPoints(), localPointRegion::localPointRegion(), processorFaPatch::makeNonGlobalPatchPoints(), PatchTools::matchPoints(), globalMeshData::mergePoints(), facePointPatch::meshPoints(), fieldSmoother::minSmoothField(), polyBoundaryMesh::neighbourEdges(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nPoints(), orientedSurface::orientedSurface(), motionSmootherAlgo::setDisplacement(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), snappySnapDriver::smoothDisplacement(), fieldSmoother::smoothPatchNormals(), syncTools::syncEdgeList(), syncTools::syncEdgeMap(), globalMeshData::syncPointData(), syncTools::syncPointList(), syncTools::syncPointMap(), pointConstraints::syncUntransformedData(), ensightFaces::uniqueMeshPoints(), triSurfaceTools::vertexNormals(), ensightFaces::write(), and AMIWeights::writeWeightField().
const Foam::Map< Foam::label > & meshPointMap | ( | ) | const |
Mesh point map.
Given the global point index find its location in the patch
Definition at line 343 of file PrimitivePatch.C.
Referenced by triSurfaceTools::curvatures(), snappySnapDriver::getFacePoints(), globalPoints::globalPoints(), PatchTools::matchPoints(), globalMeshData::mergePoints(), PatchTools::pointNormals(), syncTools::syncPointList(), ensightFaces::uniqueMeshPoints(), triSurfaceTools::vertexTriads(), ensightFaces::write(), Foam::ensightOutput::writePointField(), and AMIWeights::writeWeightField().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & localPoints | ( | ) | const |
Return pointField of points in patch.
Definition at line 359 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), mappedPatchBase::calcAMI(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), faMeshDecomposition::decomposeMesh(), snappySnapDriver::detectNearSurfaces(), edgeSurface::edgeSurface(), triSurfaceTools::greenRefine(), processorPolyPatch::initOrder(), processorCyclicPolyPatch::initOrder(), facePointPatch::localPoints(), triSurfaceTools::maxEdge(), triSurfaceTools::mergePoints(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), polyBoundaryMesh::neighbourEdges(), processorPolyPatch::order(), boundaryMesh::readTriSurface(), cyclicAMIPolyPatch::resetAMI(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), snappySnapDriver::smoothDisplacement(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeList(), triSurfaceTools::triangulateFaceCentre(), sampledFaceZone::update(), sampledPatch::update(), triSurfaceTools::writeOBJ(), patchMeshWriter::writePoints(), and lumpedPointMovement::writeZonesVTP().
const Foam::labelList & localPointOrder | ( | ) | const |
Return orders the local points for most efficient search.
Definition at line 372 of file PrimitivePatch.C.
Foam::label whichPoint | ( | const label | gp | ) | const |
Given a global point index, return the local point index.
If the point is not found, return -1
Definition at line 386 of file PrimitivePatch.C.
Referenced by slidingInterface::modifyMotionPoints().
Foam::edge meshEdge | ( | const label | edgei | ) | const |
From patch edge to global edge using meshPoints.
Definition at line 35 of file PrimitivePatchMeshEdges.C.
Referenced by PatchTools::matchEdges().
Foam::edge meshEdge | ( | const edge & | e | ) | const |
From patch edge to global edge using meshPoints.
Definition at line 43 of file PrimitivePatchMeshEdges.C.
Foam::label findEdge | ( | const edge & | e | ) | const |
Search for edge (local point labels) and return its index in the edge list or -1 if not found.
Ignores invalid or out-of-range edges
Definition at line 183 of file PrimitivePatchMeshEdges.C.
Referenced by PrimitivePatch<::Foam::List< labelledTri >, pointField >::whichEdge().
Foam::labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | cellEdges, | ||
const labelList & | faceCells | ||
) | const |
Return labels of patch edges in the global edge list using cell addressing
Definition at line 53 of file PrimitivePatchMeshEdges.C.
Referenced by addPatchCellLayer::calcExtrudeInfo(), addPatchCellLayer::globalEdgeFaces(), polyPatch::meshEdges(), and addPatchCellLayer::setRefinement().
Foam::labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | pointEdges | ||
) | const |
Return labels of patch edges into the global edge list using basic edge addressing.
Definition at line 103 of file PrimitivePatchMeshEdges.C.
Foam::label meshEdge | ( | const label | edgei, |
const edgeList & | allEdges, | ||
const labelListList & | pointEdges | ||
) | const |
Return label of the local patch edge into the global edge list using basic edge addressing.
Definition at line 137 of file PrimitivePatchMeshEdges.C.
Foam::labelList meshEdges | ( | const labelUList & | edgeLabels, |
const edgeList & | allEdges, | ||
const labelListList & | pointEdges | ||
) | const |
Return labels of specified patch edges into the global edge list using basic edge addressing.
Definition at line 162 of file PrimitivePatchMeshEdges.C.
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & faceCentres | ( | ) | const |
Return face centres for patch.
Definition at line 400 of file PrimitivePatch.C.
Referenced by symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), MeshedSurface< Foam::face >::Cf(), triSurfaceMesh::coordinates(), processorPolyPatch::initOrder(), processorPolyPatch::order(), triSurfaceTools::writeCloseness(), and AMIInterpolation::writeFaceConnectivity().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & faceAreas | ( | ) | const |
Return face area vectors for patch.
Definition at line 416 of file PrimitivePatch.C.
Referenced by MeshedSurface< Foam::face >::Sf().
const Foam::Field< Foam::scalar > & magFaceAreas | ( | ) | const |
Return face area magnitudes for patch.
Definition at line 429 of file PrimitivePatch.C.
Referenced by MeshedSurface< Foam::face >::magSf().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & faceNormals | ( | ) | const |
Return face unit normals for patch.
Definition at line 445 of file PrimitivePatch.C.
Referenced by KinematicSurfaceFilm< CloudType >::absorbInteraction(), KinematicSurfaceFilm< CloudType >::bounceInteraction(), Foam::meshTools::calcBoxPointNormals(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), directions::directions(), KinematicSurfaceFilm< CloudType >::drySplashInteraction(), triSurfaceTools::edgeSide(), processorPolyPatch::initOrder(), intersectedSurface::intersectedSurface(), regionModel1D::moveMesh(), processorPolyPatch::order(), removeFaces::setRefinement(), KinematicSurfaceFilm< CloudType >::splashInteraction(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), wallLayerCells::wallLayerCells(), KinematicSurfaceFilm< CloudType >::wetSplashInteraction(), and triSurfaceTools::writeCloseness().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & pointNormals | ( | ) | const |
Return point normals for patch.
Definition at line 461 of file PrimitivePatch.C.
Referenced by Foam::meshTools::calcBoxPointNormals(), slidingInterface::modifyMotionPoints(), facePointPatch::pointNormals(), and triSurfaceTools::surfaceNormal().
|
inline |
Definition at line 464 of file PrimitivePatch.H.
|
inline |
Definition at line 465 of file PrimitivePatch.H.
|
inline |
Definition at line 466 of file PrimitivePatch.H.
|
inline |
Definition at line 467 of file PrimitivePatch.H.
|
inline |
Definition at line 469 of file PrimitivePatch.H.
|
inline |
Definition at line 470 of file PrimitivePatch.H.
|
inline |
Definition at line 471 of file PrimitivePatch.H.
|
inline |
Definition at line 472 of file PrimitivePatch.H.
|
inline |
Definition at line 473 of file PrimitivePatch.H.
|
inline |
Definition at line 474 of file PrimitivePatch.H.
|
inline |
Definition at line 476 of file PrimitivePatch.H.
List<objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< point_type > & | projectionDirection, | ||
const intersection::algorithm | = intersection::FULL_RAY , |
||
const intersection::direction | = intersection::VECTOR |
||
) | const |
Project vertices of patch onto another patch.
List<objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< point_type > & | projectionDirection, | ||
const intersection::algorithm | = intersection::FULL_RAY , |
||
const intersection::direction | = intersection::VECTOR |
||
) | const |
Project vertices of patch onto another patch.
const Foam::labelListList & edgeLoops | ( | ) | const |
Return list of closed loops of boundary vertices.
Edge loops are given as ordered lists of vertices in local addressing
Definition at line 146 of file PrimitivePatchEdgeLoops.C.
Referenced by combineFaces::getOutsideFace().
Foam::PrimitivePatch< FaceList, PointField >::surfaceTopo surfaceType | ( | ) | const |
Calculate surface type formed by patch.
Types:
Definition at line 108 of file PrimitivePatchCheck.C.
bool checkTopology | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check surface formed by patch for manifoldness (see above).
Return true if any incorrect edges are found. Insert vertices of incorrect edges into set.
Definition at line 143 of file PrimitivePatchCheck.C.
bool checkPointManifold | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Checks primitivePatch for faces sharing point but not edge.
This denotes a surface that is pinched at a single point (test for pinched at single edge is already in PrimitivePatch) Returns true if this situation found and puts conflicting (mesh)point in set. Based on all the checking routines in primitiveMesh.
Definition at line 190 of file PrimitivePatchCheck.C.
|
virtual |
Correct patch after moving points.
Definition at line 171 of file PrimitivePatch.C.
Referenced by cyclicAMIPolyPatch::initMovePoints(), and polyPatch::movePoints().
void operator= | ( | const PrimitivePatch< FaceList, PointField > & | rhs | ) |
Copy assign faces. Leave points alone (could be a reference).
Definition at line 477 of file PrimitivePatch.C.
Referenced by polyPatch::operator=().
void operator= | ( | PrimitivePatch< FaceList, PointField > && | rhs | ) |
Move assign faces. Leave points alone (could be a reference).
Definition at line 497 of file PrimitivePatch.C.
|
inline |
Identical to findEdge.
Definition at line 556 of file PrimitivePatch.H.
Referenced by slidingInterface::modifyMotionPoints().
Foam::List<Foam::objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 44 of file PrimitivePatchProjectPoints.C.
Foam::List<Foam::objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< typename Foam::PrimitivePatch< FaceList, PointField >::point_type > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 275 of file PrimitivePatchProjectPoints.C.