Public Member Functions | Protected Member Functions | Protected Attributes | Friends
polyMeshGenFaces Class Referenceabstract
Inheritance diagram for polyMeshGenFaces:
Inheritance graph
[legend]
Collaboration diagram for polyMeshGenFaces:
Collaboration graph
[legend]

Public Member Functions

 polyMeshGenFaces (const Time &)
 Null constructor. More...
 
 polyMeshGenFaces (const Time &, const pointField &points, const faceList &faces)
 Construct from components without the boundary. More...
 
 polyMeshGenFaces (const Time &, const pointField &points, const faceList &faces, const wordList &patchNames, const labelList &patchStart, const labelList &nFacesInPatch)
 Construct from components with the boundary. More...
 
virtual ~polyMeshGenFaces ()
 
const faceListPMGfaces () const
 access to faces More...
 
label nInternalFaces () const
 return number of internal faces More...
 
const labelListowner () const
 owner and neighbour cells for faces More...
 
const labelListneighbour () const
 
const PtrList< processorBoundaryPatch > & procBoundaries () const
 inter-processor boundaries More...
 
label faceIsInProcPatch (const label faceLabel) const
 return processor patch label for the given face label More...
 
const PtrList< boundaryPatch > & boundaries () const
 ordinary boundaries More...
 
label faceIsInPatch (const label faceLabel) const
 return patch label for the given face label More...
 
wordList patchNames () const
 return list of patches in the boundary More...
 
label getPatchID (const word &patchName) const
 return the index of a patch given its name More...
 
word getPatchName (const label patchID) const
 return the name of a patch given its ID More...
 
labelList findPatches (const word &patchName) const
 return a list of patch indices corresponding to the given More...
 
label addFaceSubset (const word &)
 
void removeFaceSubset (const label)
 
word faceSubsetName (const label) const
 
label faceSubsetIndex (const word &) const
 
void addFaceToSubset (const label, const label)
 
void removeFaceFromSubset (const label, const label)
 
void faceInSubsets (const label, DynList< label > &) const
 
void faceSubsetIndices (DynList< label > &) const
 
template<class ListType >
void facesInSubset (const label, ListType &) const
 
template<class ListType >
void updateFaceSubsets (const ListType &)
 
void updateFaceSubsets (const VRWGraph &)
 
void read ()
 
void write () const
 
- Public Member Functions inherited from polyMeshGenPoints
 polyMeshGenPoints (const Time &)
 Null constructor. More...
 
 polyMeshGenPoints (const Time &, const pointField &points)
 Construct from components without the boundary. More...
 
 ~polyMeshGenPoints ()
 
const TimereturnTime () const
 access to Time More...
 
const pointFieldPMGpoints () const
 access to points More...
 
pointFieldPMGpoints ()
 non-const access to points More...
 
void appendVertex (const point &p)
 append a vertex to the end of the list More...
 
label addPointSubset (const word &)
 point subsets More...
 
void removePointSubset (const label)
 
word pointSubsetName (const label) const
 
label pointSubsetIndex (const word &) const
 
void addPointToSubset (const label, const label)
 
void removePointFromSubset (const label, const label)
 
void pointInSubsets (const label, DynList< label > &) const
 
void pointSubsetIndices (DynList< label > &) const
 
template<class ListType >
void pointsInSubset (const label, ListType &) const
 
template<class ListType >
void updatePointSubsets (const ListType &)
 
void read ()
 
void write () const
 

Protected Member Functions

virtual void calculateOwnersAndNeighbours () const =0
 calculate owner and neighbour addressing More...
 
void clearOut () const
 clear all pointer data More...
 
void operator= (const polyMeshGenFaces &)
 
 polyMeshGenFaces (const polyMeshGenFaces &)
 
- Protected Member Functions inherited from polyMeshGenPoints
void operator= (const polyMeshGenPoints &)
 
 polyMeshGenPoints (const polyMeshGenPoints &)
 

Protected Attributes

