Cell-face mesh analysis engine. More...
Public Member Functions | |
ClassName ("primitiveMesh") | |
primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) | |
Construct from components. More... | |
primitiveMesh (const primitiveMesh &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~primitiveMesh () |
Destructor. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) |
Reset this primitiveMesh given the primitive array sizes. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &cells) |
Reset this primitiveMesh given the primitive array sizes and cells. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &&cells) |
Reset this primitiveMesh given the primitive array sizes and cells. More... | |
label | nPoints () const |
label | nEdges () const |
label | nInternalFaces () const |
label | nFaces () const |
label | nCells () const |
label | nInternalPoints () const |
Points not on boundary. More... | |
label | nInternal0Edges () const |
Internal edges (i.e. not on boundary face) using. More... | |
label | nInternal1Edges () const |
Internal edges using 0 or 1 boundary point. More... | |
label | nInternalEdges () const |
Internal edges using 0,1 or 2 boundary points. More... | |
virtual const pointField & | points () const =0 |
Return mesh points. More... | |
virtual const faceList & | faces () const =0 |
Return faces. More... | |
virtual const labelList & | faceOwner () const =0 |
Face face-owner addressing. More... | |
virtual const labelList & | faceNeighbour () const =0 |
Face face-neighbour addressing. More... | |
virtual const pointField & | oldPoints () const =0 |
Return old points for mesh motion. More... | |
virtual const pointField & | oldCellCentres () const =0 |
Return old cell centres for mesh motion. More... | |
const cellShapeList & | cellShapes () const |
Return cell shapes. More... | |
const edgeList & | edges () const |
Return mesh edges. Uses calcEdges. More... | |
const labelListList & | cellCells () const |
const labelListList & | edgeCells () const |
const labelListList & | pointCells () const |
const cellList & | cells () const |
const labelListList & | edgeFaces () const |
const labelListList & | pointFaces () const |
const labelListList & | cellEdges () const |
const labelListList & | faceEdges () const |
const labelListList & | pointEdges () const |
const labelListList & | pointPoints () const |
const labelListList & | cellPoints () const |
const vectorField & | cellCentres () const |
const vectorField & | faceCentres () const |
const scalarField & | cellVolumes () const |
const vectorField & | faceAreas () const |
const scalarField & | magFaceAreas () const |
tmp< scalarField > | movePoints (const pointField &p, const pointField &oldP) |
Move points, returns volumes swept by faces in motion. More... | |
bool | isInternalFace (const label faceIndex) const |
Return true if given face label is internal to the mesh. More... | |
virtual bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face ordering. More... | |
virtual bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check cell zip-up. More... | |
virtual bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check uniqueness of face vertices. More... | |
virtual bool | checkPoints (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for unused points. More... | |
virtual bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face-face connectivity. More... | |
virtual bool | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness. More... | |
virtual bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=nullptr, labelHashSet *highAspectSetPtr=nullptr, const Vector< label > &solutionD=Vector< label >::one) const |
Check cells for closedness. More... | |
virtual bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative face areas. More... | |
virtual bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative cell volumes. More... | |
virtual bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for non-orthogonality. More... | |
virtual bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-small, labelHashSet *setPtr=nullptr) const |
Check face pyramid volume. More... | |
virtual bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face skewness. More... | |
virtual bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=nullptr) const |
Check face angles. More... | |
virtual bool | checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage: decompose face and check ratio between. More... | |
virtual bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=nullptr) const |
Check for point-point-nearness,. More... | |
virtual bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const |
Check edge length. More... | |
virtual bool | checkConcaveCells (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for concave cells by the planes of faces. More... | |
virtual bool | checkTopology (const bool report=false) const |
Check mesh topology for correctness. More... | |
virtual bool | checkGeometry (const bool report=false) const |
Check mesh geometry (& implicitly topology) for correctness. More... | |
virtual bool | checkMesh (const bool report=false) const |
Check mesh for correctness. Returns false for no error. More... | |
bool | pointInCellBB (const point &p, label celli, scalar inflationFraction=0) const |
Return true if the point in the cell bounding box. More... | |
bool | pointInCell (const point &p, label celli) const |
Return true if the point is in the cell. More... | |
label | findNearestCell (const point &location) const |
Find the cell with the nearest cell centre to location. More... | |
label | findCell (const point &location) const |
Find cell enclosing this location (-1 if not in mesh) More... | |
void | printAllocated () const |
Print a list of all the currently allocated mesh data. More... | |
bool | hasCellShapes () const |
bool | hasEdges () const |
bool | hasCellCells () const |
bool | hasEdgeCells () const |
bool | hasPointCells () const |
bool | hasCells () const |
bool | hasEdgeFaces () const |
bool | hasPointFaces () const |
bool | hasCellEdges () const |
bool | hasFaceEdges () const |
bool | hasPointEdges () const |
bool | hasPointPoints () const |
bool | hasCellPoints () const |
bool | hasCellCentres () const |
bool | hasFaceCentres () const |
bool | hasCellVolumes () const |
bool | hasFaceAreas () const |
const labelList & | cellCells (const label celli, DynamicList< label > &) const |
cellCells using cells. More... | |
const labelList & | cellCells (const label celli) const |
const labelList & | cellPoints (const label celli, DynamicList< label > &) const |
cellPoints using cells More... | |
const labelList & | cellPoints (const label celli) const |
const labelList & | pointCells (const label pointi, DynamicList< label > &) const |
pointCells using pointFaces More... | |
const labelList & | pointCells (const label pointi) const |
const labelList & | pointPoints (const label pointi, DynamicList< label > &) const |
pointPoints using edges, pointEdges More... | |
const labelList & | pointPoints (const label pointi) const |
const labelList & | faceEdges (const label facei, DynamicList< label > &) const |
faceEdges using pointFaces, edges, pointEdges More... | |
const labelList & | faceEdges (const label facei) const |
const labelList & | edgeFaces (const label edgeI, DynamicList< label > &) const |
edgeFaces using pointFaces, edges, pointEdges More... | |
const labelList & | edgeFaces (const label edgeI) const |
const labelList & | edgeCells (const label edgeI, DynamicList< label > &) const |
edgeCells using pointFaces, edges, pointEdges More... | |
const labelList & | edgeCells (const label edgeI) const |
const labelList & | cellEdges (const label celli, DynamicList< label > &) const |
cellEdges using cells, pointFaces, edges, pointEdges More... | |
const labelList & | cellEdges (const label celli) const |
void | clearGeom () |
Clear geometry. More... | |
void | clearAddressing () |
Clear topological data. More... | |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD. More... | |
void | operator= (const primitiveMesh &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static void | calcCells (cellList &, const labelUList &own, const labelUList &nei, const label nCells=-1) |
Helper function to calculate cell-face addressing from. More... | |
static bool | calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints) |
Helper function to calculate point ordering. Returns true. More... | |
static scalar | setClosedThreshold (const scalar) |
Set the closedness ratio warning threshold. More... | |
static scalar | setAspectThreshold (const scalar) |
Set the aspect ratio warning threshold. More... | |
static scalar | setNonOrthThreshold (const scalar) |
Set the non-orthogonality warning threshold in degrees. More... | |
static scalar | setSkewThreshold (const scalar) |
Set the skewness warning threshold as percentage. More... | |
Static Public Attributes | |
static const unsigned | cellsPerEdge_ = 4 |
Estimated number of cells per edge. More... | |
static const unsigned | cellsPerPoint_ = 8 |
Estimated number of cells per point. More... | |
static const unsigned | facesPerCell_ = 6 |
Estimated number of faces per cell. More... | |
static const unsigned | facesPerEdge_ = 4 |
Estimated number of faces per edge. More... | |
static const unsigned | facesPerPoint_ = 12 |
Estimated number of faces per point. More... | |
static const unsigned | edgesPerCell_ = 12 |
Estimated number of edges per cell. More... | |
static const unsigned | edgesPerFace_ = 4 |
Estimated number of edges per cell. More... | |
static const unsigned | edgesPerPoint_ = 6 |
Estimated number of edges per point. More... | |
static const unsigned | pointsPerCell_ = 8 |
Estimated number of points per cell. More... | |
static const unsigned | pointsPerFace_ = 4 |
Estimated number of points per face. More... | |
Protected Member Functions | |
void | calcFaceCentresAndAreas () const |
Calculate face centres and areas. More... | |
void | makeFaceCentresAndAreas (const pointField &p, vectorField &fCtrs, vectorField &fAreas, scalarField &magfAreas) 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... | |
bool | checkDuplicateFaces (const label, const Map< label > &, label &nBaffleFaces, labelHashSet *) const |
Check if all points on face are shared with another face. More... | |
bool | checkCommonOrder (const label, const Map< label > &, labelHashSet *) const |
Check that shared points are in consecutive order. More... | |
bool | checkClosedBoundary (const vectorField &, const bool, const PackedBoolList &) const |
Check boundary for closedness. More... | |
bool | checkClosedCells (const vectorField &faceAreas, const scalarField &cellVolumes, const bool report, labelHashSet *setPtr, labelHashSet *aspectSetPtr, const Vector< label > &meshD) const |
Check cells for closedness. More... | |
bool | checkFaceAreas (const vectorField &faceAreas, const bool report, const bool detailedReport, labelHashSet *setPtr) const |
Check for negative face areas. More... | |
bool | checkCellVolumes (const scalarField &vols, const bool report, const bool detailedReport, labelHashSet *setPtr) const |
Check for negative cell volumes. More... | |
bool | checkFaceOrthogonality (const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const |
Check for non-orthogonality. More... | |
bool | checkFacePyramids (const pointField &points, const vectorField &ctrs, const bool report, const bool detailedReport, const scalar minPyrVol, labelHashSet *setPtr) const |
Check face pyramid volume. More... | |
bool | checkFaceSkewness (const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const |
Check face skewness. More... | |
bool | checkFaceAngles (const pointField &points, const vectorField &faceAreas, const bool report, const scalar maxDeg, labelHashSet *setPtr) const |
Check face angles. More... | |
bool | checkFaceFlatness (const pointField &points, const vectorField &faceCentres, const vectorField &faceAreas, const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage. More... | |
bool | checkConcaveCells (const vectorField &fAreas, const pointField &fCentres, const bool report, labelHashSet *setPtr) const |
Check for concave cells by the planes of faces. More... | |
primitiveMesh () | |
Construct null. More... | |
Static Protected Attributes | |
static scalar | closedThreshold_ = 1.0e-6 |
Static data to control mesh checking. More... | |
static scalar | aspectThreshold_ = 1000 |
Aspect ratio warning threshold. More... | |
static scalar | nonOrthThreshold_ = 70 |
Non-orthogonality warning threshold in deg. More... | |
static scalar | skewThreshold_ = 4 |
Skewness warning threshold. More... | |
static scalar | planarCosAngle_ = 1.0e-6 |
Threshold where faces are considered coplanar. More... | |
Cell-face mesh analysis engine.
Definition at line 74 of file primitiveMesh.H.
|
protected |
Construct null.
Definition at line 39 of file primitiveMesh.C.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
Definition at line 78 of file primitiveMesh.C.
primitiveMesh | ( | const primitiveMesh & | ) |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 120 of file primitiveMesh.C.
References primitiveMesh::calcPointOrder(), and primitiveMesh::clearOut().
|
protected |
Calculate face centres and areas.
Definition at line 38 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::makeFaceCentresAndAreas(), primitiveMesh::nFaces(), primitiveMesh::points(), and Foam::Pout.
Referenced by primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and primitiveMesh::magFaceAreas().
|
protected |
Definition at line 77 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::constant::universal::c, f(), primitiveMesh::faces(), forAll, Foam::mag(), Foam::max(), Foam::normalised(), primitiveMesh::nPoints(), Foam::constant::mathematical::pi(), List< T >::size(), and Foam::Zero.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), and polyMesh::checkMeshMotion().
|
protected |
Calculate cell centres and volumes.
Definition at line 34 of file primitiveMeshCellCentresAndVols.C.
References Foam::abort(), cellVols, Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::makeCellCentresAndVols(), primitiveMesh::nCells(), and Foam::Pout.
Referenced by primitiveMesh::cellCentres(), and primitiveMesh::cellVolumes().
|
protected |
Definition at line 73 of file primitiveMeshCellCentresAndVols.C.
References primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::mag(), primitiveMesh::nCells(), and Foam::Zero.
Referenced by primitiveMesh::calcCellCentresAndVols(), and polyMesh::checkMeshMotion().
|
protected |
Calculate edge vectors.
|
protected |
Check if all points on face are shared with another face.
Definition at line 1372 of file primitiveMeshCheck.C.
References primitiveMesh::checkCommonOrder(), forAllConstIter, HashSet< Key, Hash >::insert(), and List< T >::size().
Referenced by primitiveMesh::checkPoints().
|
protected |
Check that shared points are in consecutive order.
Definition at line 1413 of file primitiveMeshCheck.C.
References primitiveMesh::checkFaceFaces(), UList< T >::fcIndex(), Foam::findIndex(), forAll, forAllConstIter, HashSet< Key, Hash >::insert(), Foam::labelMax, UList< T >::rcIndex(), and List< T >::size().
Referenced by primitiveMesh::checkDuplicateFaces().
|
protected |
Check boundary for closedness.
Definition at line 46 of file primitiveMeshCheck.C.
References primitiveMesh::checkClosedCells(), Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), Foam::Info, InfoInFunction, Foam::mag(), Foam::reduce(), List< T >::size(), PackedList< nBits >::size(), and Foam::Zero.
Referenced by primitiveMesh::checkClosedBoundary(), and primitiveMesh::checkGeometry().
|
protected |
Check cells for closedness.
Definition at line 103 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, primitiveMesh::checkFaceAreas(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().
Referenced by primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), and primitiveMesh::checkGeometry().
|
protected |
Check for negative face areas.
Definition at line 235 of file primitiveMeshCheck.C.
References primitiveMesh::checkCellVolumes(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
Referenced by primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().
|
protected |
Check for negative cell volumes.
Definition at line 313 of file primitiveMeshCheck.C.
References primitiveMesh::checkFaceOrthogonality(), Foam::endl(), forAll, Foam::gSum(), Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
Referenced by primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().
|
protected |
Check for non-orthogonality.
Definition at line 383 of file primitiveMeshCheck.C.
References Foam::acos(), primitiveMesh::checkFacePyramids(), Foam::cos(), Foam::degToRad(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::min(), Foam::radToDeg(), Foam::reduce(), List< T >::size(), and Foam::sum().
Referenced by primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceOrthogonality(), and primitiveMesh::checkGeometry().
|
protected |
Check face pyramid volume.
Definition at line 493 of file primitiveMeshCheck.C.
References cells, primitiveMesh::checkFaceSkewness(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::nl, Foam::Pout, and Foam::reduce().
Referenced by primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().
|
protected |
Check face skewness.
Definition at line 595 of file primitiveMeshCheck.C.
References primitiveMesh::checkFaceAngles(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), and Foam::reduce().
Referenced by primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), and primitiveMesh::checkGeometry().
|
protected |
Check face angles.
Allows a slight non-convexity. E.g. maxDeg = 10 allows for angles < 190 (or 10 degrees concavity) (if truly concave and points not visible from face centre the face-pyramid check in checkMesh will fail)
Definition at line 668 of file primitiveMeshCheck.C.
References Foam::asin(), primitiveMesh::checkFaceFlatness(), Foam::degToRad(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::radToDeg(), Foam::reduce(), and Foam::sin().
Referenced by primitiveMesh::checkFaceAngles(), and primitiveMesh::checkFaceSkewness().
|
protected |
Check face warpage.
Definition at line 748 of file primitiveMeshCheck.C.
References primitiveMesh::checkConcaveCells(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), and Foam::reduce().
Referenced by primitiveMesh::checkFaceAngles(), and primitiveMesh::checkFaceFlatness().
|
protected |
Check for concave cells by the planes of faces.
Definition at line 853 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, primitiveMesh::checkUpperTriangular(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), and Foam::reduce().
Referenced by primitiveMesh::checkConcaveCells(), and primitiveMesh::checkFaceFlatness().
ClassName | ( | "primitiveMesh" | ) |
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Reset this primitiveMesh given the primitive array sizes.
Definition at line 208 of file primitiveMesh.C.
References primitiveMesh::calcPointOrder(), primitiveMesh::clearOut(), Foam::endl(), primitiveMesh::faces(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nInternalPoints(), primitiveMesh::nPoints(), and Foam::Pout.
Referenced by primitiveMesh::calcPointOrder(), and primitiveMesh::reset().
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
cellList & | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 264 of file primitiveMesh.C.
References primitiveMesh::reset().
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
cellList && | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 285 of file primitiveMesh.C.
References primitiveMesh::movePoints(), and primitiveMesh::reset().
|
inline |
Definition at line 41 of file primitiveMeshI.H.
Referenced by singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), polyTopoChange::addMesh(), singleProcessorFaceSetsConstraint::apply(), motionSmootherAlgo::avg(), interpolationCellPointWallModified< Type >::calcPointField(), polyTopoChange::changeMesh(), pointZone::checkParallelSync(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), fvMeshDistribute::distribute(), snappySnapDriver::doSnap(), edgeVertex::edgeToEVert(), cellClassification::fillHangingCells(), polyMeshFilter::filterEdges(), edgeVertex::getEdge(), surfaceSets::getHangingCells(), syncTools::getMasterPoints(), globalIndexAndTransform::globalIndexAndTransform(), cellClassification::growSurface(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), edgeVertex::isEdge(), cellFeatures::isFeatureVertex(), isoSurface::isoSurface(), localPointRegion::localPointRegion(), primitiveMesh::makeFaceCentresAndAreas(), polyTopoChange::makeMesh(), pointSet::maxSize(), pointZoneSet::maxSize(), globalMeshData::mergePoints(), meshTriangulation::meshTriangulation(), primitiveMesh::movePoints(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), vtkMesh::nFieldPoints(), minEqOpFace::operator()(), sampledSurface::pointAverage(), primitiveMesh::pointFaces(), points0MotionSolver::points0MotionSolver(), pointSet::pointSet(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), primitiveMesh::reset(), polyMesh::resetPrimitives(), edgeCollapser::setRefinement(), pointMesh::size(), solidBodyMotionSolver::solidBodyMotionSolver(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), meshRefinement::splitMesh(), pointSet::sync(), hexRef8Data::sync(), syncTools::syncPointList(), meshRefinement::testSyncPointList(), globalMeshData::topoChange(), cellClassification::trimCutCells(), and edgeVertex::vertToEVert().
|
inline |
Definition at line 71 of file primitiveMeshI.H.
References primitiveMesh::edges(), and List< T >::size().
Referenced by edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), meshRefinement::createZoneBaffles(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), edgeVertex::edgeToEVert(), directionInfo::edgeToFaceIndex(), polyMeshFilter::filter(), polyMeshFilter::filterEdges(), syncTools::getMasterEdges(), addPatchCellLayer::globalEdgeFaces(), edgeVertex::isEdge(), cellFeatures::isFeaturePoint(), primitiveMesh::nInternal0Edges(), primitiveMesh::nInternal1Edges(), primitiveMesh::nInternalEdges(), and syncTools::syncEdgeList().
|
inline |
Definition at line 82 of file primitiveMeshI.H.
Referenced by snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), meshRefinement::baffleAndSplitMesh(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), CentredFitSnGradData< Polynomial >::calcFit(), primitiveMesh::calcPointOrder(), primitiveMesh::cellCells(), CentredFitData< Polynomial >::CentredFitData(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), faceCoupleInfo::faceCoupleInfo(), fvMeshSubset::faceFlipMap(), cellQuality::faceNonOrthogonality(), primitiveMeshTools::faceOrthogonality(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), localPointRegion::findDuplicateFacePairs(), localPointRegion::findDuplicateFaces(), polyMeshTetDecomposition::findFaceBasePts(), Foam::fvPatchDistWave::getInternalInfo(), repatchMesh::getNearest(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), isoSurface::isoSurface(), fvMeshAdder::MapVolFields(), meshRefinement::mergeBaffles(), MeshedSurface< Foam::face >::MeshedSurface(), Foam::min(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), inversePointDistanceDiffusivity::operator()(), primitiveMesh::pointCells(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), SloanRenumber::renumber(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), fvMatrix< Type >::setValue(), surfaceMesh::size(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), raw::update(), UpwindFitData< Polynomial >::UpwindFitData(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), polyMeshTools::volRatio(), extendedUpwindCellToFaceStencil::weightedSum(), extendedCellToFaceStencil::weightedSum(), polyBoundaryMesh::whichPatch(), and meshRefinement::zonify().
|
inline |
Definition at line 88 of file primitiveMeshI.H.
Referenced by preserveBafflesConstraint::add(), preserveFaceZonesConstraint::add(), preservePatchesConstraint::add(), singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), refinementHistory::add(), snappyLayerDriver::addLayers(), polyMesh::addPatch(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), meshRefinement::baffleAndSplitMesh(), decompositionMethod::calcCellCells(), primitiveMesh::calcFaceCentresAndAreas(), cellToFaceStencil::calcFaceStencil(), CentredFitSnGradData< Polynomial >::calcFit(), CentredFitData< Polynomial >::CentredFitData(), polyTopoChange::changeMesh(), edgeCollapser::checkBadFaces(), meshRefinement::checkCoupledFaceZones(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), motionSmootherAlgo::checkMesh(), polyMesh::checkMeshMotion(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), faceMapper::faceMapper(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), faceSet::faceSet(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), faceZoneSet::faceZoneSet(), polyMeshFilter::filter(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), repatchMesh::getNearest(), cellFeatures::isFeatureVertex(), isoSurface::isoSurface(), polyTopoChange::makeMesh(), mappedPatchFieldBase< Type >::mappedField(), faceSet::maxSize(), faceZoneSet::maxSize(), meshRefinement::mergeBaffles(), snappyLayerDriver::mergePatchFacesUndo(), MeshedSurface< Foam::face >::MeshedSurface(), NamedEnum< compressibleField, 8 >::names(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), polyMesh::polyMesh(), Foam::polyMeshUnMergeCyclics(), snappySnapDriver::preSmoothPatch(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), SloanRenumber::renumber(), structuredRenumber::renumber(), snappySnapDriver::repatchToSurface(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), snappySnapDriver::scaleMesh(), decompositionMethod::setConstraints(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), MPLIC::surfaceAlpha(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceSet::sync(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), globalMeshData::topoChange(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), raw::update(), UpwindFitData< Polynomial >::UpwindFitData(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), polyBoundaryMesh::whichPatch(), and meshRefinement::zonify().
|
inline |
Definition at line 94 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), primitiveMesh::calcCellCentresAndVols(), primitiveMesh::calcCells(), curvatureSeparation::calcCosAngle(), primitiveMeshTools::cellClosedness(), cellCuts::cellCuts(), primitiveMeshTools::cellDeterminant(), cellMapper::cellMapper(), primitiveMesh::cellPoints(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), polyMesh::checkMeshMotion(), drippingEjection::correct(), structuredDecomp::decompose(), zoltanDecomp::decompose(), domainDecomposition::decompose(), decompositionMethod::decompose(), refinementHistory::distribute(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), polyMesh::findCell(), primitiveMesh::findCell(), refinementParameters::findCells(), meshRefinement::findRegions(), interfaceProperties::fraction(), get_geom_list(), get_number_of_vertices(), get_vertex_list(), surfaceSets::getHangingCells(), Foam::fvPatchDistWave::getInternalInfo(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), interRegionExplicitPorositySource::interRegionExplicitPorositySource(), isoSurface::isoSurface(), Kmesh::Kmesh(), Foam::levelSetFraction(), primitiveMesh::makeCellCentresAndVols(), polyTopoChange::makeMesh(), mappedPatchFieldBase< Type >::mappedField(), fvMeshAdder::MapPointFields(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), cellSet::maxSize(), cellZoneSet::maxSize(), momentOfInertia::meshInertia(), Foam::min(), NamedEnum< compressibleField, 8 >::names(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), cellTable::operator=(), sampledSurface::pointAverage(), polyMesh::polyMesh(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), refinementHistory::refinementHistory(), refiner::refiner(), CuthillMcKeeRenumber::renumber(), SloanRenumber::renumber(), zoltanRenumber::renumber(), springRenumber::renumber(), renumberMethod::renumber(), structuredRenumber::renumber(), primitiveMesh::reset(), polyMesh::resetPrimitives(), mappedPatchBase::sampleSize(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), volMesh::size(), cellQuality::skewness(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), Foam::fvc::sweep(), hexRef8Data::sync(), globalMeshData::topoChange(), loadBalancer::update(), distributor::update(), wallLayerCells::wallLayerCells(), meshToMeshMethod::writeConnectivity(), meshRefinement::zonify(), and leastSquaresVectors::~leastSquaresVectors().
|
inline |
Points not on boundary.
Definition at line 35 of file primitiveMeshI.H.
Referenced by primitiveMesh::calcPointOrder(), and primitiveMesh::reset().
|
inline |
Internal edges (i.e. not on boundary face) using.
no boundary point
Definition at line 47 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
inline |
Internal edges using 0 or 1 boundary point.
Definition at line 55 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
inline |
Internal edges using 0,1 or 2 boundary points.
Definition at line 63 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
pure virtual |
Return mesh points.
Implemented in polyMesh.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceFlatness(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), edgeVertex::coord(), localPointRegion::findDuplicateFaces(), repatchMesh::getNearest(), cellFeatures::isFeaturePoint(), Foam::meshTools::normEdgeVec(), treeDataFace::findNearestOp::operator()(), treeDataFace::findIntersectOp::operator()(), cuttingPlane::reCut(), edgeFaceCirculator::setCanonical(), and pointSet::writeDebug().
|
pure virtual |
Return faces.
Implemented in polyMesh.
Referenced by primitiveMeshTools::boundaryFaceSkewness(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMesh::cellPoints(), directionInfo::edgeToFaceIndex(), primitiveMeshTools::faceConcavity(), primitiveMesh::faceEdges(), primitiveMeshTools::faceFlatness(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), localPointRegion::findDuplicateFaces(), surfaceSets::getHangingCells(), repatchMesh::getNearest(), Foam::interpolatePointToCell(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), hexMatcher::isA(), cellFeatures::isFeatureVertex(), primitiveMesh::makeFaceCentresAndAreas(), degenerateMatcher::match(), hexMatcher::matches(), wedgeMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), prismMatcher::matches(), tetWedgeMatcher::matches(), primitiveMesh::movePoints(), findUniqueIntersectOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataFace::findIntersectOp::operator()(), primitiveMesh::pointFaces(), primitiveMesh::reset(), edgeFaceCirculator::sameOrder(), and edgeFaceCirculator::setCanonical().
|
pure virtual |
Face face-owner addressing.
Implemented in polyMesh.
Referenced by primitiveMesh::calcCells(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMesh::cellCells(), primitiveMeshTools::cellClosedness(), edgeFaceCirculator::cellLabel(), primitiveMesh::edgeCells(), Foam::meshTools::faceOnCell(), primitiveMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), Foam::meshTools::getSharedFace(), tetMatcher::isA(), tetWedgeMatcher::isA(), hexMatcher::isA(), wedgeMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), primitiveMesh::makeCellCentresAndVols(), degenerateMatcher::match(), tetMatcher::matches(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), edgeFaceCirculator::operator++(), Foam::meshTools::otherCell(), primitiveMesh::pointCells(), primitiveMesh::pointInCell(), and edgeFaceCirculator::setCanonical().
|
pure virtual |
Face face-neighbour addressing.
Implemented in polyMesh.
Referenced by primitiveMesh::calcCells(), primitiveMesh::cellCells(), primitiveMeshTools::cellClosedness(), edgeFaceCirculator::cellLabel(), primitiveMesh::edgeCells(), Foam::meshTools::faceOnCell(), primitiveMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), Foam::meshTools::getSharedFace(), primitiveMesh::makeCellCentresAndVols(), edgeFaceCirculator::operator++(), Foam::meshTools::otherCell(), primitiveMesh::pointCells(), and edgeFaceCirculator::setCanonical().
|
pure virtual |
Return old points for mesh motion.
Implemented in polyMesh.
|
pure virtual |
Return old cell centres for mesh motion.
Implemented in polyMesh.
const Foam::cellShapeList & cellShapes | ( | ) | const |
Return cell shapes.
Definition at line 337 of file primitiveMesh.C.
Referenced by ensightPartCells::~ensightPartCells().
const Foam::edgeList & edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
Definition at line 502 of file primitiveMeshEdges.C.
Referenced by snappyLayerDriver::addLayers(), motionSmootherAlgo::avg(), addPatchCellLayer::calcSidePatch(), edgeCollapser::consistentCollapse(), edgeVertex::coord(), polyMeshFilter::copyMesh(), twoDPointCorrector::correctDisplacement(), twoDPointCorrector::correctPoints(), globalMeshData::coupledPatchMeshEdges(), geomCellLooper::cut(), topoCellLooper::cut(), primitiveMesh::edgeFaces(), Foam::meshTools::edgeToCutDir(), directionInfo::edgeToFaceIndex(), primitiveMesh::faceEdges(), Foam::meshTools::findEdge(), Foam::meshTools::getEdgeFaces(), cellLooper::getFirstVertEdge(), Foam::meshTools::getParallelEdges(), addPatchCellLayer::globalEdgeFaces(), cellFeatures::isFeaturePoint(), edgeCollapser::markMergeEdges(), edgeCollapser::markSmallEdges(), meshRefinement::mergeBaffles(), primitiveMesh::nEdges(), Foam::meshTools::normEdgeVec(), listPlusEqOp< T >::operator()(), Foam::meshTools::otherEdge(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::ownerOrigBoundaryEdges(), nonConformalBoundary::ownerOrigBoundaryPointMeshPoint(), primitiveMesh::pointPoints(), faceCollapser::setRefinement(), boundaryCutter::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), directionInfo::updateCell(), pointEdgePoint::updateEdge(), externalPointEdgePoint::updateEdge(), and Foam::meshTools::walkFace().
|
static |
Helper function to calculate cell-face addressing from.
face-cell addressing. If nCells is not provided it will scan for the maximum.
Definition at line 31 of file primitiveMeshCells.C.
References Foam::abort(), Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), primitiveMesh::nCells(), Foam::Pout, List< T >::setSize(), and List< T >::size().
|
static |
Helper function to calculate point ordering. Returns true.
if points already ordered, false and fills pointMap (old to new). Map splits points into those not used by any boundary face and those that are.
Definition at line 129 of file primitiveMesh.C.
References f(), forAll, primitiveMesh::nInternalFaces(), primitiveMesh::nInternalPoints(), primitiveMesh::reset(), List< T >::setSize(), and List< T >::size().
Referenced by primitiveMesh::reset(), and primitiveMesh::~primitiveMesh().
const Foam::labelListList & cellCells | ( | ) | const |
Definition at line 100 of file primitiveMeshCellCells.C.
Referenced by meshToMeshMethod::appendNbrCells(), primitiveMesh::cellCells(), and NamedEnum< compressibleField, 8 >::names().
const Foam::labelListList & edgeCells | ( | ) | const |
Definition at line 32 of file primitiveMeshEdgeCells.C.
References Foam::abort(), primitiveMesh::cellEdges(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by primitiveMesh::edgeCells(), and Foam::meshTools::edgeOnCell().
const Foam::labelListList & pointCells | ( | ) | const |
Definition at line 108 of file primitiveMeshPointCells.C.
Referenced by primitiveMesh::cellPoints(), cellClassification::fillHangingCells(), cellClassification::growSurface(), sampledSurface::pointAverage(), primitiveMesh::pointCells(), refiner::refiner(), and cellClassification::trimCutCells().
const Foam::cellList & cells | ( | ) | const |
Definition at line 136 of file primitiveMeshCells.C.
Referenced by pointMVCWeight::calcWeights(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMesh::cellCells(), primitiveMeshTools::cellDeterminant(), primitiveMesh::cellEdges(), primitiveMesh::cellPoints(), polyMeshTetDecomposition::cellTetIndices(), layerAdditionRemoval::changeTopology(), Foam::polyMeshCheck::checkCellDeterminant(), Foam::polyMeshCheck::checkFacePyramids(), edgeCollapser::consistentCollapse(), particle::correctAfterInteractionListReferral(), outletStabilised< Type >::correction(), meshRefinement::createBaffles(), geomCellLooper::cut(), topoCellLooper::cut(), domainDecomposition::decompose(), probes::findElements(), polyMeshTetDecomposition::findTet(), surfaceSets::getHangingCells(), Foam::meshTools::getSharedFace(), Foam::interpolatePointToCell(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), meshToMesh::mapAndOpTgtToSrc(), degenerateMatcher::match(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), minEqOpFace::operator()(), inversePointDistanceDiffusivity::operator()(), treeDataCell::findIntersectOp::operator()(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), polyMesh::polyMesh(), Foam::polyMeshZipUpCells(), polyMesh::readUpdate(), refiner::refiner(), MPLIC::setCellAlphaf(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValue(), snappyRefineDriver::snappyRefineDriver(), solidBodyMotionSolver::solidBodyMotionSolver(), meshRefinement::splitMesh(), MPLIC::surfaceAlpha(), layerInfo::updateFace(), outletStabilised< Type >::weights(), meshToMeshMethod::writeConnectivity(), and ensightPartCells::~ensightPartCells().
const Foam::labelListList & edgeFaces | ( | ) | const |
Definition at line 31 of file primitiveMeshEdgeFaces.C.
References Foam::abort(), Foam::endl(), primitiveMesh::faceEdges(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by addPatchCellLayer::calcSidePatch(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), Foam::meshTools::getEdgeFaces(), faceCollapser::setRefinement(), boundaryCutter::setRefinement(), meshCutAndRemove::setRefinement(), and meshCutter::setRefinement().
const Foam::labelListList & pointFaces | ( | ) | const |
Definition at line 32 of file primitiveMeshPointFaces.C.
References Foam::endl(), primitiveMesh::faces(), Foam::invertManyToMany(), primitiveMesh::nPoints(), and Foam::Pout.
Referenced by singleProcessorFaceSetsConstraint::add(), singleProcessorFaceSetsConstraint::apply(), decompositionMethod::decompose(), primitiveMesh::edgeFaces(), cellLooper::getVertFacesNonEdge(), listPlusEqOp< T >::operator()(), primitiveMesh::pointCells(), Foam::polyMeshZipUpCells(), perfectInterface::setRefinement(), edgeCollapser::setRefinement(), and meshRefinement::splitMesh().
const Foam::labelListList & cellEdges | ( | ) | const |
Definition at line 118 of file primitiveMeshCellEdges.C.
Referenced by primitiveMesh::cellEdges(), cellFeatures::cellFeatures(), geomCellLooper::cut(), Foam::meshTools::cutDirToEdge(), primitiveMesh::edgeCells(), primitiveMesh::faceEdges(), cellLooper::getMisAlignedEdge(), and meshCutter::setRefinement().
const Foam::labelListList & faceEdges | ( | ) | const |
Definition at line 525 of file primitiveMeshEdges.C.
References HashTable< T, Key, Hash >::clear(), Foam::deleteDemandDrivenData(), primitiveMesh::edges(), Foam::endl(), primitiveMesh::faces(), UList< T >::fcIndex(), forAll, primitiveMesh::pointEdges(), Foam::Pout, List< T >::setSize(), and List< T >::size().
Referenced by primitiveMesh::cellEdges(), edgeCollapser::consistentCollapse(), meshRefinement::createZoneBaffles(), primitiveMesh::edgeFaces(), Foam::meshTools::edgeOnFace(), primitiveMesh::faceEdges(), cellLooper::getFirstVertEdge(), Foam::meshTools::getSharedEdge(), cellLooper::getVertEdgesNonFace(), faceCollapser::setRefinement(), directionInfo::updateCell(), and Foam::meshTools::walkFace().
const Foam::labelListList & pointEdges | ( | ) | const |
Definition at line 513 of file primitiveMeshEdges.C.
Referenced by snappyLayerDriver::addLayers(), addPatchCellLayer::calcSidePatch(), edgeCollapser::consistentCollapse(), globalMeshData::coupledPatchMeshEdges(), primitiveMesh::faceEdges(), Foam::meshTools::findEdge(), cellLooper::getVertEdgesNonFace(), addPatchCellLayer::globalEdgeFaces(), cellFeatures::isFeatureVertex(), edgeCollapser::markMergeEdges(), meshRefinement::mergeBaffles(), listPlusEqOp< T >::operator()(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), and primitiveMesh::pointPoints().
const Foam::labelListList & pointPoints | ( | ) | const |
Definition at line 91 of file primitiveMeshPointPoints.C.
Referenced by primitiveMesh::pointPoints().
const Foam::labelListList & cellPoints | ( | ) | const |
Definition at line 31 of file primitiveMeshCellPoints.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nCells(), primitiveMesh::pointCells(), and Foam::Pout.
Referenced by primitiveMesh::cellPoints(), tetOverlapVolume::overlappingCells(), pointMVCWeight::pointMVCWeight(), and meshCutAndRemove::setRefinement().
const Foam::vectorField & cellCentres | ( | ) | const |
Definition at line 160 of file primitiveMeshCellCentresAndVols.C.
References primitiveMesh::calcCellCentresAndVols().
Referenced by polyTopoChange::addMesh(), waveAlphaFvPatchScalarField::alphan(), snappySnapDriver::avgCellCentres(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), polyMesh::checkFaceOrthogonality(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), fvPatch::Cn(), meshRefinement::createZoneBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), polyPatch::faceCellCentres(), cellQuality::faceNonOrthogonality(), mappedPatchBase::facePoint(), cellQuality::faceSkewness(), polyMeshTetDecomposition::findBasePoint(), probes::findElements(), polyMeshTetDecomposition::findFaceBasePts(), mapNearestMethod::findNearestCell(), primitiveMesh::findNearestCell(), mappedPatchBase::findSamples(), polyMeshTetDecomposition::findSharedBasePoint(), get_geom_list(), Foam::levelSetFraction(), meshRefinement::mergeBaffles(), surfaceInterpolation::movePoints(), polyMesh::movePoints(), NamedEnum< compressibleField, 8 >::names(), cellQuality::nonOrthogonality(), polyMesh::oldCellCentres(), treeDataCell::findNearestOp::operator()(), InflationInjection< CloudType >::parcelsToInject(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), patchInjectionBase::setPositionAndCell(), tetDecomposer::setRefinement(), cellQuality::skewness(), tetIndices::tet(), polyMesh::topoChange(), waveVelocityFvPatchVectorField::Un(), WallPointBase< wallPoint >::updateCell(), WallFaceBase< wallFace >::updateCell(), refinementDistanceData::updateCell(), meshToMeshMethod::writeConnectivity(), cellSet::writeDebug(), and meshRefinement::zonify().
const Foam::vectorField & faceCentres | ( | ) | const |
Definition at line 162 of file primitiveMeshFaceCentresAndAreas.C.
References primitiveMesh::calcFaceCentresAndAreas().
Referenced by preserveBafflesConstraint::add(), primitiveMesh::calcCellCentresAndVols(), primitiveMesh::checkConcaveCells(), primitiveMesh::checkFaceFlatness(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), meshRefinement::createBaffles(), decompositionMethod::decompose(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), mappedPatchBase::facePoint(), cellQuality::faceSkewness(), probes::findElements(), patchProbes::findElements(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), mappedPatchBase::findSamples(), repatchMesh::getNearest(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), surfaceInterpolation::movePoints(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), treeDataFace::findIntersectOp::operator()(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), fvMeshDistribute::printCoupleInfo(), snappySnapDriver::repatchToSurface(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), cellQuality::skewness(), meshRefinement::splitMesh(), triSurfaceTools::triangulateFaceCentre(), WallPointBase< wallPoint >::updateFace(), WallFaceBase< wallFace >::updateFace(), refinementDistanceData::updateFace(), and faceSet::writeDebug().
const Foam::scalarField & cellVolumes | ( | ) | const |
Definition at line 171 of file primitiveMeshCellCentresAndVols.C.
References primitiveMesh::calcCellCentresAndVols().
Referenced by polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), primitiveMesh::checkCellVolumes(), primitiveMesh::checkClosedCells(), motionSmootherAlgo::checkMesh(), polyMesh::checkVolRatio(), cellPointWeight::findTetrahedron(), polyTopoChange::makeMesh(), and fvMesh::V().
const Foam::vectorField & faceAreas | ( | ) | const |
Definition at line 173 of file primitiveMeshFaceCentresAndAreas.C.
References primitiveMesh::calcFaceCentresAndAreas().
Referenced by normalToFace::applyToSet(), primitiveMesh::calcCellCentresAndVols(), layerAdditionRemoval::changeTopology(), edgeCollapser::checkBadFaces(), polyMesh::checkCellDeterminant(), primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), primitiveMesh::checkConcaveCells(), primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkFaceFlatness(), polyMesh::checkFaceOrthogonality(), primitiveMesh::checkFaceOrthogonality(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), cellQuality::faceNonOrthogonality(), cellQuality::faceSkewness(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), repatchMesh::getNearest(), surfaceInterpolation::movePoints(), cellQuality::nonOrthogonality(), listPlusEqOp< T >::operator()(), findUniqueIntersectOp::operator()(), primitiveMesh::pointInCell(), cellQuality::skewness(), and meshRefinement::zonify().
const Foam::scalarField & magFaceAreas | ( | ) | const |
Definition at line 184 of file primitiveMeshFaceCentresAndAreas.C.
References primitiveMesh::calcFaceCentresAndAreas().
Referenced by decompositionMethod::calcCellCells(), and cellPointWeight::findTriangle().
Foam::tmp< Foam::scalarField > movePoints | ( | const pointField & | p, |
const pointField & | oldP | ||
) |
Move points, returns volumes swept by faces in motion.
Definition at line 306 of file primitiveMesh.C.
References Foam::abort(), primitiveMesh::clearGeom(), f(), primitiveMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, primitiveMesh::nPoints(), tmp< T >::ref(), and List< T >::size().
Referenced by polyMesh::movePoints(), and primitiveMesh::reset().
Return true if given face label is internal to the mesh.
Definition at line 100 of file primitiveMeshI.H.
References primitiveMesh::nInternalFaces().
Referenced by preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), addPatchCellLayer::calcSidePatch(), edgeFaceCirculator::cellLabel(), repatchPolyTopoChanger::changePatchID(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), Foam::polyMeshCheck::checkNonOrtho(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), primitiveMesh::edgeCells(), Foam::meshTools::faceOnCell(), primitiveMeshTools::facePyramidVolume(), Foam::polyMeshCheck::getAffectedCells(), Foam::meshTools::getSharedFace(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), particle::onBoundaryFace(), particle::onInternalFace(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), edgeFaceCirculator::operator++(), Foam::meshTools::otherCell(), edgeFaceCirculator::setCanonical(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValue(), meshRefinement::splitMesh(), outletStabilised< Type >::weights(), and meshRefinement::zonify().
|
virtual |
Check face ordering.
Definition at line 966 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, primitiveMesh::checkCellsZipUp(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::labelMax, Foam::reduce(), and List< T >::size().
Referenced by primitiveMesh::checkConcaveCells(), and primitiveMesh::checkTopology().
|
virtual |
Check cell zip-up.
Definition at line 1129 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, primitiveMesh::checkFaceVertices(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::reduce(), and List< T >::size().
Referenced by primitiveMesh::checkTopology(), and primitiveMesh::checkUpperTriangular().
|
virtual |
Check uniqueness of face vertices.
Definition at line 1227 of file primitiveMeshCheck.C.
References primitiveMesh::checkPoints(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and List< T >::size().
Referenced by primitiveMesh::checkCellsZipUp(), and primitiveMesh::checkTopology().
|
virtual |
Check for unused points.
Definition at line 1300 of file primitiveMeshCheck.C.
References primitiveMesh::checkDuplicateFaces(), UList< T >::empty(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), and Foam::reduce().
Referenced by primitiveMesh::checkFaceVertices(), and primitiveMesh::checkTopology().
|
virtual |
Check face-face connectivity.
Definition at line 1574 of file primitiveMeshCheck.C.
References HashTable< T, Key, Hash >::clear(), HashTableCore::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::Info, InfoInFunction, HashTable< T, Key, Hash >::insert(), and Foam::reduce().
Referenced by primitiveMesh::checkCommonOrder(), and primitiveMesh::checkTopology().
Check boundary for closedness.
Definition at line 1685 of file primitiveMeshCheck.C.
References primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), and primitiveMesh::faceAreas().
|
virtual |
Check cells for closedness.
Definition at line 1692 of file primitiveMeshCheck.C.
References primitiveMesh::cellVolumes(), primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), and primitiveMesh::faceAreas().
|
virtual |
Check for negative face areas.
Definition at line 1712 of file primitiveMeshCheck.C.
References primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceAreas(), and primitiveMesh::faceAreas().
|
virtual |
Check for negative cell volumes.
Definition at line 1728 of file primitiveMeshCheck.C.
References primitiveMesh::cellVolumes(), primitiveMesh::checkCellVolumes(), and primitiveMesh::checkFaceOrthogonality().
|
virtual |
Check for non-orthogonality.
Reimplemented in polyMesh.
Definition at line 1744 of file primitiveMeshCheck.C.
References primitiveMesh::cellCentres(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), and primitiveMesh::faceAreas().
|
virtual |
Check face pyramid volume.
Definition at line 1760 of file primitiveMeshCheck.C.
References primitiveMesh::cellCentres(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), and primitiveMesh::points().
|
virtual |
Check face skewness.
Reimplemented in polyMesh.
Definition at line 1779 of file primitiveMeshCheck.C.
References primitiveMesh::cellCentres(), primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceSkewness(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and primitiveMesh::points().
|
virtual |
Check face angles.
Definition at line 1797 of file primitiveMeshCheck.C.
References primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceFlatness(), primitiveMesh::faceAreas(), and primitiveMesh::points().
|
virtual |
Check face warpage: decompose face and check ratio between.
magnitude of sum of triangle areas and sum of magnitude of triangle areas.
Definition at line 1815 of file primitiveMeshCheck.C.
References primitiveMesh::checkConcaveCells(), primitiveMesh::checkFaceFlatness(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and primitiveMesh::points().
|
virtual |
Check for point-point-nearness,.
e.g. colocated points which may be part of baffles.
Definition at line 32 of file primitiveMeshCheckPointNearness.C.
References Foam::endl(), SortableList< T >::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), points, Foam::reduce(), List< T >::size(), and Foam::sqrt().
|
virtual |
Check edge length.
Definition at line 31 of file primitiveMeshCheckEdgeLength.C.
References Foam::endl(), f(), UList< T >::fcIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), Foam::max(), Foam::min(), nPoints, points, Foam::reduce(), HashTable< T, Key, Hash >::size(), Foam::sqr(), Foam::sqrt(), and HashTable< T, Key, Hash >::transfer().
|
virtual |
Check for concave cells by the planes of faces.
Definition at line 1834 of file primitiveMeshCheck.C.
References primitiveMesh::checkConcaveCells(), primitiveMesh::faceAreas(), and primitiveMesh::faceCentres().
Check mesh topology for correctness.
Returns false for no error.
Definition at line 1849 of file primitiveMeshCheck.C.
References primitiveMesh::checkCellsZipUp(), primitiveMesh::checkFaceFaces(), primitiveMesh::checkFaceVertices(), primitiveMesh::checkPoints(), primitiveMesh::checkUpperTriangular(), Foam::endl(), and Foam::Info.
Referenced by primitiveMesh::checkMesh().
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
Definition at line 1881 of file primitiveMeshCheck.C.
References primitiveMesh::checkCellVolumes(), primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), Foam::endl(), and Foam::Info.
Referenced by primitiveMesh::checkMesh().
Check mesh for correctness. Returns false for no error.
Definition at line 1914 of file primitiveMeshCheck.C.
References primitiveMesh::checkGeometry(), primitiveMesh::checkTopology(), Foam::endl(), Foam::Info, and InfoInFunction.
Referenced by attachPolyTopoChanger::attach(), and polyMesh::polyMesh().
|
static |
Set the closedness ratio warning threshold.
Definition at line 1945 of file primitiveMeshCheck.C.
References primitiveMesh::closedThreshold_.
|
static |
Set the aspect ratio warning threshold.
Definition at line 1954 of file primitiveMeshCheck.C.
References primitiveMesh::aspectThreshold_.
|
static |
Set the non-orthogonality warning threshold in degrees.
Definition at line 1963 of file primitiveMeshCheck.C.
References primitiveMesh::nonOrthThreshold_.
|
static |
Set the skewness warning threshold as percentage.
of the face area vector
Definition at line 1972 of file primitiveMeshCheck.C.
References primitiveMesh::skewThreshold_.
Return true if the point in the cell bounding box.
The bounding box may be isotropically inflated by the fraction inflationFraction
Definition at line 33 of file primitiveMeshFindCell.C.
References cells, boundBox::contains(), Foam::mag(), VectorSpace< Form, Cmpt, Ncmpts >::max, points, and boundBox::span().
Return true if the point is in the cell.
Definition at line 59 of file primitiveMeshFindCell.C.
References primitiveMesh::cells(), f(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), primitiveMesh::faceOwner(), and forAll.
Referenced by primitiveMesh::findCell(), and polyMesh::pointInCell().
Foam::label findNearestCell | ( | const point & | location | ) | const |
Find the cell with the nearest cell centre to location.
Definition at line 86 of file primitiveMeshFindCell.C.
References primitiveMesh::cellCentres(), Foam::magSqr(), and List< T >::size().
Referenced by polyMesh::findCell(), and primitiveMesh::findCell().
Foam::label findCell | ( | const point & | location | ) | const |
Find cell enclosing this location (-1 if not in mesh)
Definition at line 108 of file primitiveMeshFindCell.C.
References primitiveMesh::findNearestCell(), n, primitiveMesh::nCells(), and primitiveMesh::pointInCell().
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 31 of file primitiveMeshClear.C.
References Foam::endl(), and Foam::Pout.
|
inline |
Definition at line 106 of file primitiveMeshI.H.
|
inline |
Definition at line 112 of file primitiveMeshI.H.
|
inline |
Definition at line 118 of file primitiveMeshI.H.
Referenced by primitiveMesh::cellCells().
|
inline |
Definition at line 124 of file primitiveMeshI.H.
Referenced by primitiveMesh::edgeCells().
|
inline |
Definition at line 130 of file primitiveMeshI.H.
Referenced by primitiveMesh::pointCells().
|
inline |
Definition at line 136 of file primitiveMeshI.H.
|
inline |
Definition at line 142 of file primitiveMeshI.H.
Referenced by primitiveMesh::edgeFaces().
|
inline |
Definition at line 148 of file primitiveMeshI.H.
|
inline |
Definition at line 154 of file primitiveMeshI.H.
Referenced by primitiveMesh::cellEdges().
|
inline |
Definition at line 160 of file primitiveMeshI.H.
Referenced by primitiveMesh::faceEdges().
|
inline |
Definition at line 166 of file primitiveMeshI.H.
|
inline |
Definition at line 172 of file primitiveMeshI.H.
Referenced by primitiveMesh::pointPoints().
|
inline |
Definition at line 178 of file primitiveMeshI.H.
Referenced by primitiveMesh::cellPoints().
|
inline |
Definition at line 184 of file primitiveMeshI.H.
|
inline |
Definition at line 190 of file primitiveMeshI.H.
|
inline |
Definition at line 196 of file primitiveMeshI.H.
|
inline |
Definition at line 202 of file primitiveMeshI.H.
const Foam::labelList & cellCells | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellCells using cells.
Definition at line 112 of file primitiveMeshCellCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), primitiveMesh::cellCells(), primitiveMesh::cells(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, primitiveMesh::hasCellCells(), and primitiveMesh::nInternalFaces().
const Foam::labelList & cellCells | ( | const label | celli | ) | const |
Definition at line 151 of file primitiveMeshCellCells.C.
References primitiveMesh::cellCells().
const Foam::labelList & cellPoints | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellPoints using cells
Definition at line 59 of file primitiveMeshCellPoints.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), primitiveMesh::cellPoints(), primitiveMesh::cells(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), HashTable< T, Key, Hash >::clear(), f(), primitiveMesh::faces(), forAll, forAllConstIter, primitiveMesh::hasCellPoints(), HashSet< Key, Hash >::insert(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and HashTable< T, Key, Hash >::size().
const Foam::labelList & cellPoints | ( | const label | celli | ) | const |
Definition at line 101 of file primitiveMeshCellPoints.C.
References primitiveMesh::cellPoints().
const Foam::labelList & pointCells | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointCells using pointFaces
Definition at line 120 of file primitiveMeshPointCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, primitiveMesh::hasPointCells(), n, primitiveMesh::nInternalFaces(), pFaces, primitiveMesh::pointCells(), primitiveMesh::pointFaces(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setSize(), List< T >::size(), and Foam::sort().
const Foam::labelList & pointCells | ( | const label | pointi | ) | const |
Definition at line 174 of file primitiveMeshPointCells.C.
References primitiveMesh::pointCells().
const Foam::labelList & pointPoints | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointPoints using edges, pointEdges
Definition at line 103 of file primitiveMeshPointPoints.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), primitiveMesh::edges(), forAll, primitiveMesh::hasPointPoints(), primitiveMesh::pointEdges(), primitiveMesh::pointPoints(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and List< T >::size().
const Foam::labelList & pointPoints | ( | const label | pointi | ) | const |
Definition at line 135 of file primitiveMeshPointPoints.C.
References primitiveMesh::pointPoints().
const Foam::labelList & faceEdges | ( | const label | facei, |
DynamicList< label > & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 587 of file primitiveMeshEdges.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), primitiveMesh::faceEdges(), primitiveMesh::faces(), forAll, primitiveMesh::hasFaceEdges(), face::nextLabel(), primitiveMesh::pointEdges(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and List< T >::size().
const Foam::labelList & faceEdges | ( | const label | facei | ) | const |
Definition at line 624 of file primitiveMeshEdges.C.
References primitiveMesh::cellEdges(), and primitiveMesh::faceEdges().
const Foam::labelList & edgeFaces | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeFaces using pointFaces, edges, pointEdges
Definition at line 58 of file primitiveMeshEdgeFaces.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), Foam::e, primitiveMesh::edgeFaces(), primitiveMesh::edges(), primitiveMesh::hasEdgeFaces(), primitiveMesh::pointFaces(), and List< T >::size().
const Foam::labelList & edgeFaces | ( | const label | edgeI | ) | const |
Definition at line 103 of file primitiveMeshEdgeFaces.C.
References primitiveMesh::edgeFaces().
const Foam::labelList & edgeCells | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeCells using pointFaces, edges, pointEdges
Definition at line 58 of file primitiveMeshEdgeCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, primitiveMesh::hasEdgeCells(), and primitiveMesh::isInternalFace().
const Foam::labelList & edgeCells | ( | const label | edgeI | ) | const |
Definition at line 127 of file primitiveMeshEdgeCells.C.
References primitiveMesh::edgeCells().
const Foam::labelList & cellEdges | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellEdges using cells, pointFaces, edges, pointEdges
Definition at line 631 of file primitiveMeshEdges.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), primitiveMesh::cellEdges(), primitiveMesh::cells(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), HashTable< T, Key, Hash >::clear(), primitiveMesh::faceEdges(), forAll, forAllConstIter, primitiveMesh::hasCellEdges(), HashSet< Key, Hash >::insert(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and HashTable< T, Key, Hash >::size().
const Foam::labelList & cellEdges | ( | const label | celli | ) | const |
Definition at line 673 of file primitiveMeshEdges.C.
References primitiveMesh::cellEdges().
void clearGeom | ( | ) |
Clear geometry.
Definition at line 129 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearGeom(), primitiveMesh::clearOut(), primitiveMesh::movePoints(), and polyMesh::setPoints().
void clearAddressing | ( | ) |
Clear topological data.
Definition at line 146 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::addPatch(), polyMesh::cellZones(), polyMesh::clearAddressing(), polyMesh::clearOut(), primitiveMesh::clearOut(), polyMesh::reorderPatches(), polyMesh::reset(), and polyMesh::resetPrimitives().
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 175 of file primitiveMeshClear.C.
References primitiveMesh::clearAddressing(), and primitiveMesh::clearGeom().
Referenced by primitiveMesh::reset(), and primitiveMesh::~primitiveMesh().
|
delete |
Disallow default bitwise assignment.
|
staticprotected |
Static data to control mesh checking.
Cell closedness warning threshold
set as the fraction of un-closed area to closed area
Definition at line 228 of file primitiveMesh.H.
Referenced by primitiveMesh::setClosedThreshold().
|
staticprotected |
Aspect ratio warning threshold.
Definition at line 231 of file primitiveMesh.H.
Referenced by primitiveMesh::setAspectThreshold().
|
staticprotected |
Non-orthogonality warning threshold in deg.
Definition at line 234 of file primitiveMesh.H.
Referenced by primitiveMesh::setNonOrthThreshold().
|
staticprotected |
Skewness warning threshold.
Definition at line 237 of file primitiveMesh.H.
Referenced by primitiveMesh::setSkewThreshold().
|
staticprotected |
Threshold where faces are considered coplanar.
Definition at line 240 of file primitiveMesh.H.
|
static |
Estimated number of cells per edge.
Definition at line 404 of file primitiveMesh.H.
|
static |
Estimated number of cells per point.
Definition at line 407 of file primitiveMesh.H.
|
static |
Estimated number of faces per cell.
Definition at line 410 of file primitiveMesh.H.
|
static |
Estimated number of faces per edge.
Definition at line 413 of file primitiveMesh.H.
|
static |
Estimated number of faces per point.
Definition at line 416 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 419 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 422 of file primitiveMesh.H.
|
static |
Estimated number of edges per point.
Definition at line 425 of file primitiveMesh.H.
|
static |
Estimated number of points per cell.
Definition at line 428 of file primitiveMesh.H.
|
static |
Estimated number of points per face.
Definition at line 431 of file primitiveMesh.H.