Public Member Functions | |
ClassName ("polyMeshGenAddressing") | |
polyMeshGenAddressing (const polyMeshGenCells &mesh) | |
Construct from components. More... | |
~polyMeshGenAddressing () | |
const edgeList & | edges () const |
Return mesh edges. More... | |
const VRWGraph & | cellCells () const |
const VRWGraph & | edgeCells () const |
const VRWGraph & | pointCells () const |
const VRWGraph & | edgeFaces () const |
const VRWGraph & | pointFaces () const |
const VRWGraph & | cellEdges () const |
const VRWGraph & | faceEdges () const |
const VRWGraph & | pointEdges () const |
const VRWGraph & | pointPoints () const |
const VRWGraph & | cellPoints () const |
const labelLongList & | globalPointLabel () const |
const labelLongList & | globalFaceLabel () const |
const labelLongList & | globalCellLabel () const |
const labelLongList & | globalEdgeLabel () const |
const VRWGraph & | pointAtProcs () const |
const Map< label > & | globalToLocalPointAddressing () const |
const DynList< label > & | pointNeiProcs () const |
const VRWGraph & | edgeAtProcs () const |
const Map< label > & | globalToLocalEdgeAddressing () const |
const DynList< label > & | edgeNeiProcs () const |
const vectorField & | cellCentres () const |
const vectorField & | faceCentres () const |
const scalarField & | cellVolumes () const |
const vectorField & | faceAreas () const |
void | printAllocated () const |
Print a list of all the currently allocated mesh data. More... | |
void | clearGeom () |
Clear geometry. More... | |
void | clearAddressing () |
Clear topological data. More... | |
void | clearParallelAddressing () |
Clear parallel addressing. More... | |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD. More... | |
void | clearAll () |
Clear everything primitive, geometry and addressing. More... | |
void | updateGeometry (const boolList &changedFace) |
Private Member Functions | |
polyMeshGenAddressing (const polyMeshGenAddressing &) | |
Disallow construct as copy. More... | |
void | operator= (const polyMeshGenAddressing &) |
Disallow default bitwise assignment. More... | |
void | calcCellCells () const |
Calculate cell-cell addressing. More... | |
void | calcEdgeCells () const |
Calculate cell-edge addressing. More... | |
void | calcPointCells () const |
Calculate point-cell addressing. More... | |
void | calcEdgeFaces () const |
Calculate edge-face addressing. More... | |
void | calcFaceEdges () const |
Calculate face-edge addressing. More... | |
void | calcPointFaces () const |
Calculate point-face addressing. More... | |
void | calcCellEdges () const |
Calculate edge list. More... | |
void | calcPointEdges () const |
Calculate point-edge addressing. More... | |
void | calcPointPoints () const |
Calculate point-point addressing. More... | |
void | calcCellPoints () const |
Calculate cell-point addressing. More... | |
void | calcEdges () const |
During edge calculation, a larger set of data is assembled. More... | |
void | clearOutEdges () |
void | calcGlobalPointLabels () const |
calculate global point labels More... | |
void | calcGlobalFaceLabels () const |
calculate global face labels More... | |
void | calcGlobalCellLabels () const |
calculate global cell labels More... | |
void | calcGlobalEdgeLabels () const |
calculate global edge labels More... | |
void | calcFaceCentresAndAreas () const |
Calculate face centres and areas. More... | |
void | makeFaceCentresAndAreas (const pointFieldPMG &p, vectorField &fCtrs, vectorField &fAreas) const |
void | calcCellCentresAndVols () const |
Calculate cell centres and volumes. More... | |
void | makeCellCentresAndVols (const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols) const |
void | calcEdgeVectors () const |
Calculate edge vectors. More... | |
polyMeshGenAddressing () | |
Default constructor. More... | |
Definition at line 69 of file polyMeshGenAddressing.H.
|
private |
Disallow construct as copy.
|
private |
Default constructor.
polyMeshGenAddressing | ( | const polyMeshGenCells & | mesh | ) |
Construct from components.
Definition at line 40 of file polyMeshGenAddressing.C.
Definition at line 73 of file polyMeshGenAddressing.C.
References polyMeshGenAddressing::clearAll().
|
private |
Disallow default bitwise assignment.
|
private |
Calculate cell-cell addressing.
create the storage
Definition at line 40 of file polyMeshGenAddressingCellCells.C.
References Foam::abort(), DynList< T, staticSize >::appendIfNotIn(), Foam::constant::universal::c, polyMeshGenAddressing::ccPtr_, cells, polyMeshGenCells::cells(), Foam::FatalError, FatalErrorIn, forAll, polyMeshGenAddressing::mesh_, polyMeshGenFaces::neighbour(), polyMeshGenFaces::owner(), VRWGraph::setRow(), VRWGraphSMPModifier::setSizeAndRowSize(), and DynList< T, staticSize >::size().
Referenced by polyMeshGenAddressing::cellCells().
|
private |
Calculate cell-edge addressing.
Definition at line 36 of file polyMeshGenAddressingEdgeCells.C.
References Foam::abort(), polyMeshGenAddressing::cellEdges(), polyMeshGenAddressing::ecPtr_, polyMeshGenAddressing::edges(), Foam::FatalError, FatalErrorIn, VRWGraphSMPModifier::reverseAddressing(), and VRWGraph::setSize().
Referenced by polyMeshGenAddressing::edgeCells().
|
private |
Calculate point-cell addressing.
create the storage
Definition at line 36 of file polyMeshGenAddressingPointCells.C.
References Foam::abort(), polyMeshGenAddressing::cellPoints(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::mesh_, polyMeshGenAddressing::pcPtr_, polyMeshGenPoints::points(), VRWGraphSMPModifier::reverseAddressing(), VRWGraph::setSize(), and pointFieldPMG::size().
Referenced by polyMeshGenAddressing::pointCells().
|
private |
Calculate edge-face addressing.
Definition at line 36 of file polyMeshGenAddressingEdgeFaces.C.
References Foam::abort(), DynList< T, staticSize >::append(), polyMeshGenAddressing::edges(), polyMeshGenAddressing::efPtr_, f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, polyMeshGenAddressing::mesh_, polyMeshGenAddressing::pointFaces(), s(), VRWGraph::setRow(), VRWGraphSMPModifier::setSizeAndRowSize(), List::size(), and edge::start().
Referenced by polyMeshGenAddressing::edgeFaces().
|
private |
Calculate face-edge addressing.
Definition at line 40 of file polyMeshGenAddressingFaceEdges.C.
References Foam::abort(), polyMeshGenAddressing::edges(), f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::fePtr_, forAll, forAllRow, polyMeshGenAddressing::mesh_, polyMeshGenAddressing::pointFaces(), s(), VRWGraphSMPModifier::setSizeAndRowSize(), faceListPMG::size(), and edge::start().
Referenced by polyMeshGenAddressing::faceEdges().
|
private |
Calculate point-face addressing.
create the addressing
Definition at line 36 of file polyMeshGenAddressingPointFaces.C.
References Foam::abort(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::mesh_, nPoints, polyMeshGenAddressing::pfPtr_, polyMeshGenPoints::points(), VRWGraphSMPModifier::reverseAddressing(), VRWGraph::setSize(), and pointFieldPMG::size().
Referenced by polyMeshGenAddressing::pointFaces().
|
private |
Calculate edge list.
Definition at line 41 of file polyMeshGenAddressingCellEdges.C.
References Foam::abort(), DynList< T, staticSize >::appendIfNotIn(), Foam::constant::universal::c, cells, polyMeshGenCells::cells(), polyMeshGenAddressing::cePtr_, polyMeshGenAddressing::faceEdges(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, polyMeshGenAddressing::mesh_, VRWGraph::setRow(), VRWGraphSMPModifier::setSizeAndRowSize(), and DynList< T, staticSize >::size().
Referenced by polyMeshGenAddressing::cellEdges().
|
private |
Calculate point-edge addressing.
create the addressing
Definition at line 36 of file polyMeshGenAddressingPointEdges.C.
References Foam::abort(), Foam::e, polyMeshGenAddressing::edges(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::mesh_, polyMeshGenAddressing::pePtr_, polyMeshGenPoints::points(), VRWGraphSMPModifier::reverseAddressing(), VRWGraph::setSize(), and pointFieldPMG::size().
Referenced by polyMeshGenAddressing::pointEdges().
|
private |
Calculate point-point addressing.
Definition at line 40 of file polyMeshGenAddressingPointPoints.C.
References Foam::abort(), DynList< T, staticSize >::appendIfNotIn(), f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, polyMeshGenAddressing::mesh_, nPoints, polyMeshGenAddressing::pointFaces(), Foam::pos(), polyMeshGenAddressing::ppPtr_, VRWGraph::setRow(), VRWGraphSMPModifier::setSizeAndRowSize(), DynList< T, staticSize >::size(), and VRWGraph::size().
Referenced by polyMeshGenAddressing::pointPoints().
|
private |
Calculate cell-point addressing.
create the storage
Definition at line 40 of file polyMeshGenAddressingCellPoints.C.
References Foam::abort(), DynList< T, staticSize >::appendIfNotIn(), Foam::constant::universal::c, cells, polyMeshGenCells::cells(), polyMeshGenAddressing::cpPtr_, f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, polyMeshGenAddressing::mesh_, nPoints, VRWGraph::setRow(), VRWGraphSMPModifier::setSizeAndRowSize(), and DynList< T, staticSize >::size().
Referenced by polyMeshGenAddressing::cellPoints().
|
private |
During edge calculation, a larger set of data is assembled.
Create and destroy as a set, using clearOutEdges()
find all faces attached to this edge store the edge in case the face faceI is the face with the smallest label
this enables other threads to see the number of edges generated by each thread
find the starting position of the edges generated by this thread in the global list of edges
store edges into the global list
Definition at line 42 of file polyMeshGenAddressingEdges.C.
References Foam::abort(), LongList< T, Offset >::append(), VRWGraph::append(), Foam::e, polyMeshGenAddressing::edgeFaces(), polyMeshGenAddressing::edgesPtr_, edge::end(), f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, polyMeshGenAddressing::mesh_, polyMeshGenAddressing::pointFaces(), s(), List::setSize(), faceListPMG::size(), LongList< T, Offset >::size(), edge::start(), and face::which().
Referenced by polyMeshGenAddressing::edges().
|
private |
Definition at line 176 of file polyMeshGenAddressingEdges.C.
References Foam::deleteDemandDrivenData(), and polyMeshGenAddressing::edgesPtr_.
Referenced by polyMeshGenAddressing::clearAddressing().
|
private |
calculate global point labels
find which processors contain a given bnd point
exchange data with other processor and update bProcs continue this process as long as there is some change
data is sent as follows 1. face position in patch 2. local point position in face 3. number of patches for point 4. patch labels
start calculating global point labels
give local points their labels
send labels to non-local points
data is sent as follows 1. face position in patch 2. local point position in face 3. global point label
create global to local addressing and pointNeiProcs addressing
Definition at line 36 of file polyMeshGenAddressingParallelAddressing.C.
References Foam::abort(), LongList< T, Offset >::append(), VRWGraph::append(), DynList< T, staticSize >::appendIfNotIn(), VRWGraph::appendIfNotIn(), UPstream::blocking, LongList< T, Offset >::byteSize(), VRWGraph::contains(), Foam::exit(), f(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, Pstream::gatherList(), polyMeshGenAddressing::globalPointLabel(), polyMeshGenAddressing::globalPointLabelPtr_, polyMeshGenAddressing::globalToLocalPointAddressingPtr_, polyMeshGenAddressing::mesh_, Foam::min(), UPstream::myProcNo(), UPstream::nProcs(), UPstream::parRun(), pMin(), polyMeshGenAddressing::pointNeiProcsPtr_, polyMeshGenPoints::points(), polyMeshGenAddressing::pProcsPtr_, polyMeshGenFaces::procBoundaries(), Foam::reduce(), Pstream::scatterList(), LongList< T, Offset >::setSize(), List::setSize(), VRWGraph::setSize(), pointFieldPMG::size(), PtrList::size(), and VRWGraph::sizeOfRow().
Referenced by polyMeshGenAddressing::globalPointLabel(), polyMeshGenAddressing::globalToLocalPointAddressing(), polyMeshGenAddressing::pointAtProcs(), and polyMeshGenAddressing::pointNeiProcs().
|
private |
calculate global face labels
calculate labels for internal faces
calculate labels for processor boundaries
create global labels for boundary faces
Definition at line 296 of file polyMeshGenAddressingParallelAddressing.C.
References UPstream::blocking, polyMeshGenFaces::boundaries(), polyMeshGenFaces::faces(), forAll, Pstream::gatherList(), polyMeshGenAddressing::globalFaceLabel(), polyMeshGenAddressing::globalFaceLabelPtr_, polyMeshGenAddressing::mesh_, UPstream::myProcNo(), polyMeshGenFaces::nInternalFaces(), UPstream::nProcs(), UPstream::parRun(), polyMeshGenFaces::procBoundaries(), Pstream::scatterList(), LongList< T, Offset >::setSize(), List::setSize(), faceListPMG::size(), and PtrList::size().
Referenced by polyMeshGenAddressing::globalFaceLabel().
|
private |
calculate global cell labels
Definition at line 408 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenCells::cells(), forAll, Pstream::gatherList(), polyMeshGenAddressing::globalCellLabel(), polyMeshGenAddressing::globalCellLabelPtr_, polyMeshGenAddressing::mesh_, UPstream::myProcNo(), UPstream::nProcs(), UPstream::parRun(), Pstream::scatterList(), LongList< T, Offset >::setSize(), cellListPMG::size(), and LongList< T, Offset >::size().
Referenced by polyMeshGenAddressing::globalCellLabel().
|
private |
calculate global edge labels
find which processor contain a given bnd edge
exchange data with other processor and update eProcs continue this process as long as there is some change
data is sent as follows 1. face position in patch 2. local edge position in face 3. number of processors for edge 4. processor labels
start calculating global edge labels
give local points their labels
send labels to non-local edges
data is sent as follows 1. face position in patch 2. local edge position in face 3. number global label for the edge
create globalToLocal addressing
Definition at line 431 of file polyMeshGenAddressingParallelAddressing.C.
References Foam::abort(), LongList< T, Offset >::append(), VRWGraph::append(), DynList< T, staticSize >::appendIfNotIn(), VRWGraph::appendIfNotIn(), UPstream::blocking, LongList< T, Offset >::byteSize(), VRWGraph::contains(), polyMeshGenAddressing::edgeNeiProcsPtr_, polyMeshGenAddressing::edges(), polyMeshGenAddressing::eProcsPtr_, Foam::exit(), f(), polyMeshGenAddressing::faceEdges(), polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, forAll, forAllRow, Pstream::gatherList(), polyMeshGenAddressing::globalEdgeLabel(), polyMeshGenAddressing::globalEdgeLabelPtr_, polyMeshGenAddressing::globalToLocalEdgeAddressingPtr_, polyMeshGenAddressing::mesh_, UPstream::myProcNo(), UPstream::nProcs(), UPstream::parRun(), pMin(), polyMeshGenFaces::procBoundaries(), Foam::reduce(), Pstream::scatterList(), LongList< T, Offset >::setSize(), VRWGraph::setSize(), VRWGraph::size(), and VRWGraph::sizeOfRow().
Referenced by polyMeshGenAddressing::edgeAtProcs(), polyMeshGenAddressing::edgeNeiProcs(), polyMeshGenAddressing::globalEdgeLabel(), and polyMeshGenAddressing::globalToLocalEdgeAddressing().
|
private |
Calculate face centres and areas.
Definition at line 42 of file polyMeshGenAddressingCentresAndAreas.C.
References Foam::abort(), polyMeshGenAddressing::faceAreasPtr_, polyMeshGenAddressing::faceCentresPtr_, polyMeshGenFaces::faces(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::makeFaceCentresAndAreas(), polyMeshGenAddressing::mesh_, points, polyMeshGenPoints::points(), and faceListPMG::size().
Referenced by polyMeshGenAddressing::faceAreas(), and polyMeshGenAddressing::faceCentres().
|
private |
Definition at line 64 of file polyMeshGenAddressingCentresAndAreas.C.
References Foam::constant::universal::c, f(), Foam::mag(), n, nPoints, p, Foam::constant::mathematical::pi(), faceListPMG::size(), List::size(), and Vector< scalar >::zero.
Referenced by polyMeshGenAddressing::calcFaceCentresAndAreas().
|
private |
Calculate cell centres and volumes.
Definition at line 45 of file polyMeshGenAddressingCentresAndVols.C.
References Foam::abort(), polyMeshGenAddressing::cellCentresPtr_, cells, polyMeshGenCells::cells(), cellVols, polyMeshGenAddressing::cellVolumesPtr_, polyMeshGenAddressing::faceAreas(), polyMeshGenAddressing::faceCentres(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::makeCellCentresAndVols(), and polyMeshGenAddressing::mesh_.
Referenced by polyMeshGenAddressing::cellCentres(), and polyMeshGenAddressing::cellVolumes().
|
private |
approximate the centre first
start evaluating the volume and the cell centre
Definition at line 69 of file polyMeshGenAddressingCentresAndVols.C.
References Foam::constant::universal::c, cells, cellVols, forAll, Foam::max(), List::size(), and Vector< scalar >::zero.
Referenced by polyMeshGenAddressing::calcCellCentresAndVols().
|
private |
Calculate edge vectors.
ClassName | ( | "polyMeshGenAddressing" | ) |
const edgeList & edges | ( | ) | const |
Return mesh edges.
Definition at line 157 of file polyMeshGenAddressingEdges.C.
References polyMeshGenAddressing::calcEdges(), polyMeshGenAddressing::edgesPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcEdgeCells(), polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::calcFaceEdges(), polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::calcPointEdges(), meshSurfaceEdgeExtractor::createEdgeVertices(), refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
const VRWGraph & cellCells | ( | ) | const |
Definition at line 134 of file polyMeshGenAddressingCellCells.C.
References polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::ccPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenModifier::renumberMesh().
const VRWGraph & edgeCells | ( | ) | const |
Definition at line 58 of file polyMeshGenAddressingEdgeCells.C.
References polyMeshGenAddressing::calcEdgeCells(), polyMeshGenAddressing::ecPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
const VRWGraph & pointCells | ( | ) | const |
Definition at line 59 of file polyMeshGenAddressingPointCells.C.
References polyMeshGenAddressing::calcPointCells(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::pcPtr_.
Referenced by partTetMesh::updateOrigMesh().
const VRWGraph & edgeFaces | ( | ) | const |
Definition at line 136 of file polyMeshGenAddressingEdgeFaces.C.
References polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::efPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcEdges().
const VRWGraph & pointFaces | ( | ) | const |
Definition at line 60 of file polyMeshGenAddressingPointFaces.C.
References polyMeshGenAddressing::calcPointFaces(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::pfPtr_.
Referenced by decomposeCells::addNewCells(), polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::calcEdges(), polyMeshGenAddressing::calcFaceEdges(), and polyMeshGenAddressing::calcPointPoints().
const VRWGraph & cellEdges | ( | ) | const |
Definition at line 127 of file polyMeshGenAddressingCellEdges.C.
References polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::cePtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcEdgeCells().
const VRWGraph & faceEdges | ( | ) | const |
Definition at line 112 of file polyMeshGenAddressingFaceEdges.C.
References polyMeshGenAddressing::calcFaceEdges(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::fePtr_.
Referenced by polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::calcGlobalEdgeLabels(), and meshSurfaceEdgeExtractor::createEdgeVertices().
const VRWGraph & pointEdges | ( | ) | const |
Definition at line 59 of file polyMeshGenAddressingPointEdges.C.
References polyMeshGenAddressing::calcPointEdges(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::pePtr_.
Referenced by refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
const VRWGraph & pointPoints | ( | ) | const |
Definition at line 124 of file polyMeshGenAddressingPointPoints.C.
References polyMeshGenAddressing::calcPointPoints(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::ppPtr_.
Referenced by polyMeshGen2DEngine::findZMaxOffsetPoints(), and polyMeshGen2DEngine::findZMinOffsetPoints().
const VRWGraph & cellPoints | ( | ) | const |
Definition at line 122 of file polyMeshGenAddressingCellPoints.C.
References polyMeshGenAddressing::calcCellPoints(), polyMeshGenAddressing::cpPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcPointCells().
const labelLongList & globalPointLabel | ( | ) | const |
Definition at line 707 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalPointLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::globalPointLabelPtr_, and polyMeshGenAddressing::pProcsPtr_.
Referenced by polyMeshGenModifier::addBufferCells(), polyMeshGenAddressing::calcGlobalPointLabels(), extrudeLayer::createNewVertices(), meshOptimizer::laplaceSmoother::laplacianParallel(), meshOptimizer::laplaceSmoother::laplacianPCParallel(), and meshOptimizer::laplaceSmoother::laplacianWPCParallel().
const labelLongList & globalFaceLabel | ( | ) | const |
Definition at line 727 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalFaceLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::globalFaceLabelPtr_.
Referenced by polyMeshGenAddressing::calcGlobalFaceLabels().
const labelLongList & globalCellLabel | ( | ) | const |
Definition at line 747 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalCellLabels(), and polyMeshGenAddressing::globalCellLabelPtr_.
Referenced by polyMeshGenAddressing::calcGlobalCellLabels(), and extrudeLayer::createNewVertices().
const labelLongList & globalEdgeLabel | ( | ) | const |
Definition at line 755 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalEdgeLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::globalEdgeLabelPtr_.
Referenced by polyMeshGenAddressing::calcGlobalEdgeLabels(), refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
const VRWGraph & pointAtProcs | ( | ) | const |
Definition at line 775 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalPointLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, polyMeshGenAddressing::globalPointLabelPtr_, and polyMeshGenAddressing::pProcsPtr_.
Referenced by meshOptimizer::calculatePointLocations(), extrudeLayer::createNewVertices(), partTetMesh::createParallelAddressing(), meshOptimizer::laplaceSmoother::laplacianParallel(), meshOptimizer::laplaceSmoother::laplacianPCParallel(), meshOptimizer::laplaceSmoother::laplacianWPCParallel(), extrudeLayer::movePoints(), and symmetryPlaneOptimisation::pointInPlanes().
Definition at line 814 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalPointLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::globalToLocalPointAddressingPtr_.
Referenced by polyMeshGenModifier::addBufferCells(), extrudeLayer::createNewVertices(), partTetMesh::createParallelAddressing(), meshOptimizer::laplaceSmoother::laplacianParallel(), meshOptimizer::laplaceSmoother::laplacianPCParallel(), meshOptimizer::laplaceSmoother::laplacianWPCParallel(), extrudeLayer::movePoints(), and symmetryPlaneOptimisation::pointInPlanes().
Definition at line 794 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalPointLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::pointNeiProcsPtr_.
Referenced by extrudeLayer::createNewVertices(), partTetMesh::createParallelAddressing(), extrudeLayer::movePoints(), and symmetryPlaneOptimisation::pointInPlanes().
const VRWGraph & edgeAtProcs | ( | ) | const |
Definition at line 834 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::eProcsPtr_, Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::globalEdgeLabelPtr_.
Referenced by refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
Definition at line 872 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalEdgeLabels(), Foam::exit(), Foam::FatalError, FatalErrorIn, and polyMeshGenAddressing::globalToLocalEdgeAddressingPtr_.
Referenced by refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
Definition at line 853 of file polyMeshGenAddressingParallelAddressing.C.
References polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::edgeNeiProcsPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by refineBoundaryLayers::generateNewVertices(), boundaryLayerOptimisation::optimiseHairNormalsAtTheBoundary(), and boundaryLayerOptimisation::optimiseHairNormalsInside().
const vectorField & cellCentres | ( | ) | const |
Definition at line 125 of file polyMeshGenAddressingCentresAndVols.C.
References polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::cellCentresPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
Referenced by findCellsIntersectingSurface::findIntersectedCells().
const vectorField & faceCentres | ( | ) | const |
Definition at line 123 of file polyMeshGenAddressingCentresAndAreas.C.
References polyMeshGenAddressing::calcFaceCentresAndAreas(), Foam::exit(), polyMeshGenAddressing::faceCentresPtr_, Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcCellCentresAndVols(), and findCellsIntersectingSurface::findIntersectedCells().
const scalarField & cellVolumes | ( | ) | const |
Definition at line 144 of file polyMeshGenAddressingCentresAndVols.C.
References polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::cellVolumesPtr_, Foam::exit(), Foam::FatalError, and FatalErrorIn.
const vectorField & faceAreas | ( | ) | const |
Definition at line 142 of file polyMeshGenAddressingCentresAndAreas.C.
References polyMeshGenAddressing::calcFaceCentresAndAreas(), Foam::exit(), polyMeshGenAddressing::faceAreasPtr_, Foam::FatalError, and FatalErrorIn.
Referenced by polyMeshGenAddressing::calcCellCentresAndVols().
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 36 of file polyMeshGenAddressingClear.C.
References polyMeshGenAddressing::ccPtr_, polyMeshGenAddressing::cellCentresPtr_, polyMeshGenAddressing::cellVolumesPtr_, polyMeshGenAddressing::cePtr_, polyMeshGenAddressing::cpPtr_, polyMeshGenAddressing::ecPtr_, polyMeshGenAddressing::edgesPtr_, polyMeshGenAddressing::efPtr_, Foam::endl(), polyMeshGenAddressing::faceAreasPtr_, polyMeshGenAddressing::faceCentresPtr_, polyMeshGenAddressing::fePtr_, polyMeshGenAddressing::pcPtr_, polyMeshGenAddressing::pePtr_, polyMeshGenAddressing::pfPtr_, Foam::Pout, and polyMeshGenAddressing::ppPtr_.
void clearGeom | ( | ) |
Clear geometry.
Definition at line 117 of file polyMeshGenAddressingClear.C.
References polyMeshGenAddressing::cellCentresPtr_, polyMeshGenAddressing::cellVolumesPtr_, Foam::deleteDemandDrivenData(), Foam::endl(), polyMeshGenAddressing::faceAreasPtr_, polyMeshGenAddressing::faceCentresPtr_, and Foam::Pout.
Referenced by polyMeshGenAddressing::clearAll(), and polyMeshGenAddressing::clearOut().
void clearAddressing | ( | ) |
Clear topological data.
Definition at line 132 of file polyMeshGenAddressingClear.C.
References polyMeshGenAddressing::ccPtr_, polyMeshGenAddressing::cePtr_, polyMeshGenAddressing::clearOutEdges(), polyMeshGenAddressing::cpPtr_, Foam::deleteDemandDrivenData(), polyMeshGenAddressing::ecPtr_, polyMeshGenAddressing::efPtr_, Foam::endl(), polyMeshGenAddressing::fePtr_, polyMeshGenAddressing::pcPtr_, polyMeshGenAddressing::pePtr_, polyMeshGenAddressing::pfPtr_, Foam::Pout, and polyMeshGenAddressing::ppPtr_.
Referenced by polyMeshGenAddressing::clearAll(), and polyMeshGenAddressing::clearOut().
void clearParallelAddressing | ( | ) |
Clear parallel addressing.
Definition at line 157 of file polyMeshGenAddressingClear.C.
References Foam::deleteDemandDrivenData(), polyMeshGenAddressing::edgeNeiProcsPtr_, polyMeshGenAddressing::eProcsPtr_, polyMeshGenAddressing::globalCellLabelPtr_, polyMeshGenAddressing::globalEdgeLabelPtr_, polyMeshGenAddressing::globalFaceLabelPtr_, polyMeshGenAddressing::globalPointLabelPtr_, polyMeshGenAddressing::globalToLocalEdgeAddressingPtr_, polyMeshGenAddressing::globalToLocalPointAddressingPtr_, polyMeshGenAddressing::pointNeiProcsPtr_, and polyMeshGenAddressing::pProcsPtr_.
Referenced by polyMeshGenAddressing::clearAll(), and polyMeshGenAddressing::clearOut().
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 172 of file polyMeshGenAddressingClear.C.
References polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::clearGeom(), and polyMeshGenAddressing::clearParallelAddressing().
void clearAll | ( | ) |
Clear everything primitive, geometry and addressing.
Definition at line 180 of file polyMeshGenAddressingClear.C.
References polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::clearGeom(), and polyMeshGenAddressing::clearParallelAddressing().
Referenced by polyMeshGenAddressing::~polyMeshGenAddressing().
void updateGeometry | ( | const boolList & | changedFace | ) |
update face centres and face areas
update cell centres and cell volumes
estimate position of cell centre
Definition at line 41 of file polyMeshGenAddressingUpdateGeometry.C.
References Foam::constant::universal::c, cells, cellVols, f(), forAll, Foam::mag(), Foam::max(), n, nPoints, p, List::size(), and Vector< scalar >::zero.
|
private |
reference to the mesh
Definition at line 74 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::calcCellPoints(), polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::calcEdges(), polyMeshGenAddressing::calcFaceCentresAndAreas(), polyMeshGenAddressing::calcFaceEdges(), polyMeshGenAddressing::calcGlobalCellLabels(), polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::calcGlobalFaceLabels(), polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::calcPointCells(), polyMeshGenAddressing::calcPointEdges(), polyMeshGenAddressing::calcPointFaces(), and polyMeshGenAddressing::calcPointPoints().
|
mutableprivate |
Edges.
Definition at line 79 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcEdges(), polyMeshGenAddressing::clearOutEdges(), polyMeshGenAddressing::edges(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Cell-cells.
Definition at line 85 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellCells(), polyMeshGenAddressing::cellCells(), polyMeshGenAddressing::clearAddressing(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Edge-cells.
Definition at line 88 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcEdgeCells(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::edgeCells(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Point-cells.
Definition at line 91 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcPointCells(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::pointCells(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Edge-faces.
Definition at line 94 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcEdgeFaces(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::edgeFaces(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Point-faces.
Definition at line 97 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcPointFaces(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::pointFaces(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Cell-edges.
Definition at line 100 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellEdges(), polyMeshGenAddressing::cellEdges(), polyMeshGenAddressing::clearAddressing(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Face-edges.
Definition at line 103 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcFaceEdges(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::faceEdges(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Point-edges.
Definition at line 106 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcPointEdges(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::pointEdges(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Point-points.
Definition at line 109 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcPointPoints(), polyMeshGenAddressing::clearAddressing(), polyMeshGenAddressing::pointPoints(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Cell-points.
Definition at line 112 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellPoints(), polyMeshGenAddressing::cellPoints(), polyMeshGenAddressing::clearAddressing(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Cell centres.
Definition at line 118 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::cellCentres(), polyMeshGenAddressing::clearGeom(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Face centres.
Definition at line 121 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcFaceCentresAndAreas(), polyMeshGenAddressing::clearGeom(), polyMeshGenAddressing::faceCentres(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Cell volumes.
Definition at line 124 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcCellCentresAndVols(), polyMeshGenAddressing::cellVolumes(), polyMeshGenAddressing::clearGeom(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
Face areas.
Definition at line 127 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcFaceCentresAndAreas(), polyMeshGenAddressing::clearGeom(), polyMeshGenAddressing::faceAreas(), and polyMeshGenAddressing::printAllocated().
|
mutableprivate |
global point labels
Definition at line 132 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::clearParallelAddressing(), polyMeshGenAddressing::globalPointLabel(), and polyMeshGenAddressing::pointAtProcs().
|
mutableprivate |
global face labels
Definition at line 135 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalFaceLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::globalFaceLabel().
|
mutableprivate |
global cell labels
Definition at line 138 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalCellLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::globalCellLabel().
|
mutableprivate |
global edge labels
Definition at line 141 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::clearParallelAddressing(), polyMeshGenAddressing::edgeAtProcs(), and polyMeshGenAddressing::globalEdgeLabel().
|
mutableprivate |
processors containing a vertex
Definition at line 146 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::clearParallelAddressing(), polyMeshGenAddressing::globalPointLabel(), and polyMeshGenAddressing::pointAtProcs().
global to local point adressing
Definition at line 149 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::globalToLocalPointAddressing().
neighbour processors sharing a point with this processor
Definition at line 152 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalPointLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::pointNeiProcs().
|
mutableprivate |
processors containing an edge
Definition at line 155 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::edgeAtProcs().
global to local edge addressing
Definition at line 158 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::globalToLocalEdgeAddressing().
neighbour processors sharing an edge with the current processor
Definition at line 161 of file polyMeshGenAddressing.H.
Referenced by polyMeshGenAddressing::calcGlobalEdgeLabels(), polyMeshGenAddressing::clearParallelAddressing(), and polyMeshGenAddressing::edgeNeiProcs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.