faceListPMG faces_
 list of faces More...
 
PtrList< processorBoundaryPatchprocBoundaries_
 
PtrList< boundaryPatchboundaries_
 boundary data More...
 
std::map< label, meshSubsetfaceSubsets_
 face subsets More...
 
label nIntFaces_
 number of internal faces, owner and neighbour More...
 
labelIOListownerPtr_
 
labelIOListneighbourPtr_
 
- Protected Attributes inherited from polyMeshGenPoints
const TimerunTime_
 reference to the Time registry More...
 
pointFieldPMG points_
 list of vertices More...
 
std::map< label, meshSubsetpointSubsets_
 map of point subsets More...
 

Friends

class polyMeshGenModifier
 

Detailed Description

Definition at line 50 of file polyMeshGenFaces.H.

Constructor & Destructor Documentation

◆ polyMeshGenFaces() [1/4]

polyMeshGenFaces ( const polyMeshGenFaces )
protected

◆ polyMeshGenFaces() [2/4]

polyMeshGenFaces ( const Time runTime)

Null constructor.

Definition at line 50 of file polyMeshGenFaces.C.

◆ polyMeshGenFaces() [3/4]

polyMeshGenFaces ( const Time runTime,
const pointField points,
const faceList faces 
)

Construct from components without the boundary.

Definition at line 74 of file polyMeshGenFaces.C.

◆ polyMeshGenFaces() [4/4]

polyMeshGenFaces ( const Time runTime,
const pointField points,
const faceList faces,
const wordList patchNames,
const labelList patchStart,
const labelList nFacesInPatch 
)

Construct from components with the boundary.

Definition at line 102 of file polyMeshGenFaces.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, UPstream::parRun(), patchNames(), and List::size().

Here is the call graph for this function:

◆ ~polyMeshGenFaces()

~polyMeshGenFaces ( )
virtual

Definition at line 161 of file polyMeshGenFaces.C.

References polyMeshGenFaces::clearOut().

Here is the call graph for this function:

Member Function Documentation

◆ calculateOwnersAndNeighbours()

virtual void calculateOwnersAndNeighbours ( ) const
protectedpure virtual

calculate owner and neighbour addressing

Implemented in polyMeshGenCells.

Referenced by polyMeshGenFaces::neighbour(), polyMeshGenFaces::nInternalFaces(), polyMeshGenFaces::owner(), and polyMeshGenFaces::write().

Here is the caller graph for this function:

◆ clearOut()

void clearOut ( ) const
protected

clear all pointer data

Definition at line 41 of file polyMeshGenFaces.C.

References Foam::deleteDemandDrivenData(), polyMeshGenFaces::neighbourPtr_, and polyMeshGenFaces::ownerPtr_.

Referenced by polyMeshGenCells::clearOut(), and polyMeshGenFaces::~polyMeshGenFaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const polyMeshGenFaces )
protected

◆ faces()

const faceListPMG & faces ( ) const
inline

access to faces

Definition at line 43 of file polyMeshGenFacesI.H.

References polyMeshGenFaces::faces_.

