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

Public Member Functions

 polyMeshGenCells (const Time &)
 Null constructor. More...
 
 polyMeshGenCells (const Time &, const pointField &points, const faceList &faces, const cellList &cells)
 Construct from components without the boundary. More...
 
 polyMeshGenCells (const Time &, const pointField &points, const faceList &faces, const cellList &cells, const wordList &patchNames, const labelList &patchStart, const labelList &nFacesInPatch)
 Construct from components with the boundary. More...
 
 ~polyMeshGenCells ()
 
const cellListPMGcells () const
 access to cells More...
 
const polyMeshGenAddressingaddressingData () const
 addressing which may be needed More...
 
void clearAddressingData () const
 clear addressing data More...
 
label addCellSubset (const word &)
 
void removeCellSubset (const label)
 
word cellSubsetName (const label) const
 
label cellSubsetIndex (const word &) const
 
void addCellToSubset (const label, const label)
 
void removeCellFromSubset (const label, const label)
 
void cellInSubsets (const label, DynList< label > &) const
 
void cellSubsetIndices (DynList< label > &) const
 
template<class ListType >
void cellsInSubset (const label, ListType &) const
 
template<class ListType >
void updateCellSubsets (const ListType &)
 
void updateCellSubsets (const VRWGraph &)
 
void read ()
 
void write () const
 
- Public Member Functions inherited from polyMeshGenFaces
 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

void calculateOwnersAndNeighbours () const
 calculate owner and neighbour More...
 
void calculateAddressingData () const
 calculate mesh addressing More...
 
void clearOut () const
 clear all pointer data More...
 
void operator= (const polyMeshGenCells &)
 
 polyMeshGenCells (const polyMeshGenCells &)
 
- Protected Member Functions inherited from polyMeshGenFaces
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

cellListPMG cells_
 list of cells More...
 
std::map< label, meshSubsetcellSubsets_
 cell subsets More...
 
polyMeshGenAddressingaddressingDataPtr_
 primitive mesh which calculates addressing More...
 
- Protected Attributes inherited from polyMeshGenFaces
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 49 of file polyMeshGenCells.H.

Constructor & Destructor Documentation

◆ polyMeshGenCells() [1/4]

polyMeshGenCells ( const polyMeshGenCells )
protected

◆ polyMeshGenCells() [2/4]

polyMeshGenCells ( const Time runTime)

Null constructor.

Definition at line 263 of file polyMeshGenCells.C.

◆ polyMeshGenCells() [3/4]

polyMeshGenCells ( const Time runTime,
const pointField points,
const faceList faces,
const cellList cells 
)

Construct from components without the boundary.

Definition at line 274 of file polyMeshGenCells.C.

References cells.

◆ polyMeshGenCells() [4/4]

polyMeshGenCells ( const Time runTime,
const pointField points,
const faceList faces,
const cellList cells,
const wordList patchNames,
const labelList patchStart,
const labelList nFacesInPatch 
)

Construct from components with the boundary.

Definition at line 291 of file polyMeshGenCells.C.

References cells.

◆ ~polyMeshGenCells()

Definition at line 319 of file polyMeshGenCells.C.

References polyMeshGenCells::clearOut().

Here is the call graph for this function:

Member Function Documentation

◆ calculateOwnersAndNeighbours()

void calculateOwnersAndNeighbours ( ) const
protectedvirtual

calculate owner and neighbour

allocate owners

allocate neighbours

start calculating owners and neighbours

Implements polyMeshGenFaces.

Definition at line 45 of file polyMeshGenCells.C.

References Foam::abort(), Foam::constant::universal::c, polyMeshGenCells::cells_, TimePaths::constant(), Foam::dot(), Foam::endl(), polyMeshGenFaces::faces_, Foam::FatalError, FatalErrorIn, forAll, Foam::min(), UPstream::myProcNo(), polyMeshGenFaces::neighbourPtr_, polyMeshGenFaces::nInternalFaces(), polyMeshGenFaces::nIntFaces_, polyMeshGenFaces::ownerPtr_, polyMeshGenPoints::runTime_, Foam::Serr, and faceListPMG::size().

Referenced by polyMeshGenCells::calculateAddressingData().

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

◆ calculateAddressingData()

void calculateAddressingData ( ) const
protected

calculate mesh addressing

Definition at line 235 of file polyMeshGenCells.C.

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

Referenced by polyMeshGenCells::addressingData().

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

◆ clearOut()

void clearOut ( ) const
protected

◆ operator=()

void operator= ( const polyMeshGenCells )
protected

◆ cells()

const cellListPMG & cells ( ) const
inline

access to cells

Definition at line 39 of file polyMeshGenCellsI.H.

References polyMeshGenCells::cells_.

