A list of faces which address into the list of points. More...
Public Types | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL, MANIFOLD, OPEN, ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
enum | surfaceTopo { MANIFOLD, OPEN, ILLEGAL, MANIFOLD, OPEN, ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
typedef Face | FaceType |
typedef FaceList< Face > | FaceListType |
typedef PointField | PointFieldType |
typedef Face | FaceType |
typedef FaceList< Face > | FaceListType |
typedef PointField | PointFieldType |
Public Member Functions | |
PrimitivePatch (const FaceList< Face > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList< Face > &faces, Field< PointType > &points, const bool reUse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField, PointType > &) | |
Construct as copy. More... | |
virtual | ~PrimitivePatch () |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. 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 > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | 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. More... | |
label | whichEdge (const edge &e) const |
Given an edge in local point labels, return its index. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const |
Project vertices of patch onto another patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=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=NULL) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
void | writeVTK (const fileName &name) const |
Write VTK patch. More... | |
void | writeVTKNormals (const fileName &name) const |
Write VTK patch normals. More... | |
virtual void | movePoints (const Field< PointType > &) |
Correct patch after moving points. More... | |
void | operator= (const PrimitivePatch< Face, FaceList, PointField, PointType > &) |
Assignment. More... | |
PrimitivePatch (const FaceList< Face > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (const Xfer< FaceList< Face > > &faces, const Xfer< List< PointType > > &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList< Face > &faces, Field< PointType > &points, const bool reUse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField, PointType > &) | |
Construct as copy. More... | |
virtual | ~PrimitivePatch () |
Destructor. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. 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 > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | 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... | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &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< PointType > &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=NULL) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
virtual void | movePoints (const Field< PointType > &) |
Correct patch after moving points. More... | |
void | operator= (const PrimitivePatch< Face, FaceList, PointField, PointType > &) |
Assignment. More... | |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
Static Public Member Functions | |
static void | writeVTK (const fileName &name, const FaceListType &faces, const Field< PointType > &points) |
Write generic VTK patch, HJ, 14/Jan/2009. More... | |
static void | writeVTKNormals (const fileName &name, const FaceListType &faces, const Field< PointType > &points) |
Write generic VTK patch normals, HJ, 14/Jan/2009. More... | |
Private Member Functions | |
void | calcBdryPoints () const |
Calculated boundary points on a patch. More... | |
void | calcAddressing () const |
Calculate addressing. More... | |
void | calcPointEdges () const |
Calculate point-edge addressing. More... | |
void | calcPointFaces () const |
Calculate point-face addressing. More... | |
void | calcMeshData () const |
Calculate mesh addressing. More... | |
void | calcMeshPointMap () const |
Calculate mesh point map. More... | |
void | calcEdgeLoops () const |
Calculate outside edge loops. More... | |
void | calcLocalPoints () const |
Calculate local points. More... | |
void | calcLocalPointOrder () const |
Calculate local point order. More... | |
void | calcFaceCentres () const |
Calculate face centres. More... | |
void | calcFaceNormals () const |
Calculate unit face normals. More... | |
void | calcPointNormals () const |
Calculate unit point normals. More... | |
void | calcEdgeOwner () const |
Calculate edge owner. More... | |
void | visitPointRegion (const label pointI, const labelList &pFaces, const label startFaceI, const label startEdgeI, boolList &pFacesHad) const |
Face-edge-face walk while remaining on a patch point. More... | |
void | calcIntBdryEdges () const |
Calculate edges of the patch. More... | |
void | calcBdryPoints () const |
Calculated boundary points on a patch. More... | |
void | calcAddressing () const |
Calculate addressing. More... | |
void | calcPointEdges () const |
Calculate point-edge addressing. More... | |
void | calcPointFaces () const |
Calculate point-face addressing. More... | |
void | calcMeshData () const |
Calculate mesh addressing. More... | |
void | calcMeshPointMap () const |
Calculate mesh point map. More... | |
void | calcEdgeLoops () const |
Calculate outside edge loops. More... | |
void | calcLocalPoints () const |
Calculate local points. More... | |
void | calcLocalPointOrder () const |
Calculate local point order. More... | |
void | calcFaceCentres () const |
Calculate face centres. More... | |
void | calcFaceNormals () const |
Calculate unit face normals. More... | |
void | calcPointNormals () const |
Calculate unit point normals. More... | |
void | calcEdgeOwner () const |
Calculate edge owner. More... | |
void | visitPointRegion (const label pointI, const labelList &pFaces, const label startFaceI, const label startEdgeI, boolList &pFacesHad) const |
Face-edge-face walk while remaining on a patch point. More... | |
Private Attributes | |
PointField | points_ |
Reference to global list of points. More... | |
edgeList * | edgesPtr_ |
Edges of the patch; address into local point list;. More... | |
label | nInternalEdges_ |
Which part of edgesPtr_ is internal edges. More... | |
labelList * | boundaryPointsPtr_ |
Boundary point labels, addressing into local point list. More... | |
labelListList * | faceFacesPtr_ |
Face-face addressing. More... | |
labelListList * | edgeFacesPtr_ |
Edge-face addressing. More... | |
labelListList * | faceEdgesPtr_ |
Face-edge addressing. More... | |
labelListList * | pointEdgesPtr_ |
Point-edge addressing. More... | |
labelListList * | pointFacesPtr_ |
Point-face addressing. More... | |
List< Face > * | localFacesPtr_ |
Faces addressing into local point list. More... | |
labelList * | meshPointsPtr_ |
Labels of mesh points. More... | |
Map< label > * | meshPointMapPtr_ |
Mesh point map. Given the global point index find its. More... | |
labelListList * | edgeLoopsPtr_ |
Outside edge loops. More... | |
Field< PointType > * | localPointsPtr_ |
Points local to patch. More... | |
labelList * | localPointOrderPtr_ |
Local point order for most efficient search. More... | |
Field< PointType > * | faceCentresPtr_ |
Face centres. More... | |
Field< PointType > * | faceNormalsPtr_ |
Face unit normals. More... | |
Field< PointType > * | pointNormalsPtr_ |
Point unit normals. More... | |
Static Private Attributes | |
static const debug::optimisationSwitch | nSquaredProjection_ |
N-squared projection forced. 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.
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 88 of file PrimitivePatchTemplate.H.
typedef Face FaceType |
Definition at line 98 of file PrimitivePatchTemplate.H.
typedef FaceList<Face> FaceListType |
Definition at line 99 of file PrimitivePatchTemplate.H.
typedef PointField PointFieldType |
Definition at line 100 of file PrimitivePatchTemplate.H.
typedef Face FaceType |
Definition at line 97 of file PrimitivePatch.H.
typedef FaceList<Face> FaceListType |
Definition at line 98 of file PrimitivePatch.H.
typedef PointField PointFieldType |
Definition at line 99 of file PrimitivePatch.H.
enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Enumerator | |
---|---|
MANIFOLD | |
OPEN | |
ILLEGAL | |
MANIFOLD | |
OPEN | |
ILLEGAL |
Definition at line 106 of file PrimitivePatchTemplate.H.
enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Enumerator | |
---|---|
MANIFOLD | |
OPEN | |
ILLEGAL | |
MANIFOLD | |
OPEN | |
ILLEGAL |
Definition at line 105 of file PrimitivePatch.H.
PrimitivePatch | ( | const FaceList< Face > & | faces, |
const Field< PointType > & | points | ||
) |
Construct from components.
Definition at line 58 of file PrimitivePatchTemplate.C.
PrimitivePatch | ( | FaceList< Face > & | faces, |
Field< PointType > & | points, | ||
const bool | reUse | ||
) |
Construct from components, reuse storage.
Definition at line 95 of file PrimitivePatchTemplate.C.
PrimitivePatch | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | pp | ) |
Construct as copy.
Definition at line 132 of file PrimitivePatchTemplate.C.
|
virtual |
Definition at line 169 of file PrimitivePatchTemplate.C.
PrimitivePatch | ( | const FaceList< Face > & | faces, |
const Field< PointType > & | points | ||
) |
Construct from components.
PrimitivePatch | ( | const Xfer< FaceList< Face > > & | faces, |
const Xfer< List< PointType > > & | points | ||
) |
Construct from components.
Definition at line 75 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList< Face > & | faces, |
Field< PointType > & | points, | ||
const bool | reUse | ||
) |
Construct from components, reuse storage.
PrimitivePatch | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | ) |
Construct as copy.
|
virtual |
Destructor.
|
private |
Calculated boundary points on a patch.
Definition at line 40 of file PrimitivePatchBdryPoints.C.
|
private |
Calculate addressing.
Definition at line 52 of file PrimitivePatchAddressing.C.
|
private |
Calculate point-edge addressing.
Definition at line 44 of file PrimitivePatchPointAddressing.C.
|
private |
Calculate point-face addressing.
Definition at line 115 of file PrimitivePatchPointAddressing.C.
|
private |
Calculate mesh addressing.
1.5 code:
If the point is used, set the mark to 1
Definition at line 40 of file PrimitivePatchMeshData.C.
|
private |
Calculate mesh point map.
Definition at line 160 of file PrimitivePatchMeshData.C.
|
private |
Calculate outside edge loops.
Definition at line 44 of file PrimitivePatchEdgeLoops.C.
|
private |
Calculate local points.
Definition at line 211 of file PrimitivePatchMeshData.C.
|
private |
Calculate local point order.
Definition at line 43 of file PrimitivePatchLocalPointOrder.C.
|
private |
Calculate face centres.
Definition at line 329 of file PrimitivePatchMeshData.C.
|
private |
Calculate unit face normals.
Definition at line 379 of file PrimitivePatchMeshData.C.
|
private |
Calculate unit point normals.
Definition at line 263 of file PrimitivePatchMeshData.C.
|
private |
Calculate edge owner.
|
private |
Face-edge-face walk while remaining on a patch point.
Used to determine if surface multiply connected through point.
Definition at line 46 of file PrimitivePatchCheck.C.
void clearOut |
Definition at line 132 of file PrimitivePatchClear.C.
Referenced by processorPolyPatch::updateMesh().
void clearGeom |
Definition at line 40 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearGeom(), and polyPatch::updateMesh().
void clearTopology |
Definition at line 65 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing().
void clearPatchMeshAddr |
Definition at line 107 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing().
|
inline |
Return reference to global points.
Definition at line 282 of file PrimitivePatchTemplate.H.
Referenced by geometrySurface::addGeometryToScene(), singleCellFvMesh::agglomerateMesh(), pairPatchAgglomeration::agglomeratePatch(), booleanSurface::booleanSurface(), isoSurfaceCell::calcAddressing(), Foam::meshTools::calcBoxPointNormals(), calcCurvature(), addPatchCellLayer::calcExtrudeInfo(), perfectInterface::calcFaceCentres(), patchCloudSet::calcSamples(), patchSeedSet::calcSamples(), cyclicAMIPolyPatch::calcTransforms(), cyclicPolyPatch::calcTransforms(), calcVertexCoordSys(), calcVertexNormals(), Foam::checkCoupledPoints(), Foam::checkTopology(), deleteEdges(), distributedTriSurfaceMesh::distribute(), drawHitProblem(), dumpCyclicMatch(), edgeIntersections::edgeIntersections(), PointEdgeWave< Type, TrackingData >::enterDomain(), extrudePatchMesh::extrudeMesh(), patchProbes::findElements(), mappedPatchBase::findSamples(), oldCyclicPolyPatch::getCentresAndAnchors(), cyclicPolyPatch::getCentresAndAnchors(), oldCyclicPolyPatch::getGeometricHalves(), autoLayerDriver::getPatchDisplacement(), processorPointPatch::initGeometry(), processorPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), PointEdgeWave< Type, TrackingData >::leaveDomain(), main(), immersedBoundaryFvPatch::makeTriSf(), momentOfInertia::massPropertiesPatch(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), oldCyclicPolyPatch::matchAnchors(), offsetSurface::operator()(), triSurface::operator=(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicPolyPatch::order(), orientedSurface::orientedSurface(), autoSnapDriver::outwardsDisplacement(), sampledCuttingPlane::points(), distanceSurface::points(), sampledIsoSurface::points(), boundaryMesh::read(), triSurf::readSurface(), cyclicPeriodicAMIPolyPatch::resetAMI(), globalPoints::reverseMeshPoints(), refinementSurfaces::setMinLevelFields(), patchInjectionBase::setPositionAndCell(), addPatchCellLayer::setRefinement(), cellDistFuncs::smallestDist(), autoSnapDriver::smoothPatchDisplacement(), isoSurface::stitchTriPoints(), MeshedSurface< Foam::face >::storedPoints(), triSurface::storedPoints(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), faceShading::triangulate(), faceHeatShading::triangulate(), triSurfaceTools::triangulate(), sampledSurfaces::update(), patchEdgeFaceInfo::updateEdge(), patchInjectionBase::updateMesh(), combineFaces::validFace(), isoSurfaceCell::validTri(), isoSurface::validTri(), immersedBoundaryFvPatchField< Type >::write(), and faceCoupleInfo::writePointsFaces().
|
inline |
Return number of points supporting patch faces.
Definition at line 293 of file PrimitivePatchTemplate.H.
Referenced by booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), autoSnapDriver::calcNearestFacePointProperties(), autoLayerDriver::calculateLayerThickness(), calcVertexNormals(), Foam::checkTopology(), meshStructure::correct(), globalPoints::countPatchPoints(), autoSnapDriver::detectNearSurfaces(), autoSnapDriver::determineBaffleFeatures(), triSurfaceTools::doRefine(), autoSnapDriver::doSnap(), polyDualMesh::dualPatch(), autoSnapDriver::edgePatchDist(), autoSnapDriver::featureAttractionUsingFeatureEdges(), medialAxisMeshMover::findIsolatedRegions(), cyclicPolyPatch::getCentresAndAnchors(), autoSnapDriver::getFacePoints(), boundaryMesh::getNPoints(), autoSnapDriver::getZoneSurfacePoints(), triSurfaceTools::greenRefine(), PointEdgeWave< Type, TrackingData >::handleCyclicPatches(), autoLayerDriver::handleNonManifolds(), PointEdgeWave< Type, TrackingData >::handleProcPatches(), main(), PatchTools::matchPoints(), triSurfaceTools::mergePoints(), globalMeshData::mergePoints(), fieldSmoother::minSmoothField(), medialAxisMeshMover::move(), offsetSurface::offsetSurface(), patchWriter::patchWriter(), autoSnapDriver::reverseAttractMeshPoints(), globalPoints::sendPatchPoints(), addPatchCellLayer::setRefinement(), autoLayerDriver::setupLayerInfoTruncation(), autoSnapDriver::smoothAndConstrain(), autoSnapDriver::smoothPatchDisplacement(), surfaceIntersection::surfaceIntersection(), surfaceMeshWriter::surfaceMeshWriter(), syncTools::syncPointList(), syncPoints(), isoSurface::syncUnseparatedPoints(), AC3DsurfaceFormat< Face >::write(), triSurface::writeAC(), and surfaceIntersection::writeIntersectedEdges().
|
inline |
Return number of edges in patch.
Definition at line 299 of file PrimitivePatchTemplate.H.
Referenced by booleanSurface::booleanSurface(), addPatchCellLayer::calcExtrudeInfo(), meshRefinement::calcPatchNumMasterFaces(), createShellMesh::calcPointRegions(), isoSurface::calcSnappedCc(), isoSurfaceCell::calcSnappedPoint(), isoSurface::calcSnappedPoint(), triSurfaceTools::collapseEdges(), isoSurfaceCell::collapseSurface(), meshRefinement::consistentOrientation(), meshStructure::correct(), patchPatchDist::correct(), autoSnapDriver::determineBaffleFeatures(), triSurfaceTools::doRefine(), edgeIntersections::edgeIntersections(), edgeSurface::edgeSurface(), extrudedMesh::extrudedMesh(), extrudePatchMesh::extrudeMesh(), oldCyclicPolyPatch::getGeometricHalves(), triSurfaceTools::greenRefine(), medialAxisMeshMover::handleFeatureAngleLayerTerminations(), fluxSummary::initialiseCellZoneAndDirection(), edgeIntersections::intersectEdges(), main(), meshRefinement::markPatchZones(), regionToFace::markZone(), PatchTools::matchEdges(), polyBoundaryMesh::neighbourEdges(), offsetSurface::offsetSurface(), edgeIntersections::removeDegenerates(), pairPatchAgglomeration::setEdgeWeights(), addPatchCellLayer::setRefinement(), surfaceIntersection::surfaceIntersection(), syncTools::syncEdgeList(), surfaceFeatures::toStatus(), and searchableSurfaces::writeStats().
const Foam::edgeList & edges |
Return list of edges, address into LOCAL point list.
Definition at line 212 of file PrimitivePatchTemplate.C.
Referenced by layerAdditionRemoval::addCellLayer(), booleanSurface::booleanSurface(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), autoSnapDriver::calcNearestFacePointProperties(), createShellMesh::calcPointRegions(), autoSnapDriver::calcSnapDistance(), edgeIntersections::checkEdges(), checkFlatRegionEdge(), searchableSurfaces::checkIntersection(), autoLayerDriver::checkManifold(), surfaceIntersection::classifyHit(), triSurfaceTools::collapseEdges(), meshStructure::correct(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), slidingInterface::coupleInterface(), deleteBox(), deleteEdges(), attachDetach::detachInterface(), autoSnapDriver::determineBaffleFeatures(), surfaceIntersection::doCutEdges(), triSurfaceTools::doRefine(), polyDualMesh::dualPatch(), triSurfaceTools::edgeCosAngle(), edgeSurface::edgeSurface(), surfaceIntersection::excludeEdgeHit(), extrudedMesh::extrudedCells(), extrudedMesh::extrudedFaces(), medialAxisMeshMover::findIsolatedRegions(), faceCoupleInfo::findMappedEdges(), triSurfaceTools::getCollapsedFaces(), surfaceIntersection::getEdge(), triSurfaceTools::getEdge(), addPatchCellLayer::getEdgeString(), triSurfaceTools::getMergedEdges(), combineFaces::getOutsideFace(), autoLayerDriver::getPatchDisplacement(), polyDualMesh::getPointEdges(), triSurfaceTools::getVertexTriangles(), triSurfaceTools::getVertexVertices(), triSurfaceTools::greenRefine(), autoLayerDriver::handleFeatureAngle(), medialAxisMeshMover::handleFeatureAngleLayerTerminations(), autoLayerDriver::handleNonManifolds(), edgeIntersections::inlinePerturb(), edgeIntersections::intersectEdges(), autoSnapDriver::isFeaturePoint(), main(), cellClassification::markFaces(), PatchTools::matchEdges(), triSurfaceTools::maxEdge(), triSurfaceTools::minEdge(), surfaceIntersection::minEdgeLen(), edgeIntersections::minEdgeLength(), fieldSmoother::minSmoothField(), slidingInterface::modifyMotionPoints(), PrimitivePatch< labelledTri, List, pointField, point >::nEdges(), polyBoundaryMesh::neighbourEdges(), edgeIntersections::offsetPerturb(), triSurfaceTools::oppositeEdge(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), slidingInterface::projectPoints(), booleanSurface::propagateEdgeSide(), booleanSurface::propagateSide(), edgeIntersections::rotatePerturb(), addPatchCellLayer::sameEdgeNeighbour(), pairPatchAgglomeration::setBasedEdgeWeights(), pairPatchAgglomeration::setEdgeWeights(), addPatchCellLayer::setFaceProps(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), autoSnapDriver::smoothAndConstrain(), fieldSmoother::smoothPatchNormals(), autoSnapDriver::stringFeatureEdges(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeMap(), testSparseData(), autoLayerDriver::truncateDisplacement(), patchFaceOrientation::updateEdge(), patchEdgeFaceInfo::updateEdge(), patchFaceOrientation::updateFace(), OBJstream::write(), faceCoupleInfo::writeEdges(), and surfaceIntersection::writeIntersectedEdges().
Foam::label nInternalEdges |
Number of internal edges.
Definition at line 232 of file PrimitivePatchTemplate.C.
Referenced by layerAdditionRemoval::addCellLayer(), patchPatchDist::correct(), attachDetach::detachInterface(), extrudedMesh::extrudedCells(), extrudedMesh::extrudedFaces(), extrudedMesh::extrudedMesh(), extrudePatchMesh::extrudeMesh(), combineFaces::getOutsideFace(), PrimitivePatch< labelledTri, List, pointField, point >::isInternalEdge(), main(), polyBoundaryMesh::neighbourEdges(), and addPatchCellLayer::setRefinement().
|
inline |
Is internal edge?
Definition at line 311 of file PrimitivePatchTemplate.H.
Referenced by pairPatchAgglomeration::setBasedEdgeWeights(), and pairPatchAgglomeration::setEdgeWeights().
const Foam::labelList & boundaryPoints |
Return list of boundary points,.
address into LOCAL point list
Definition at line 252 of file PrimitivePatchTemplate.C.
Referenced by globalPoints::initOwnPoints().
const Foam::labelListList & faceFaces |
Return face-face addressing.
Definition at line 272 of file PrimitivePatchTemplate.C.
Referenced by pairPatchAgglomeration::agglomerateOneLevel(), triSurfaceTools::calcRefineStatus(), slidingInterface::coupleInterface(), cellDistFuncs::getPointNeighbours(), main(), slidingInterface::projectPoints(), isoSurface::stitchTriPoints(), isoSurfaceCell::validTri(), and isoSurface::validTri().
const Foam::labelListList & edgeFaces |
Return edge-face addressing.
Definition at line 292 of file PrimitivePatchTemplate.C.
Referenced by layerAdditionRemoval::addCellLayer(), booleanSurface::booleanSurface(), polyDualMesh::calcDual(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), autoSnapDriver::calcNearestFacePointProperties(), createShellMesh::calcPointRegions(), checkFlatRegionEdge(), booleanSurface::checkIncluded(), autoLayerDriver::checkManifold(), surfaceIntersection::classifyHit(), triSurfaceTools::collapseEdges(), polyDualMesh::collectPatchInternalFace(), polyDualMesh::collectPatchSideFace(), autoSnapDriver::determineBaffleFeatures(), polyDualMesh::dualPatch(), triSurfaceTools::edgeSide(), edgeSurface::edgeSurface(), patchZones::edgeToFace(), extendedEdgeMesh::extendedEdgeMesh(), extrudedMesh::extrudedCells(), extrudedMesh::extrudedFaces(), extrudePatchMesh::extrudeMesh(), cellClassification::fillRegionEdges(), meshRefinement::findEdgeConnectedProblemCells(), triSurfaceTools::getCollapsedFaces(), oldCyclicPolyPatch::getGeometricHalves(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), triSurfaceTools::getVertexTriangles(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), autoLayerDriver::handleFeatureAngle(), medialAxisMeshMover::handleFeatureAngleLayerTerminations(), autoLayerDriver::handleNonManifolds(), main(), triSurfaceTools::otherFace(), slidingInterface::projectPoints(), triSurfaceTools::protectNeighbours(), pairPatchAgglomeration::setBasedEdgeWeights(), pairPatchAgglomeration::setEdgeWeights(), addPatchCellLayer::setRefinement(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceNormal(), autoLayerDriver::truncateDisplacement(), and unmarkBaffles().
const Foam::labelListList & faceEdges |
Return face-edge addressing.
Definition at line 312 of file PrimitivePatchTemplate.C.
Referenced by meshRefinement::calcPatchNumMasterFaces(), createShellMesh::calcPointRegions(), triSurfaceTools::collapseCreatesFold(), triSurfaceTools::collapseMinCosAngle(), meshRefinement::consistentOrientation(), cyclicPolyPatch::coupledEdges(), slidingInterface::coupleInterface(), triSurfaceTools::doRefine(), surfaceIntersection::getEdge(), addPatchCellLayer::getEdgeString(), combineFaces::getOutsideFace(), polyDualMesh::getPointEdges(), triSurfaceTools::getTriangle(), autoLayerDriver::getVertexString(), fluxSummary::initialiseCellZoneAndDirection(), intersectedSurface::intersectedSurface(), main(), meshRefinement::markPatchZones(), regionToFace::markZone(), triSurfaceTools::oppositeEdge(), triSurfaceTools::otherEdges(), slidingInterface::projectPoints(), booleanSurface::propagateSide(), addPatchCellLayer::setRefinement(), triSurfaceTools::surfaceNormal(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointEdges |
Return point-edge addressing.
Definition at line 332 of file PrimitivePatchTemplate.C.
Referenced by polyDualMesh::calcFeatures(), autoSnapDriver::calcSnapDistance(), slidingInterface::coupleInterface(), polyDualMesh::dualPatch(), faceCoupleInfo::findMappedEdges(), triSurfaceTools::getEdge(), autoLayerDriver::getPatchDisplacement(), triSurfaceTools::getVertexVertices(), edgeIntersections::inlinePerturb(), autoSnapDriver::isFeaturePoint(), surfaceIntersection::minEdgeLen(), edgeIntersections::minEdgeLength(), boundaryMesh::nFeatureEdges(), edgeIntersections::offsetPerturb(), triSurfaceTools::protectNeighbours(), edgeIntersections::rotatePerturb(), autoSnapDriver::smoothAndConstrain(), autoSnapDriver::stringFeatureEdges(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointFaces |
Return point-face addressing.
Definition at line 352 of file PrimitivePatchTemplate.C.
Referenced by globalPoints::addToSend(), autoSnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), autoSnapDriver::calcNearestFacePointProperties(), calcVertexNormals(), surfaceIntersection::classifyHit(), triSurfaceTools::collapseCreatesFold(), triSurfaceTools::collapseMinCosAngle(), polyDualMesh::collectPatchInternalFace(), polyDualMesh::collectPatchSideFace(), cellDistFuncs::correctBoundaryPointCells(), cellClassification::fillRegionPoints(), localPointRegion::findDuplicateFaces(), medialAxisMeshMover::findIsolatedRegions(), triSurfaceTools::getCollapsedFaces(), triSurfaceTools::getMergedEdges(), autoLayerDriver::getPatchDisplacement(), cellDistFuncs::getPointNeighbours(), triSurfaceTools::getVertexTriangles(), immersedBoundaryFvPatch::makeTriAddressing(), removeFaces::mergeFaces(), oldCyclicPolyPatch::order(), autoSnapDriver::outwardsDisplacement(), autoLayerDriver::setupLayerInfoTruncation(), autoSnapDriver::smoothPatchDisplacement(), and triSurfaceTools::vertexUsesFace().
const Foam::List< Face > & localFaces |
Return patch faces addressing into local point list.
Definition at line 372 of file PrimitivePatchTemplate.C.
Referenced by layerAdditionRemoval::addCellLayer(), autoLayerDriver::avgPointData(), autoSnapDriver::avoidDiagonalAttraction(), mappedPatchBase::calcAMI(), enrichedPatch::calcCutFaces(), autoSnapDriver::calcNearestSurfaceFeature(), attachDetach::calcPointMatchMap(), createShellMesh::calcPointRegions(), autoLayerDriver::calculateLayerThickness(), autoLayerDriver::checkAndUnmark(), checkFlatRegionEdge(), surfaceIntersection::classifyHit(), triSurfaceTools::collapseEdges(), faceSource::combineMeshGeometry(), autoLayerDriver::countExtrusion(), attachDetach::detachInterface(), autoSnapDriver::detectWarpedFaces(), AMIInterpolation< SourcePatch, TargetPatch >::distributePatches(), triSurfaceTools::doRefine(), surfaceIntersection::excludeEdgeHit(), extractSurface(), extrudedMesh::extrudedCells(), extrudedMesh::extrudedFaces(), extrudePatchMesh::extrudeMesh(), autoSnapDriver::findDiagonalAttraction(), localPointRegion::findDuplicateFaces(), medialAxisMeshMover::findIsolatedRegions(), surfaceIntersection::getEdge(), combineFaces::getOutsideFace(), polyDualMesh::getPointEdges(), cellDistFuncs::getPointNeighbours(), autoLayerDriver::getVertexString(), triSurfaceTools::greenRefine(), autoLayerDriver::growNoExtrusion(), medialAxisMeshMover::handleFeatureAngleLayerTerminations(), autoLayerDriver::handleWarpedFaces(), processorPolyPatch::initOrder(), intersectedSurface::intersectedSurface(), main(), Foam::mergeAndWrite(), removeFaces::mergeFaces(), triSurfaceTools::mergePoints(), MeshedSurface< Foam::face >::MeshedSurface(), meshTriangulation::meshTriangulation(), edgeIntersections::offsetPerturb(), triSurfaceTools::oppositeVertex(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), triSurfaceTools::otherEdges(), triSurfaceTools::otherVertices(), pairPatchAgglomeration::pairPatchAgglomeration(), patchWriter::patchWriter(), autoSnapDriver::preventFaceSqueeze(), slidingInterface::projectPoints(), booleanSurface::propagateSide(), boundaryMesh::read(), boundaryMesh::readTriSurface(), autoSnapDriver::releasePointsNextToMultiPatch(), autoSnapDriver::repatchToSurface(), regionCoupledBase::resetAMI(), cyclicAMIPolyPatch::resetAMI(), autoSnapDriver::reverseAttractMeshPoints(), autoLayerDriver::setNumLayers(), addPatchCellLayer::setRefinement(), autoLayerDriver::setupLayerInfoTruncation(), autoSnapDriver::splitDiagonals(), intersectedSurface::splitFace(), surfaceMeshWriter::surfaceMeshWriter(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), faceShading::triangulate(), faceHeatShading::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), autoLayerDriver::truncateDisplacement(), sampledPatch::update(), patchFaceOrientation::updateEdge(), patchFaceOrientation::updateFace(), AC3DsurfaceFormat< Face >::write(), OBJstream::write(), triSurface::writeAC(), externalCoupledFunctionObject::writeGeometry(), removeFaces::writeOBJ(), faceCoupleInfo::writePointsFaces(), and meshRefinement::zonify().
const Foam::labelList & meshPoints |
Return labelList of mesh points in patch.
Definition at line 392 of file PrimitivePatchTemplate.C.
Referenced by layerAdditionRemoval::addCellLayer(), globalPoints::addToSend(), singleCellFvMesh::agglomerateMesh(), pairPatchAgglomeration::agglomeratePatch(), attachDetach::attachInterface(), autoSnapDriver::avgCellCentres(), slidingInterface::calcAttachedAddressing(), Foam::meshTools::calcBoxPointNormals(), calcCurvature(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), enrichedPatch::calcMasterPointFaces(), autoSnapDriver::calcNearestFacePointProperties(), autoSnapDriver::calcNearestSurface(), autoSnapDriver::calcNearestSurfaceFeature(), attachDetach::calcPointMatchMap(), patchCloudSet::calcSamples(), patchSeedSet::calcSamples(), autoSnapDriver::calcSnapDistance(), medialAxisMeshMover::calculateDisplacement(), autoLayerDriver::calculateLayerThickness(), calcVertexNormals(), autoLayerDriver::checkManifold(), Foam::checkTopology(), Foam::checkWedges(), polyDualMesh::collectPatchSideFace(), enrichedPatch::completePointMap(), inversePointDistanceDiffusivity::correct(), meshStructure::correct(), patchPatchDist::correct(), cellDistFuncs::correctBoundaryPointCells(), cyclicPolyPatch::coupledEdges(), slidingInterface::coupleInterface(), deleteEdges(), attachDetach::detachInterface(), autoSnapDriver::detectNearSurfaces(), polyDualMesh::dualPatch(), autoSnapDriver::edgePatchDist(), PointEdgeWave< Type, TrackingData >::enterDomain(), extractSurface(), extrudePatchMesh::extrudeMesh(), layerAdditionRemoval::extrusionDir(), autoSnapDriver::featureAttractionUsingFeatureEdges(), medialAxisMeshMover::findIsolatedRegions(), mappedPatchBase::findSamples(), syncTools::getMasterPoints(), combineFaces::getOutsideFace(), autoLayerDriver::getPatchDisplacement(), globalPoints::globalPoints(), autoLayerDriver::growNoExtrusion(), PointEdgeWave< Type, TrackingData >::handleCollocatedPoints(), PointEdgeWave< Type, TrackingData >::handleCyclicPatches(), autoLayerDriver::handleNonManifolds(), PointEdgeWave< Type, TrackingData >::handleProcPatches(), globalPoints::initOwnPoints(), edgeIntersections::inlinePerturb(), edgeIntersections::intersectEdges(), PointEdgeWave< Type, TrackingData >::leaveDomain(), localPointRegion::localPointRegion(), main(), pointConstraints::makePatchPatchAddressing(), meshRefinement::markFacesOnProblemCells(), meshRefinement::markFacesOnProblemCellsGeometric(), PatchTools::matchEdges(), hexRef8::matchHexShape(), PatchTools::matchPoints(), removeFaces::mergeFaces(), globalMeshData::mergePoints(), polyMeshAdder::mergePrimitives(), facePointPatch::meshPoints(), fieldSmoother::minSmoothField(), medialAxisMeshMover::move(), polyBoundaryMesh::neighbourEdges(), linearValveLayersFvMesh::newPoints(), PrimitivePatch< labelledTri, List, pointField, point >::nPoints(), edgeIntersections::offsetPerturb(), orientedSurface::orientedSurface(), autoSnapDriver::outwardsDisplacement(), volPointInterpolation::pushUntransformedData(), globalPoints::receivePatchPoints(), autoSnapDriver::reverseAttractMeshPoints(), edgeIntersections::rotatePerturb(), globalPoints::sendPatchPoints(), motionSmootherAlgo::setDisplacement(), addPatchCellLayer::setFaceProps(), autoLayerDriver::setNumLayers(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), autoLayerDriver::setupLayerInfoTruncation(), autoSnapDriver::smoothAndConstrain(), autoSnapDriver::smoothDisplacement(), autoSnapDriver::smoothInternalDisplacement(), autoSnapDriver::smoothPatchDisplacement(), fieldSmoother::smoothPatchNormals(), polyDualMesh::splitFace(), syncTools::syncEdgeMap(), medialAxisMeshMover::syncPatchDisplacement(), autoLayerDriver::syncPatchDisplacement(), globalMeshData::syncPointData(), syncTools::syncPointList(), syncTools::syncPointMap(), syncPoints(), isoSurface::syncUnseparatedPoints(), pointConstraints::syncUntransformedData(), testSparseData(), boundaryMesh::triangulateLocal(), medialAxisMeshMover::update(), patchEdgeFaceInfo::updateEdge(), and externalCoupledFunctionObject::writeGeometry().
const Foam::Map< Foam::label > & meshPointMap |
Mesh point map. Given the global point index find its.
location in the patch
Definition at line 412 of file PrimitivePatchTemplate.C.
Referenced by calcCurvature(), autoLayerDriver::calculateLayerThickness(), calcVertexCoordSys(), slidingInterface::coupleInterface(), slidingInterface::decoupleInterface(), extractSurface(), cellClassification::fillRegionPoints(), autoSnapDriver::getFacePoints(), autoSnapDriver::getZoneSurfacePoints(), globalPoints::globalPoints(), pointConstraints::makePatchPatchAddressing(), PatchTools::matchPoints(), globalMeshData::mergePoints(), polyMeshAdder::mergePrimitives(), PatchTools::pointNormals(), autoLayerDriver::setNumLayers(), syncTools::syncPointList(), autoLayerDriver::truncateDisplacement(), and externalCoupledFunctionObject::writeGeometry().
const Foam::Field< PointType > & localPoints |
Return pointField of points in patch.
Definition at line 432 of file PrimitivePatchTemplate.C.
Referenced by autoSnapDriver::avoidDiagonalAttraction(), booleanSurface::booleanSurface(), meshToMesh0::calcAddressing(), mappedPatchBase::calcAMI(), autoSnapDriver::calcNearestSurface(), autoSnapDriver::calcNearestSurfaceFeature(), autoSnapDriver::calcSnapDistance(), edgeIntersections::checkEdges(), searchableSurfaces::checkIntersection(), surfaceIntersection::classifyHit(), triSurfaceTools::collapseEdges(), faceSource::combineMeshGeometry(), enrichedPatch::completePointMap(), cyclicPolyPatch::coupledEdges(), slidingInterface::coupleInterface(), deleteBox(), autoSnapDriver::detectNearSurfaces(), autoSnapDriver::detectWarpedFaces(), autoSnapDriver::determineBaffleFeatures(), autoSnapDriver::determineFeatures(), AMIInterpolation< SourcePatch, TargetPatch >::distributePatches(), surfaceIntersection::doCutEdges(), triSurfaceTools::doRefine(), autoSnapDriver::doSnap(), autoLayerDriver::dumpDisplacement(), triSurfaceTools::edgeCosAngle(), autoSnapDriver::edgePatchDist(), edgeSurface::edgeSurface(), extrudedMesh::extrudedFaces(), extrudedMesh::extrudedPoints(), autoSnapDriver::featureAttractionUsingFeatureEdges(), autoSnapDriver::featureAttractionUsingReconstruction(), autoSnapDriver::findDiagonalAttraction(), autoSnapDriver::findNearFeatureEdge(), autoSnapDriver::findNearFeaturePoint(), oldCyclicPolyPatch::getCentresAndAnchors(), cyclicPolyPatch::getCentresAndAnchors(), autoLayerDriver::getPatchDisplacement(), triSurfaceTools::greenRefine(), autoLayerDriver::handleFeatureAngle(), processorPolyPatch::initOrder(), autoSnapDriver::isFeaturePoint(), facePointPatch::localPoints(), main(), cellClassification::markFaces(), meshRefinement::markFacesOnProblemCells(), triSurfaceTools::maxEdge(), Foam::mergeAndWrite(), triSurfaceTools::mergePoints(), MeshedSurface< Foam::face >::MeshedSurface(), meshTriangulation::meshTriangulation(), triSurfaceTools::minEdge(), surfaceIntersection::minEdgeLen(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), polyBoundaryMesh::neighbourEdges(), edgeIntersections::offsetPerturb(), processorPolyPatch::order(), pairPatchAgglomeration::pairPatchAgglomeration(), patchWriter::patchWriter(), autoSnapDriver::preventFaceSqueeze(), slidingInterface::projectPoints(), boundaryMesh::read(), boundaryMesh::readTriSurface(), autoSnapDriver::releasePointsNextToMultiPatch(), regionCoupledBase::resetAMI(), autoSnapDriver::reverseAttractMeshPoints(), pairPatchAgglomeration::setBasedEdgeWeights(), pairPatchAgglomeration::setEdgeWeights(), autoLayerDriver::setNumLayers(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), autoSnapDriver::smoothDisplacement(), autoSnapDriver::smoothPatchDisplacement(), autoSnapDriver::stringFeatureEdges(), surfaceIntersection::surfaceIntersection(), surfaceMeshWriter::surfaceMeshWriter(), triSurfaceTools::surfaceSide(), testSparseData(), faceHeatShading::triangulate(), faceShading::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), sampledPatch::update(), AC3DsurfaceFormat< Face >::write(), OBJstream::write(), triSurface::writeAC(), faceCoupleInfo::writeEdges(), surfaceIntersection::writeIntersectedEdges(), removeFaces::writeOBJ(), triSurfaceTools::writeOBJ(), faceCoupleInfo::writePointsFaces(), and meshRefinement::zonify().
const Foam::labelList & localPointOrder |
Return orders the local points for most efficient search.
Definition at line 452 of file PrimitivePatchTemplate.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 473 of file PrimitivePatchTemplate.C.
Referenced by slidingInterface::modifyMotionPoints().
Foam::label whichEdge | ( | const edge & | e | ) | const |
Given an edge in local point labels, return its index.
in the edge list. If the edge is not found, return -1
Definition at line 175 of file PrimitivePatchMeshEdges.C.
Referenced by slidingInterface::modifyMotionPoints().
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 41 of file PrimitivePatchMeshEdges.C.
Referenced by polyDualMesh::calcDual(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), autoSnapDriver::calcNearestSurfaceFeature(), meshRefinement::calcPatchNumMasterFaces(), medialAxisMeshMover::calculateDisplacement(), autoSnapDriver::determineBaffleFeatures(), addPatchCellLayer::globalEdgeFaces(), main(), polyPatch::meshEdges(), addPatchCellLayer::setRefinement(), testSparseData(), and medialAxisMeshMover::update().
Foam::labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | pointEdges | ||
) | const |
Return labels of patch edges in the global edge list using.
basic edge addressing.
Definition at line 118 of file PrimitivePatchMeshEdges.C.
const Foam::Field< PointType > & faceCentres |
Return face centres for patch.
Definition at line 500 of file PrimitivePatchTemplate.C.
Referenced by symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), autoSnapDriver::calcNearestFace(), autoSnapDriver::calcNearestFacePointProperties(), autoLayerDriver::checkAndUnmark(), regionToFace::combine(), triSurfaceMesh::coordinates(), AMIInterpolation< SourcePatch, TargetPatch >::distributePatches(), cyclicPolyPatch::getCentresAndAnchors(), processorPolyPatch::initOrder(), main(), immersedBoundaryFvPatch::makeTriAddressing(), meshRefinement::markPatchZones(), processorPolyPatch::order(), patchEdgeFaceInfo::updateFace(), and boundaryDataSurfaceWriter::writeTemplate().
const Foam::Field< PointType > & faceNormals |
Return face normals for patch.
Definition at line 520 of file PrimitivePatchTemplate.C.
Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), geometrySurface::addGeometryToScene(), ThermoSurfaceFilm< CloudType >::bounceInteraction(), Foam::meshTools::calcBoxPointNormals(), polyDualMesh::calcFeatures(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), isoSurfaceCell::calcSnappedPoint(), faceHeatShading::calculate(), faceShading::calculate(), solarLoad::calculateQdiff(), solarHeatLoad::calculateQdiff(), checkFlatRegionEdge(), surfaceIntersection::classifyHit(), isoSurfaceCell::collapseSurface(), autoSnapDriver::determineBaffleFeatures(), surfaceToCell::differingPointNormals(), directions::directions(), ThermoSurfaceFilm< CloudType >::drySplashInteraction(), triSurfaceTools::edgeSide(), extrudePatchMesh::extrudeMesh(), meshRefinement::findEdgeConnectedProblemCells(), oldCyclicPolyPatch::getGeometricHalves(), autoLayerDriver::getPatchDisplacement(), autoLayerDriver::handleFeatureAngle(), medialAxisMeshMover::handleFeatureAngleLayerTerminations(), autoLayerDriver::handleWarpedFaces(), singleLayerRegion::initialise(), regionModel1D::initialise(), processorPolyPatch::initOrder(), edgeIntersections::intersectEdges(), intersectedSurface::intersectedSurface(), main(), regionModel1D::moveMesh(), processorPolyPatch::order(), autoSnapDriver::outwardsDisplacement(), pairPatchAgglomeration::setBasedEdgeWeights(), removeFaces::setRefinement(), ThermoSurfaceFilm< CloudType >::splashInteraction(), intersectedSurface::splitFace(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), unmarkBaffles(), solarLoad::updateDirectHitRadiation(), solarHeatLoad::updateDirectHitRadiation(), solarLoad::updateSkyDiffusiveRadiation(), solarHeatLoad::updateSkyDiffusiveRadiation(), wallLayerCells::wallLayerCells(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
const Foam::Field< PointType > & pointNormals |
Return point normals for patch.
Definition at line 540 of file PrimitivePatchTemplate.C.
Referenced by Foam::meshTools::calcBoxPointNormals(), slidingInterface::coupleInterface(), extrudedMesh::extrudedPoints(), layerAdditionRemoval::extrusionDir(), slidingInterface::modifyMotionPoints(), facePointPatch::pointNormals(), slidingInterface::projectPoints(), and triSurfaceTools::surfaceNormal().
List<objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg = intersection::FULL_RAY , |
||
const intersection::direction | dir = intersection::VECTOR |
||
) | const |
Project vertices of patch onto another patch.
Referenced by slidingInterface::projectPoints().
List<objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg = intersection::FULL_RAY , |
||
const intersection::direction | dir = intersection::VECTOR |
||
) | const |
Project vertices of patch onto another patch.
const Foam::labelListList & edgeLoops |
Return list of closed loops of boundary vertices.
Edge loops are given as ordered lists of vertices in local addressing
Definition at line 176 of file PrimitivePatchEdgeLoops.C.
Referenced by singleCellFvMesh::agglomerateMesh(), pairPatchAgglomeration::agglomeratePatch(), combineFaces::getOutsideFace(), hexRef8::matchHexShape(), removeFaces::mergeFaces(), combineFaces::setRefinement(), and combineFaces::validFace().
Foam::PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceTopo surfaceType |
Calculate surface type formed by patch.
some edges have more than two neighbours (illegal)
Definition at line 123 of file PrimitivePatchCheck.C.
Referenced by Foam::checkTopology().
bool checkTopology | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | 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 177 of file PrimitivePatchCheck.C.
Referenced by Foam::checkTopology().
bool checkPointManifold | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | 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 247 of file PrimitivePatchCheck.C.
Referenced by polyDualMesh::calcDual(), autoLayerDriver::checkManifold(), Foam::checkTopology(), cellClassification::fillRegionPoints(), and combineFaces::validFace().
|
static |
Write generic VTK patch, HJ, 14/Jan/2009.
Definition at line 345 of file PrimitivePatchCheck.C.
|
static |
Write generic VTK patch normals, HJ, 14/Jan/2009.
Definition at line 429 of file PrimitivePatchCheck.C.
void writeVTK | ( | const fileName & | name | ) | const |
Write VTK patch.
Definition at line 509 of file PrimitivePatchCheck.C.
void writeVTKNormals | ( | const fileName & | name | ) | const |
Write VTK patch normals.
Definition at line 532 of file PrimitivePatchCheck.C.
|
virtual |
Correct patch after moving points.
Definition at line 187 of file PrimitivePatchTemplate.C.
Referenced by cyclicAMIPolyPatch::initMovePoints(), immersedBoundaryPolyPatch::movePoints(), polyPatch::movePoints(), and cyclicPeriodicAMIPolyPatch::resetAMI().
void operator= | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | pp | ) |
Assignment.
Definition at line 563 of file PrimitivePatchTemplate.C.
Referenced by polyPatch::operator=().
|
private |
Calculate edges of the patch.
|
private |
Calculated boundary points on a patch.
|
private |
Calculate addressing.
|
private |
Calculate point-edge addressing.
|
private |
Calculate point-face addressing.
|
private |
Calculate mesh addressing.
|
private |
Calculate mesh point map.
|
private |
Calculate outside edge loops.
|
private |
Calculate local points.
|
private |
Calculate local point order.
|
private |
Calculate face centres.
|
private |
Calculate unit face normals.
|
private |
Calculate unit point normals.
|
private |
Calculate edge owner.
|
private |
Face-edge-face walk while remaining on a patch point.
Used to determine if surface multiply connected through point.
void clearOut | ( | ) |
void clearGeom | ( | ) |
void clearTopology | ( | ) |
void clearPatchMeshAddr | ( | ) |
|
inline |
Return reference to global points.
Definition at line 284 of file PrimitivePatch.H.
|
inline |
Return number of points supporting patch faces.
Definition at line 295 of file PrimitivePatch.H.
|
inline |
Return number of edges in patch.
Definition at line 301 of file PrimitivePatch.H.
const edgeList& edges | ( | ) | const |
Return list of edges, address into LOCAL point list.
label nInternalEdges | ( | ) | const |
Number of internal edges.
|
inline |
Is internal edge?
Definition at line 313 of file PrimitivePatch.H.
const labelList& boundaryPoints | ( | ) | const |
Return list of boundary points,.
address into LOCAL point list
const labelListList& faceFaces | ( | ) | const |
Return face-face addressing.
const labelListList& edgeFaces | ( | ) | const |
Return edge-face addressing.
const labelListList& faceEdges | ( | ) | const |
Return face-edge addressing.
const labelListList& pointEdges | ( | ) | const |
Return point-edge addressing.
const labelListList& pointFaces | ( | ) | const |
Return point-face addressing.
const List<Face>& localFaces | ( | ) | const |
Return patch faces addressing into local point list.
const labelList& meshPoints | ( | ) | const |
Return labelList of mesh points in patch. They are constructed.
walking through the faces in incremental order and not sorted anymore.
Mesh point map. Given the global point index find its.
location in the patch
const Field<PointType>& localPoints | ( | ) | const |
Return pointField of points in patch.
const labelList& localPointOrder | ( | ) | const |
Return orders the local points for most efficient search.
Given a global point index, return the local point index.
If the point is not found, return -1
Given an edge in local point labels, return its.
index in the edge list. If the edge is not found, return -1
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
labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | pointEdges | ||
) | const |
Return labels of patch edges in the global edge list using.
basic edge addressing.
const Field<PointType>& faceCentres | ( | ) | const |
Return face centres for patch.
const Field<PointType>& faceNormals | ( | ) | const |
Return face normals for patch.
const Field<PointType>& pointNormals | ( | ) | const |
Return point normals for patch.
List<objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | 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< PointType > & | projectionDirection, | ||
const intersection::algorithm | = intersection::FULL_RAY , |
||
const intersection::direction | = intersection::VECTOR |
||
) | const |
Project vertices of patch onto another patch.
const labelListList& edgeLoops | ( | ) | const |
Return list of closed loops of boundary vertices.
Edge loops are given as ordered lists of vertices in local addressing
surfaceTopo surfaceType | ( | ) | const |
Calculate surface type formed by patch.
Types:
bool checkTopology | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | 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.
bool checkPointManifold | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | 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.
|
virtual |
Correct patch after moving points.
void operator= | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | ) |
Assignment.
Foam::List< Foam::objectHit > projectPoints | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 48 of file PrimitivePatchProjectPoints.C.
Foam::List< Foam::objectHit > projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 317 of file PrimitivePatchProjectPoints.C.
|
private |
Reference to global list of points.
Definition at line 118 of file PrimitivePatchTemplate.H.
Referenced by PrimitivePatch< labelledTri, List, pointField, point >::points().
|
mutableprivate |
Edges of the patch; address into local point list;.
sorted with internal edges first in upper-triangular order and external edges last.
Definition at line 126 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Which part of edgesPtr_ is internal edges.
Definition at line 129 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Boundary point labels, addressing into local point list.
Definition at line 132 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Face-face addressing.
Definition at line 135 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Edge-face addressing.
Definition at line 138 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Face-edge addressing.
Definition at line 141 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Point-edge addressing.
Definition at line 144 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Point-face addressing.
Definition at line 147 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Faces addressing into local point list.
Definition at line 150 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Labels of mesh points.
Definition at line 153 of file PrimitivePatchTemplate.H.
Mesh point map. Given the global point index find its.
location in the patch
Definition at line 157 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Outside edge loops.
Definition at line 160 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Points local to patch.
Definition at line 163 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Local point order for most efficient search.
Definition at line 166 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Face centres.
Definition at line 169 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Face unit normals.
Definition at line 172 of file PrimitivePatchTemplate.H.
|
mutableprivate |
Point unit normals.
Definition at line 175 of file PrimitivePatchTemplate.H.
|
staticprivate |
N-squared projection forced.
Definition at line 181 of file PrimitivePatchTemplate.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.