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 cellListPMG & | cells () const |
access to cells More... | |
const polyMeshGenAddressing & | addressingData () 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 |
![]() | |
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 faceListPMG & | faces () const |
access to faces More... | |
label | nInternalFaces () const |
return number of internal faces More... | |
const labelList & | owner () const |
owner and neighbour cells for faces More... | |
const labelList & | neighbour () 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 |
![]() | |
polyMeshGenPoints (const Time &) | |
Null constructor. More... | |
polyMeshGenPoints (const Time &, const pointField &points) | |
Construct from components without the boundary. More... | |
~polyMeshGenPoints () | |
const Time & | returnTime () const |
access to Time More... | |
const pointFieldPMG & | points () const |
access to points More... | |
pointFieldPMG & | points () |
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 &) | |
![]() | |
void | clearOut () const |
clear all pointer data More... | |
void | operator= (const polyMeshGenFaces &) |
polyMeshGenFaces (const polyMeshGenFaces &) | |
![]() | |
void | operator= (const polyMeshGenPoints &) |
polyMeshGenPoints (const polyMeshGenPoints &) | |
Protected Attributes | |
cellListPMG | cells_ |
list of cells More... | |
std::map< label, meshSubset > | cellSubsets_ |
cell subsets More... | |
polyMeshGenAddressing * | addressingDataPtr_ |
primitive mesh which calculates addressing More... | |
![]() | |
faceListPMG | faces_ |
list of faces More... | |
PtrList< processorBoundaryPatch > | procBoundaries_ |
PtrList< boundaryPatch > | boundaries_ |
boundary data More... | |
std::map< label, meshSubset > | faceSubsets_ |
face subsets More... | |
label | nIntFaces_ |
number of internal faces, owner and neighbour More... | |
labelIOList * | ownerPtr_ |
labelIOList * | neighbourPtr_ |
![]() | |
const Time & | runTime_ |
reference to the Time registry More... | |
pointFieldPMG | points_ |
list of vertices More... | |
std::map< label, meshSubset > | pointSubsets_ |
map of point subsets More... | |
Friends | |
class | polyMeshGenModifier |
Definition at line 49 of file polyMeshGenCells.H.
|
protected |
polyMeshGenCells | ( | const Time & | runTime | ) |
Null constructor.
Definition at line 263 of file polyMeshGenCells.C.
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 | ( | 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().
|
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().
|
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().
|
protected |
clear all pointer data
Definition at line 254 of file polyMeshGenCells.C.
References polyMeshGenCells::addressingDataPtr_, polyMeshGenFaces::clearOut(), and Foam::deleteDemandDrivenData().
Referenced by polyMeshGenModifier::addBufferCells(), polyMeshGenModifier::addCell(), polyMeshGenModifier::addCells(), polyMeshGenModifier::clearAll(), polyMeshGenModifier::removeDuplicateFaces(), polyMeshGenModifier::removeFaces(), polyMeshGenModifier::removeUnusedVertices(), polyMeshGenModifier::renumberMesh(), polyMeshGenModifier::reorderBoundaryFaces(), polyMeshGenModifier::reorderProcBoundaryFaces(), and polyMeshGenCells::~polyMeshGenCells().
|
protected |
|
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().
const polyMeshGenAddressing & addressingData | ( | ) | const |
addressing which may be needed
return addressing which may be needed
Definition at line 327 of file polyMeshGenCells.C.
References polyMeshGenCells::addressingDataPtr_, polyMeshGenCells::calculateAddressingData(), Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenModifier::addBufferCells(), decomposeCells::addNewCells(), meshOptimizer::calculatePointLocations(), meshSurfaceEdgeExtractor::createEdgeVertices(), boundaryLayers::createNewFacesAndCells(), extrudeLayer::createNewVertices(), decomposeCells::decomposeMesh(), findCellsIntersectingSurface::findIntersectedCells(), polyMeshGen2DEngine::findZMaxOffsetPoints(), polyMeshGen2DEngine::findZMinOffsetPoints(), refineBoundaryLayers::generateNewVertices(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), surfaceMorpherCells::morphMesh(), extrudeLayer::movePoints(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), boundaryLayerOptimisation::optimiseHairNormalsInside(), symmetryPlaneOptimisation::pointInPlanes(), polyMeshGenModifier::renumberMesh(), and partTetMesh::updateOrigMesh().
void clearAddressingData | ( | ) | const |
clear addressing data
Definition at line 346 of file polyMeshGenCells.C.
References polyMeshGenCells::addressingDataPtr_, and Foam::deleteDemandDrivenData().
Referenced by meshSurfaceEdgeExtractor::createEdgeVertices(), voronoiMeshExtractor::createPolyMesh(), correctEdgesBetweenPatches::decomposeConcaveFaces(), correctEdgesBetweenPatches::decomposeProblematicFaces(), extrudeLayer::extrudeLayer(), main(), surfaceMorpherCells::morphBoundaryFaces(), surfaceMorpherCells::morphInternalFaces(), tetMeshGenerator::optimiseFinalMesh(), voronoiMeshGenerator::optimiseFinalMesh(), cartesianMeshGenerator::optimiseFinalMesh(), meshOptimizer::optimizeBoundaryLayer(), correctEdgesBetweenPatches::patchCorrection(), checkIrregularSurfaceConnections::~checkIrregularSurfaceConnections(), and extrudeLayer::~extrudeLayer().
Definition at line 351 of file polyMeshGenCells.C.
References meshSubset::CELLSUBSET, polyMeshGenCells::cellSubsetIndex(), polyMeshGenCells::cellSubsets_, Foam::endl(), Foam::max(), and Foam::Warning.
Referenced by polyMeshGenModifier::addBufferCells(), detectBoundaryLayers::analyseLayers(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), refineBoundaryLayers::generateNewCells(), meshOptimizer::optimizeBoundaryLayer(), polyMeshGenCells::read(), and meshOptimizer::untangleBoundaryLayer().
void removeCellSubset | ( | const label | setI | ) |
Definition at line 381 of file polyMeshGenCells.C.
References polyMeshGenCells::cellSubsets_.
Definition at line 389 of file polyMeshGenCells.C.
References polyMeshGenCells::cellSubsets_, Foam::endl(), and Foam::Warning.
Definition at line 402 of file polyMeshGenCells.C.
References polyMeshGenCells::cellSubsets_.
Referenced by polyMeshGenCells::addCellSubset(), refineBoundaryLayers::generateNewCells(), meshOptimizer::lockCellsInSubset(), and main().
Definition at line 45 of file polyMeshGenCellsI.H.
Referenced by polyMeshGenModifier::addBufferCells(), detectBoundaryLayers::analyseLayers(), createFundamentalSheetsJFS::createSheetsAtFeatureEdges(), refineBoundaryLayers::generateNewCells(), meshOptimizer::optimizeBoundaryLayer(), and meshOptimizer::untangleBoundaryLayer().
Definition at line 58 of file polyMeshGenCellsI.H.
Definition at line 71 of file polyMeshGenCellsI.H.
References DynList< T, staticSize >::append(), and DynList< T, staticSize >::clear().
Definition at line 91 of file polyMeshGenCellsI.H.
References DynList< T, staticSize >::append(), polyMeshGenCells::cellSubsets_, and DynList< T, staticSize >::clear().
|
inline |
Definition at line 107 of file polyMeshGenCellsI.H.
Referenced by meshOptimizer::lockCellsInSubset(), and main().
|
inline |
Definition at line 124 of file polyMeshGenCellsI.H.
Referenced by refineBoundaryLayers::generateNewCells(), and polyMeshGenModifier::renumberMesh().
|
inline |
Definition at line 138 of file polyMeshGenCellsI.H.
void read | ( | ) |
count the number of cells and create the cells
Definition at line 414 of file polyMeshGenCells.C.
References polyMeshGenCells::addCellSubset(), polyMeshGenCells::cells_, polyMeshGenCells::cellSubsets_, TimePaths::constant(), Foam::endl(), forAll, Foam::Info, IOobjectList::lookup(), IOobjectList::names(), polyMeshGenFaces::neighbour(), polyMeshGenFaces::owner(), polyMeshGenFaces::read(), polyMeshGenPoints::runTime_, cellListPMG::setSize(), and HashTable::toc().
Referenced by polyMeshGen::read().
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().
|
friend |
Definition at line 81 of file polyMeshGenCells.H.
|
protected |
list of cells
Definition at line 56 of file polyMeshGenCells.H.
Referenced by polyMeshGenModifier::addCells(), polyMeshGenCells::calculateOwnersAndNeighbours(), polyMeshGenCells::cells(), polyMeshGenModifier::cellsAccess(), polyMeshGenCells::read(), polyMeshGenModifier::removeDuplicateFaces(), polyMeshGenModifier::removeFaces(), polyMeshGenModifier::reorderBoundaryFaces(), and polyMeshGenModifier::reorderProcBoundaryFaces().
|
protected |
cell subsets
Definition at line 59 of file polyMeshGenCells.H.
Referenced by polyMeshGenCells::addCellSubset(), polyMeshGenCells::cellSubsetIndex(), polyMeshGenCells::cellSubsetIndices(), polyMeshGenCells::cellSubsetName(), polyMeshGenCells::read(), polyMeshGenCells::removeCellSubset(), and polyMeshGenCells::write().
|
mutableprotected |
primitive mesh which calculates addressing
Definition at line 62 of file polyMeshGenCells.H.
Referenced by polyMeshGenCells::addressingData(), polyMeshGenCells::calculateAddressingData(), polyMeshGenCells::clearAddressingData(), and polyMeshGenCells::clearOut().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.