Referenced by polyMeshGenModifier::addBufferCells(), polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::calcCellPoints(), polyMeshGenAddressing::calcGlobalCellLabels(), boundaryLayerOptimisation::calculateHairEdges(), edgeExtractor::calculateSingleCellEdge(), meshSurfaceEngine::cells(), checkCellConnectionsOverFaces::checkCellGroups(), edgeExtractor::checkConcaveEdgeCells(), decomposeCells::checkFaceConnections(), topologicalCleaner::checkNonConsecutiveBoundaryVertices(), topologicalCleaner::checkNonMappableCells(), boundaryLayers::checkTopologyOfBoundaryFaces(), boundaryLayers::createLayerCells(), tetMeshExtractorOctree::createMesh(), cartesianMeshExtractor::createMesh(), voronoiMeshExtractor::createMesh(), boundaryLayers::createNewFacesAndCells(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), createFundamentalSheetsFJ::createSheetsAtFeatureEdges(), decomposeCells::decomposeCellIntoPyramids(), cartesianMeshExtractor::decomposeSplitHexesIntoTetsAndPyramids(), surfaceMorpherCells::findBoundaryCells(), checkNonMappableCellConnections::findCells(), checkNonMappableCellConnections::findCellTypes(), findCellsIntersectingSurface::findIntersectedCells(), refineBoundaryLayers::generateNewCells(), checkBoundaryFacesSharingTwoEdges::improveTopology(), createFundamentalSheetsJFS::isTopologyOk(), meshOptimizer::lockCells(), main(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), surfaceMorpherCells::morphMesh(), meshConnectionsNeighbourOperator::operator()(), checkNonMappableCellConnections::removeCells(), surfaceMorpherCells::removeCellsWithAllVerticesAtTheBoundary(), decomposeCells::removeDecomposedCells(), polyMeshGenModifier::renumberMesh(), meshConnectionsNeighbourOperator::size(), partTetMesh::updateOrigMesh(), fpmaMesh::writeCells(), and polyMeshGenModifier::zipUpCells().

Here is the caller graph for this function:

◆ addressingData()

const polyMeshGenAddressing & addressingData ( ) const

◆ clearAddressingData()

void clearAddressingData ( ) const

◆ addCellSubset()

label addCellSubset ( const word selName)

◆ removeCellSubset()

void removeCellSubset ( const label  setI)

Definition at line 381 of file polyMeshGenCells.C.

References polyMeshGenCells::cellSubsets_.

◆ cellSubsetName()

word cellSubsetName ( const label  setI) const

Definition at line 389 of file polyMeshGenCells.C.

References polyMeshGenCells::cellSubsets_, Foam::endl(), and Foam::Warning.

Here is the call graph for this function:

◆ cellSubsetIndex()

label cellSubsetIndex ( const word selName) const

Definition at line 402 of file polyMeshGenCells.C.

References polyMeshGenCells::cellSubsets_.

Referenced by polyMeshGenCells::addCellSubset(), refineBoundaryLayers::generateNewCells(), meshOptimizer::lockCellsInSubset(), and main().

Here is the caller graph for this function:

◆ addCellToSubset()

void addCellToSubset ( const label  selID,
const label  cellI 
)
inline

◆ removeCellFromSubset()

void removeCellFromSubset ( const label  selID,
const label  cellI 
)
inline

Definition at line 58 of file polyMeshGenCellsI.H.

◆ cellInSubsets()

void cellInSubsets ( const label  cellI,
DynList< label > &  cellSubsets 
) const
inline

Definition at line 71 of file polyMeshGenCellsI.H.

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

Here is the call graph for this function:

◆ cellSubsetIndices()

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

Definition at line 91 of file polyMeshGenCellsI.H.

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

Here is the call graph for this function:

◆ cellsInSubset()

void cellsInSubset ( const label  selID,
ListType &  cellLabels 
) const
inline

Definition at line 107 of file polyMeshGenCellsI.H.

Referenced by meshOptimizer::lockCellsInSubset(), and main().

Here is the caller graph for this function:

◆ updateCellSubsets() [1/2]

void updateCellSubsets ( const ListType &  newCellLabels)
inline

Definition at line 124 of file polyMeshGenCellsI.H.

Referenced by refineBoundaryLayers::generateNewCells(), and polyMeshGenModifier::renumberMesh().

Here is the caller graph for this function:

◆ updateCellSubsets() [2/2]

void updateCellSubsets ( const VRWGraph newCellsForCell)
inline

Definition at line 138 of file polyMeshGenCellsI.H.

◆ read()

void read ( )

◆ write()

void write ( ) const

write cell subsets

Definition at line 475 of file polyMeshGenCells.C.

References IOobject::AUTO_WRITE, polyMeshGenCells::cellSubsets_, TimePaths::constant(), forAll, HashSet< Key, Hash >::insert(), IOobject::NO_READ, polyMeshGenPoints::runTime_, polyMeshGenFaces::write(), and regIOobject::write().

Referenced by polyMeshGen::write().

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

Friends And Related Function Documentation

◆ polyMeshGenModifier

friend class polyMeshGenModifier
friend

Definition at line 81 of file polyMeshGenCells.H.

Field Documentation

◆ cells_

cellListPMG cells_
protected

◆ cellSubsets_

std::map<label, meshSubset> cellSubsets_
protected

◆ addressingDataPtr_

polyMeshGenAddressing* addressingDataPtr_
mutableprotected

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