Referenced by decomposeCells::addNewCells(), polyMeshGenAddressing::calcCellPoints(), polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::calcEdges(), polyMeshGenAddressing::calcFaceCentresAndAreas(), polyMeshGenAddressing::calcFaceEdges(), meshSurfaceEngine::calcGlobalBoundaryEdgeLabels(), meshSurfaceEngine::calcGlobalBoundaryPointLabels(), polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::calcGlobalFaceLabels(), polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::calcPointFaces(), polyMeshGenAddressing::calcPointPoints(), meshSurfaceEngine::calculateBoundaryFaces(), meshSurfaceEngine::calculateBoundaryNodes(), meshSurfaceEngine::calculateEdgesAndAddressing(), boundaryLayerOptimisation::calculateHairEdges(), renameBoundaryPatches::calculateNewBoundary(), polyMeshGenModifier::calculatePointFaces(), edgeExtractor::checkConcaveEdgeCells(), decomposeCells::checkFaceConnections(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableFaces(), meshSurfaceEdgeExtractor::createEdgeVertices(), createFundamentalSheetsFJ::createInitialSheet(), extrudeLayer::createLayerCells(), tetMeshExtractorOctree::createMesh(), cartesianMeshExtractor::createMesh(), voronoiMeshExtractor::createMesh(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), decomposeCells::decomposeCellIntoPyramids(), correctEdgesBetweenPatches::decomposeConcaveFaces(), decomposeFaces::decomposeMeshFaces(), cartesianMeshExtractor::decomposeSplitHexesIntoTetsAndPyramids(), symmetryPlaneOptimisation::detectSymmetryPlanes(), meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), meshSurfaceEngine::faces(), polyMeshGen2DEngine::findActiveFaces(), surfaceMorpherCells::findBoundaryVertices(), checkNonMappableCellConnections::findCellTypes(), checkBoundaryFacesSharingTwoEdges::findFacesAtBndEdge(), findCellsIntersectingSurface::findIntersectedCells(), refineBoundaryLayers::generateNewFaces(), checkBoundaryFacesSharingTwoEdges::improveTopology(), meshOptimizer::lockCells(), meshOptimizer::lockFaces(), meshOptimizer::lockPoints(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), surfaceMorpherCells::morphMesh(), extrudeLayer::movePoints(), meshOptimizer::optimizeLowQualityFaces(), symmetryPlaneOptimisation::pointInPlanes(), surfaceMorpherCells::removeCellsWithAllVerticesAtTheBoundary(), checkBoundaryFacesSharingTwoEdges::removeExcessiveVertices(), meshOptimizer::untangleMeshFV(), and extrudeLayer::updateBoundary().

◆ nInternalFaces()

label nInternalFaces ( ) const
inline

◆ owner()

const labelList & owner ( ) const
inline

owner and neighbour cells for faces

Definition at line 67 of file polyMeshGenFacesI.H.

References polyMeshGenFaces::calculateOwnersAndNeighbours(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenFaces::ownerPtr_.

Referenced by polyMeshGenModifier::addBufferCells(), decomposeCells::addNewCells(), polyMeshGenAddressing::calcCellCells(), meshSurfaceEngine::calculateBoundaryOwners(), renameBoundaryPatches::calculateNewBoundary(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableCells(), topologicalCleaner::checkNonMappableFaces(), meshConnectionsNeighbourOperator::collectGroups(), extrudeLayer::createDuplicateFrontFaces(), createFundamentalSheetsJFS::createInitialSheet(), createFundamentalSheetsFJ::createInitialSheet(), extrudeLayer::createNewVertices(), cartesianMeshExtractor::createPolyMesh(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), createFundamentalSheetsFJ::createSheetsAtFeatureEdges(), decomposeCells::decomposeCellIntoPyramids(), correctEdgesBetweenPatches::decomposeConcaveFaces(), cartesianMeshExtractor::decomposeSplitHexesIntoTetsAndPyramids(), meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), surfaceMorpherCells::findBoundaryCells(), checkCellConnectionsOverFaces::findCellGroups(), checkNonMappableCellConnections::findCells(), checkNonMappableCellConnections::findCellTypes(), findCellsIntersectingSurface::findIntersectedCells(), refineBoundaryLayers::generateNewCells(), refineBoundaryLayers::generateNewFaces(), checkBoundaryFacesSharingTwoEdges::improveTopology(), createFundamentalSheetsJFS::isTopologyOk(), surfaceMorpherCells::morphInternalFaces(), meshConnectionsNeighbourOperator::operator()(), polyMeshGenCells::read(), polyMeshGenModifier::renumberMesh(), meshOptimizer::untangleBoundaryLayer(), and extrudeLayer::updateBoundary().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ neighbour()

const labelList & neighbour ( ) const
inline

◆ procBoundaries()

const PtrList< processorBoundaryPatch > & procBoundaries ( ) const
inline

◆ faceIsInProcPatch()

label faceIsInProcPatch ( const label  faceLabel) const

return processor patch label for the given face label

Definition at line 168 of file polyMeshGenFaces.C.

References forAllReverse, and polyMeshGenFaces::procBoundaries_.

Referenced by topologicalCleaner::checkNonConsecutiveBoundaryVertices(), checkNonMappableCellConnections::findCells(), and checkNonMappableCellConnections::findCellTypes().

Here is the caller graph for this function:

◆ boundaries()

const PtrList< boundaryPatch > & boundaries ( ) const
inline

ordinary boundaries

Definition at line 111 of file polyMeshGenFacesI.H.

References polyMeshGenFaces::boundaries_.

Referenced by boundaryLayers::activate2DMode(), boundaryLayers::addLayerForAllPatches(), boundaryLayers::addLayerForPatch(), boundaryLayers::addWrapperLayer(), refineBoundaryLayers::analyseLayers(), polyMeshGenAddressing::calcGlobalFaceLabels(), meshSurfaceEngine::calculateBoundaryFacePatches(), meshSurfaceEngine::calculateBoundaryFaces(), meshSurfaceEngine::calculateBoundaryOwners(), boundaryLayerOptimisation::calculateHairEdges(), renameBoundaryPatches::calculateNewBoundary(), edgeExtractor::checkConcaveEdgeCells(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableCells(), topologicalCleaner::checkNonMappableFaces(), correctEdgesBetweenPatches::correctEdgesBetweenPatches(), meshSurfaceEdgeExtractor::createBoundaryFaces(), createFundamentalSheetsJFS::createInitialSheet(), createFundamentalSheetsFJ::createInitialSheet(), boundaryLayers::createLayerCells(), boundaryLayers::createNewVertices(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), createFundamentalSheetsFJ::createSheetsAtFeatureEdges(), decomposeCells::decomposeCells(), symmetryPlaneOptimisation::detectSymmetryPlanes(), meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), edgeExtractor::distributeBoundaryFaces(), meshSurfaceMapper2D::findActiveBoundaryEdges(), surfaceMorpherCells::findBoundaryCells(), surfaceMorpherCells::findBoundaryVertices(), checkNonMappableCellConnections::findCellTypes(), boundaryLayers::findPatchesToBeTreatedTogether(), refineBoundaryLayers::generateNewFaces(), refineBoundaryLayers::generateNewVertices(), createFundamentalSheetsJFS::isTopologyOk(), surfaceMorpherCells::morphInternalFaces(), symmetryPlaneOptimisation::pointInPlanes(), checkBoundaryFacesSharingTwoEdges::removeExcessiveVertices(), and extrudeLayer::updateBoundary().

Here is the caller graph for this function:

◆ faceIsInPatch()

label faceIsInPatch ( const label  faceLabel) const

return patch label for the given face label

Definition at line 190 of file polyMeshGenFaces.C.

References polyMeshGenFaces::boundaries_, and forAllReverse.

Referenced by decomposeCells::addNewCells(), and surfaceMorpherCells::morphBoundaryFaces().

Here is the caller graph for this function:

◆ patchNames()

wordList patchNames ( ) const

return list of patches in the boundary

Definition at line 203 of file polyMeshGenFaces.C.

References polyMeshGenFaces::boundaries_, and forAll.

Referenced by polyMeshGenFaces::findPatches().

Here is the caller graph for this function:

◆ getPatchID()

label getPatchID ( const word patchName) const

return the index of a patch given its name

Definition at line 215 of file polyMeshGenFaces.C.

References polyMeshGenFaces::boundaries_, and forAll.

◆ getPatchName()

word getPatchName ( const label  patchID) const

return the name of a patch given its ID

Definition at line 233 of file polyMeshGenFaces.C.

References Foam::abort(), polyMeshGenFaces::boundaries_, Foam::FatalError, and FatalErrorIn.

Referenced by renameBoundaryPatches::calculateNewBoundary(), and refineBoundaryLayers::setInteruptForPatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findPatches()

labelList findPatches ( const word patchName) const

return a list of patch indices corresponding to the given

name, expanding regular expressions

Definition at line 247 of file polyMeshGenFaces.C.

References Foam::endl(), Foam::findStrings(), polyMeshGenFaces::patchNames(), and WarningIn.

Referenced by renameBoundaryPatches::calculateNewBoundary(), and refineBoundaryLayers::setInteruptForPatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addFaceSubset()

label addFaceSubset ( const word setName)

◆ removeFaceSubset()

void removeFaceSubset ( const label  setI)

Definition at line 292 of file polyMeshGenFaces.C.

References polyMeshGenFaces::faceSubsets_.

◆ faceSubsetName()

word faceSubsetName ( const label  setI) const

Definition at line 300 of file polyMeshGenFaces.C.

References Foam::endl(), polyMeshGenFaces::faceSubsets_, and Foam::Warning.

Here is the call graph for this function:

◆ faceSubsetIndex()

label faceSubsetIndex ( const word setName) const

Definition at line 313 of file polyMeshGenFaces.C.

References polyMeshGenFaces::faceSubsets_.

Referenced by polyMeshGenFaces::addFaceSubset(), and meshOptimizer::lockFacesInSubset().

Here is the caller graph for this function:

◆ addFaceToSubset()

void addFaceToSubset ( const label  setID,
const label  faceI 
)
inline

◆ removeFaceFromSubset()

void removeFaceFromSubset ( const label  setI,
const label  faceI 
)
inline

Definition at line 130 of file polyMeshGenFacesI.H.

◆ faceInSubsets()

void faceInSubsets ( const label  faceI,
DynList< label > &  faceSubsets 
) const
inline

Definition at line 142 of file polyMeshGenFacesI.H.

References DynList< T, staticSize >::append(), and DynList< T, staticSize >::clear().

Here is the call graph for this function:

◆ faceSubsetIndices()

void faceSubsetIndices ( DynList< label > &  indices) const
inline

Definition at line 162 of file polyMeshGenFacesI.H.

References DynList< T, staticSize >::append(), DynList< T, staticSize >::clear(), and polyMeshGenFaces::faceSubsets_.

Here is the call graph for this function:

◆ facesInSubset()

void facesInSubset ( const label  setI,
ListType &  faceLabels 
) const
inline

Definition at line 178 of file polyMeshGenFacesI.H.

Referenced by meshOptimizer::lockFacesInSubset().

Here is the caller graph for this function:

◆ updateFaceSubsets() [1/2]

void updateFaceSubsets ( const ListType &  newFaceLabels)
inline

◆ updateFaceSubsets() [2/2]

void updateFaceSubsets ( const VRWGraph newFacesForFace)
inline

Definition at line 205 of file polyMeshGenFacesI.H.

References polyMeshGenFaces::faceSubsets_.

◆ read()

void read ( )

◆ write()

void write ( ) const

Friends And Related Function Documentation

◆ polyMeshGenModifier

friend class polyMeshGenModifier
friend

Definition at line 91 of file polyMeshGenFaces.H.

Field Documentation

◆ faces_

faceListPMG faces_
protected

◆ procBoundaries_

PtrList<processorBoundaryPatch> procBoundaries_
protected

◆ boundaries_

PtrList<boundaryPatch> boundaries_
protected

◆ faceSubsets_

std::map<label, meshSubset> faceSubsets_
protected

◆ nIntFaces_

label nIntFaces_
mutableprotected

number of internal faces, owner and neighbour

Definition at line 72 of file polyMeshGenFaces.H.

Referenced by polyMeshGenCells::calculateOwnersAndNeighbours(), polyMeshGenFaces::nInternalFaces(), and polyMeshGenFaces::read().

◆ ownerPtr_

labelIOList* ownerPtr_
mutableprotected

◆ neighbourPtr_

labelIOList* neighbourPtr_
mutableprotected

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