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... | |
virtual | ~primitiveMesh () |
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, const Xfer< 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 |
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 addresing. 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... | |
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 |
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... | |
bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=NULL) const |
Check cell zip-up. More... | |
bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=NULL) const |
Check uniqueness of face vertices. More... | |
bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face-face connectivity. More... | |
bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face ordering. More... | |
bool | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness. More... | |
bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=NULL, labelHashSet *highAspectSetPtr=NULL) const |
Check cells for closedness. More... | |
bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative face areas. More... | |
bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative cell volumes. More... | |
bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for non-orthogonality. More... | |
bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL) const |
Check face pyramid volume. More... | |
bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face skewness. More... | |
bool | checkFaceAngles (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face angles. More... | |
bool | checkFaceFlatness (const bool report, labelHashSet *setPtr) const |
Check face warpage: decompose face and check ratio between. More... | |
bool | checkEdgeAlignment (const bool report, const Vector< label > &directions, labelHashSet *setPtr=NULL) const |
Check edge alignment for 1D/2D cases. More... | |
bool | checkPoints (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for unused points. More... | |
bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=NULL) const |
Check for point-point-nearness,. More... | |
bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const |
Check edge length. More... | |
bool | checkCellDeterminant (const bool report=false, labelHashSet *setPtr=NULL) const |
Check cell determinant. More... | |
bool | checkTopology (const bool report=false) const |
Check mesh topology for correctness. More... | |
bool | checkGeometry (const bool report=false) const |
Check mesh geometry (& implicitly topology) for correctness. More... | |
bool | checkMesh (const bool report=false) const |
Check mesh for correctness. Returns false for no error. More... | |
bool | checkMeshMotion (const pointField &newPoints, const bool report=false) const |
Check mesh motion for correctness given motion points. More... | |
bool | pointInCellBB (const point &p, label celli) const |
Is the point in the cell bounding box. More... | |
bool | pointInCell (const point &p, label celli) const |
Is the point 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, dynamicLabelList &) const |
cellCells using cells. More... | |
const labelList & | cellCells (const label cellI) const |
const labelList & | cellPoints (const label cellI, dynamicLabelList &) const |
cellPoints using cells More... | |
const labelList & | cellPoints (const label cellI) const |
const labelList & | pointCells (const label pointI, dynamicLabelList &) const |
pointCells using pointFaces More... | |
const labelList & | pointCells (const label pointI) const |
const labelList & | pointPoints (const label pointI, dynamicLabelList &) const |
pointPoints using edges, pointEdges More... | |
const labelList & | pointPoints (const label pointI) const |
const labelList & | faceEdges (const label faceI, dynamicLabelList &) const |
faceEdges using pointFaces, edges, pointEdges More... | |
const labelList & | faceEdges (const label faceI) const |
const labelList & | edgeFaces (const label edgeI, dynamicLabelList &) const |
edgeFaces using pointFaces, edges, pointEdges More... | |
const labelList & | edgeFaces (const label edgeI) const |
const labelList & | edgeCells (const label edgeI, dynamicLabelList &) const |
edgeCells using pointFaces, edges, pointEdges More... | |
const labelList & | edgeCells (const label edgeI) const |
const labelList & | cellEdges (const label cellI, dynamicLabelList &) 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... | |
ClassName ("primitiveMesh") | |
primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) | |
Construct from components. 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, const Xfer< 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 addresing. 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... | |
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 |
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=NULL) const |
Check face ordering. More... | |
virtual bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=NULL) const |
Check cell zip-up. More... | |
virtual bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=NULL) const |
Check uniqueness of face vertices. More... | |
virtual bool | checkPoints (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for unused points. More... | |
virtual bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=NULL) 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=NULL, labelHashSet *highAspectSetPtr=NULL, const Vector< label > &solutionD=Vector< label >::one) const |
Check cells for closedness. More... | |
virtual bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative face areas. More... | |
virtual bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative cell volumes. More... | |
virtual bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for non-orthogonality. More... | |
virtual bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL) const |
Check face pyramid volume. More... | |
virtual bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face skewness. More... | |
virtual bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=NULL) 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=NULL) const |
Check for point-point-nearness,. More... | |
virtual bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const |
Check edge length. More... | |
virtual bool | checkConcaveCells (const bool report=false, labelHashSet *setPtr=NULL) 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... | |
Static Public Member Functions | |
static void | calcCells (cellList &, const unallocLabelList &own, const unallocLabelList &nei, const label nCells=-1) |
Helper function to calculate cell-face addressing from. More... | |
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... | |
static const debug::tolerancesSwitch | closedThreshold_ = 1.0e-6 |
Static data to control mesh checking. More... | |
static const debug::tolerancesSwitch | aspectThreshold_ = 1000 |
Aspect ratio warning threshold. More... | |
static Foam::debug::tolerancesSwitch | nonOrthThreshold_ = 70 |
Non-orthogonality warning threshold in deg. More... | |
static const debug::tolerancesSwitch | skewThreshold_ = 4 |
Skewness warning threshold. More... | |
static Foam::debug::tolerancesSwitch | faceAngleThreshold_ |
Face angle threshold. More... | |
static const debug::tolerancesSwitch | faceFlatnessThreshold_ |
Face flatness threshold. More... | |
Protected Member Functions | |
primitiveMesh () | |
Construct null. More... | |
void | calcFaceCentresAndAreas () const |
Calculate face centres and areas. More... | |
void | makeFaceCentresAndAreas (const pointField &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... | |
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_ |
Static data to control mesh checking. More... | |
static scalar | aspectThreshold_ |
Aspect ratio warning threshold. More... | |
static scalar | nonOrthThreshold_ |
Non-orthogonality warning threshold in deg. More... | |
static scalar | skewThreshold_ |
Skewness warning threshold. More... | |
static scalar | planarCosAngle_ = 1.0e-6 |
Threshold where faces are considered coplanar. More... | |
Private Member Functions | |
primitiveMesh (const primitiveMesh &) | |
Disallow construct as copy. More... | |
void | operator= (const primitiveMesh &) |
Disallow default bitwise assignment. More... | |
void | calcCellShapes () const |
Calculate cell shapes. More... | |
void | calcCellCells () const |
Calculate cell-cell addressing. More... | |
void | calcPointCells () const |
Calculate point-cell addressing. More... | |
void | calcCells () const |
Calculate cell-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 | calcEdges () const |
Calculate edges, pointEdges and faceEdges. More... | |
void | clearOutEdges () |
During edge calculation, a larger set of data is assembled. More... | |
void | calcFaceCentresAndAreas () const |
Calculate face centres and areas. More... | |
void | makeFaceCentresAndAreas (const pointField &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... | |
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... | |
primitiveMesh (const primitiveMesh &) | |
Disallow construct as copy. More... | |
void | operator= (const primitiveMesh &) |
Disallow default bitwise assignment. More... | |
void | calcCellShapes () const |
Calculate cell shapes. More... | |
void | calcCellCells () const |
Calculate cell-cell addressing. More... | |
void | calcPointCells () const |
Calculate point-cell addressing. More... | |
void | calcCells () const |
Calculate cell-face addressing. More... | |
void | calcCellEdges () const |
Calculate edge list. More... | |
void | calcPointPoints () const |
Calculate point-point addressing. More... | |
void | calcEdges (const bool doFaceEdges) const |
Calculate edges, pointEdges and faceEdges (if doFaceEdges=true) More... | |
void | clearOutEdges () |
Static Private Member Functions | |
static label | getEdge (List< dynamicLabelList > &, DynamicList< edge > &, const label, const label) |
Helper: More... | |
static label | findFirstCommonElementFromSortedLists (const labelList &, const labelList &) |
For on-the-fly addressing calculation. More... | |
static label | getEdge (List< DynamicList< label > > &, DynamicList< edge > &, const label, const label) |
Helper: return (after optional creation) edge between two points. More... | |
static label | findFirstCommonElementFromSortedLists (const labelList &, const labelList &) |
For on-the-fly addressing calculation. More... | |
Private Attributes | |
label | nPoints_ |
Number of points. More... | |
label | nEdges_ |
Number of edges. More... | |
label | nInternalFaces_ |
Number of internal faces. More... | |
label | nFaces_ |
Number of faces. More... | |
label | nCells_ |
Number of cells. More... | |
cellShapeList * | cellShapesPtr_ |
Cell shapes. More... | |
edgeList * | edgesPtr_ |
Edges are ordered in upper triangular order. More... | |
labelListList * | ccPtr_ |
Cell-cells. More... | |
labelListList * | ecPtr_ |
Edge-cells. More... | |
labelListList * | pcPtr_ |
Point-cells. More... | |
cellList * | cfPtr_ |
Cell-faces. More... | |
labelListList * | efPtr_ |
Edge-faces. More... | |
labelListList * | pfPtr_ |
Point-faces. More... | |
labelListList * | cePtr_ |
Cell-edges. More... | |
labelListList * | fePtr_ |
Face-edges. More... | |
labelListList * | pePtr_ |
Point-edges. More... | |
labelListList * | ppPtr_ |
Point-points. More... | |
labelListList * | cpPtr_ |
Cell-points. More... | |
dynamicLabelList | labels_ |
Temporary storage for addressing. More... | |
labelHashSet | labelSet_ |
Temporary storage for addressing. More... | |
vectorField * | cellCentresPtr_ |
Cell centres. More... | |
vectorField * | faceCentresPtr_ |
Face centres. More... | |
scalarField * | cellVolumesPtr_ |
Cell volumes. More... | |
vectorField * | faceAreasPtr_ |
Face areas. More... | |
label | nInternalPoints_ |
Number of internal points (or -1 if points not sorted) More... | |
label | nInternal0Edges_ |
Number of internal edges using 0 boundary points. More... | |
label | nInternal1Edges_ |
Number of internal edges using 0 or 1 boundary points. More... | |
label | nInternalEdges_ |
Number of internal edges using 0,1 or 2boundary points. More... | |
DynamicList< label > | labels_ |
Temporary storage for addressing. More... | |
Cell-face mesh analysis engine.
Definition at line 79 of file primitiveMesh.H.
|
private |
Disallow construct as copy.
|
protected |
Construct null.
Definition at line 36 of file primitiveMesh.C.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
Definition at line 72 of file primitiveMesh.C.
|
virtual |
Definition at line 112 of file primitiveMesh.C.
|
private |
Disallow construct as copy.
|
protected |
Construct null.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
|
virtual |
Destructor.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate cell shapes.
Definition at line 33 of file primitiveMeshCalcCellShapes.C.
References Foam::abort(), primitiveMesh::cellShapes(), primitiveMesh::cellShapesPtr_, Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, degenerateMatcher::match(), primitiveMesh::nCells(), and Foam::Pout.
|
private |
Calculate cell-cell addressing.
Definition at line 31 of file primitiveMeshCellCells.C.
References Foam::abort(), primitiveMesh::ccPtr_, Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nCells(), Foam::Pout, List::setSize(), and List::size().
|
private |
Calculate point-cell addressing.
Definition at line 31 of file primitiveMeshPointCells.C.
References Foam::abort(), primitiveMesh::cells(), Foam::endl(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nPoints(), primitiveMesh::pcPtr_, Foam::Pout, List::setSize(), and List::size().
|
private |
Calculate cell-face addressing.
Definition at line 99 of file primitiveMeshCells.C.
References Foam::abort(), primitiveMesh::cfPtr_, Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), Foam::FatalError, FatalErrorIn, primitiveMesh::nCells(), and Foam::Pout.
|
private |
Calculate edge list.
Definition at line 32 of file primitiveMeshCellEdges.C.
References Foam::abort(), DynamicList::append(), primitiveMesh::cePtr_, Foam::endl(), primitiveMesh::faceEdges(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), Foam::FatalError, FatalErrorIn, Foam::findIndex(), forAll, primitiveMesh::nCells(), Foam::Pout, List::size(), and List::transfer().
|
private |
Calculate point-edge addressing.
Definition at line 35 of file primitiveMeshPointEdges.C.
References Foam::abort(), Foam::e, primitiveMesh::edges(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nPoints(), primitiveMesh::pePtr_, Foam::Pout, List::setSize(), and List::size().
Referenced by primitiveMesh::pointEdges().
|
private |
Calculate point-point addressing.
Definition at line 30 of file primitiveMeshPointPoints.C.
References Foam::abort(), Foam::e, primitiveMesh::edges(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::pointEdges(), Foam::Pout, primitiveMesh::ppPtr_, List::setSize(), and List::size().
|
private |
Calculate edges, pointEdges and faceEdges.
Definition at line 74 of file primitiveMeshEdges.C.
References Foam::abort(), DynamicList::append(), Foam::constant::physicoChemical::b, Foam::e, primitiveMesh::edgesPtr_, edge::end(), Foam::endl(), f(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, primitiveMesh::fePtr_, forAll, found, primitiveMesh::nEdges(), primitiveMesh::nFaces(), primitiveMesh::pointFaces(), Foam::Pout, List::setSize(), List::size(), edge::start(), and List::transfer().
|
private |
During edge calculation, a larger set of data is assembled.
Create and destroy as a set, using clearOutEdges()
Definition at line 379 of file primitiveMeshEdges.C.
References Foam::deleteDemandDrivenData().
|
staticprivate |
Helper:
return (after optional creation) edge between two points
Definition at line 36 of file primitiveMeshEdges.C.
References List::append(), DynamicList::append(), Foam::constant::electromagnetic::e, and forAll.
Referenced by primitiveMesh::calcEdges().
|
staticprivate |
For on-the-fly addressing calculation.
Definition at line 312 of file primitiveMeshEdges.C.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
|
private |
Calculate face centres and areas.
Definition at line 38 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::abort(), Foam::endl(), primitiveMesh::faceAreasPtr_, primitiveMesh::faceCentresPtr_, Foam::FatalError, FatalErrorIn, primitiveMesh::makeFaceCentresAndAreas(), primitiveMesh::nFaces(), primitiveMesh::points(), and Foam::Pout.
|
private |
Definition at line 74 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::constant::universal::c, f(), forAll, Foam::mag(), n, nPoints, p, Foam::constant::mathematical::pi(), List::size(), and Vector< scalar >::zero.
Referenced by primitiveMesh::calcFaceCentresAndAreas().
|
private |
Calculate cell centres and volumes.
Definition at line 36 of file primitiveMeshCellCentresAndVols.C.
References Foam::abort(), primitiveMesh::cellCentresPtr_, cellVols, primitiveMesh::cellVolumesPtr_, Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorIn, primitiveMesh::makeCellCentresAndVols(), primitiveMesh::nCells(), and Foam::Pout.
|
private |
Definition at line 75 of file primitiveMeshCellCentresAndVols.C.
References Foam::DelaunayMeshTools::allPoints(), cellVols, tetrahedron::centre(), f(), forAll, tetrahedron::mag(), points, List::size(), and Vector< scalar >::zero.
Referenced by primitiveMesh::calcCellCentresAndVols().
|
private |
Calculate edge vectors.
|
private |
Check if all points on face are shared with another face.
Definition at line 1629 of file primitiveMeshCheck.C.
References forAllConstIter(), HashSet< Key, Hash >::insert(), and List::size().
|
private |
Check that shared points are in consecutive order.
Definition at line 1671 of file primitiveMeshCheck.C.
References Foam::findIndex(), forAll, forAllConstIter(), HashSet< Key, Hash >::insert(), Foam::labelMax, and List::size().
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 121 of file primitiveMesh.C.
References Foam::endl(), nPoints, and Foam::Pout.
Referenced by polyMesh::initMesh(), VoidFraction< CloudType >::preEvolve(), and ParticleErosion< CloudType >::preEvolve().
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 151 of file primitiveMesh.C.
References nPoints.
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
const Xfer< cellList > & | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 172 of file primitiveMesh.C.
References nPoints.
|
inline |
Definition at line 35 of file primitiveMeshI.H.
References primitiveMesh::nPoints_.
Referenced by polyMeshAdder::add(), autoLayerDriver::addLayers(), polyTopoChange::addMesh(), primitiveMesh::calcEdges(), primitiveMesh::calcPointCells(), primitiveMesh::calcPointEdges(), polyTopoChange::changeMesh(), pointZone::checkParallelSync(), zoneToPoint::combine(), sampledCuttingPlane::createGeometry(), distanceSurface::createGeometry(), createReconstructMap(), displacementInterpolationMotionSolver::curPoints(), displacementMotionSolver::displacementMotionSolver(), fvMeshDistribute::distribute(), meshToMesh::distributeCells(), edgeVertex::edgeToEVert(), polyMeshFilter::filterEdges(), polyMeshFilter::filterFaces(), polyMeshFilter::filterFacesLoop(), edgeVertex::getEdge(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), polyMesh::initMesh(), edgeVertex::isEdge(), localPointRegion::localPointRegion(), main(), polyTopoChange::makeMesh(), polyMeshAdder::mergePrimitives(), meshTriangulation::meshTriangulation(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), vtkMesh::nFieldPoints(), sampledSurface::pointAverage(), primitiveMesh::pointFaces(), pointSet::pointSet(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), readProcAddressing(), processorMeshes::reconstructPoints(), multiDirRefinement::refineHex8(), reorderMesh(), fvMeshDistribute::sendMesh(), motionSmootherAlgo::setDisplacement(), pointMesh::size(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), sixDoFRigidBodyMotionSolver::solve(), hexRef8Data::sync(), syncPoints(), testPackedList(), testPointSync(), testSparseData(), meshRefinement::testSyncPointList(), sampledIsoSurfaceCell::updateGeometry(), polyMeshFilter::updatePointPriorities(), edgeVertex::vertToEVert(), vtkTopo::vtkTopo(), and writeProcAddressing().
|
inline |
Definition at line 41 of file primitiveMeshI.H.
References primitiveMesh::edges(), primitiveMesh::nEdges_, and List::size().
Referenced by twoDPointCorrector::calcAddressing(), primitiveMesh::calcEdges(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), edgeVertex::edgeToEVert(), polyMeshFilter::filterEdges(), polyMeshFilter::filterFaces(), hexRef8::getLevel0EdgeLength(), syncTools::getMasterEdges(), addPatchCellLayer::globalEdgeFaces(), autoLayerDriver::handleFeatureAngle(), autoLayerDriver::handleNonManifolds(), edgeVertex::isEdge(), main(), polyMeshFilter::mapOldMeshEdgeFieldToNewMesh(), primitiveMesh::nInternal0Edges(), primitiveMesh::nInternal1Edges(), primitiveMesh::nInternalEdges(), testPackedList(), and testSparseData().
|
inline |
Definition at line 52 of file primitiveMeshI.H.
References primitiveMesh::nInternalFaces_.
Referenced by polyMeshAdder::add(), autoLayerDriver::addLayers(), polyTopoChange::addMesh(), volPointInterpolation::calcBoundaryAddressing(), CFCCellToCellStencil::calcCellStencil(), CFCFaceToCellStencil::calcCellStencil(), polyDualMesh::calcFeatures(), edgeCollapser::calcTargetFaceSizes(), meshToMesh::calculate(), blockMesh::checkBlockMesh(), primitiveMesh::checkClosedBoundary(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), nbrToCell::combine(), cellToFace::combine(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), determineCoupledFaces(), fvMeshDistribute::distribute(), dynamicRefineFvMesh::dynamicRefineFvMesh(), faceCoupleInfo::faceCoupleInfo(), FacePostProcessing< CloudType >::FacePostProcessing(), findBaffles(), fvMeshDistribute::findCouples(), localPointRegion::findDuplicateFacePairs(), localPointRegion::findDuplicateFaces(), faceCoupleInfo::findPerfectMatchingFaces(), faceCoupleInfo::findSlavesCoveringMaster(), volPointInterpolation::flatBoundaryField(), autoLayerDriver::getBafflesOnAddedMesh(), boundaryMesh::getNearest(), getRegionFaceOrder(), polyMesh::initMesh(), insertDuplicateMerge(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), main(), volPointInterpolation::makeBoundaryWeights(), fvMeshDistribute::mapBoundaryData(), polyMeshAdder::mergePrimitives(), boundaryMesh::patchify(), fvMeshDistribute::printCoupleInfo(), printMeshData(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), layerAdditionRemoval::removeCellLayer(), SloanRenumber::renumber(), mappedPatchBase::sampleSize(), MRFZone::setMRFFaces(), fvSurfaceMapper::size(), fvMeshDistribute::subsetBoundaryData(), testSparseData(), meshRefinement::updateIntersections(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), polyBoundaryMesh::whichPatch(), regionSizeDistribution::write(), autoLayerDriver::writeLayerSets(), and Foam::writeSurfFields().
|
inline |
Definition at line 58 of file primitiveMeshI.H.
References primitiveMesh::nFaces_.
Referenced by polyMeshAdder::add(), autoLayerDriver::addLayers(), meshRefinement::addPatch(), faceMapper::calcAddressing(), CFCFaceToCellStencil::calcCellStencil(), CFCCellToCellStencil::calcCellStencil(), primitiveMesh::calcEdges(), primitiveMesh::calcFaceCentresAndAreas(), cellCuts::calcFaceCuts(), polyDualMesh::calcFeatures(), edgeCollapser::calcTargetFaceSizes(), meshToMesh::calculate(), polyTopoChange::changeMesh(), autoLayerDriver::checkAndUnmark(), meshRefinement::checkCoupledFaceZones(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), boundaryToFace::combine(), nbrToCell::combine(), zoneToFace::combine(), badQualityToFace::combine(), badQualityToCell::combine(), cellToFace::combine(), parFvFieldReconstructor::createPatchFaceMaps(), createReconstructMap(), structuredDecomp::decompose(), determineCoupledFaces(), autoLayerDriver::determineSidePatches(), fvMeshDistribute::distribute(), meshToMesh::distributeCells(), autoLayerDriver::doLayers(), autoSnapDriver::doSnap(), dynamicRefineFvMesh::dynamicRefineFvMesh(), faceMapper::faceMapper(), faceSet::faceSet(), faceZoneSet::faceZoneSet(), findBaffles(), localPointRegion::findDuplicateFacePairs(), faceCoupleInfo::findPerfectMatchingFaces(), faceCoupleInfo::findSlavesCoveringMaster(), volPointInterpolation::flatBoundaryField(), fvFieldReconstructor::fvFieldReconstructor(), autoLayerDriver::getBafflesOnAddedMesh(), getFaceOrder(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), autoLayerDriver::getLayerCellsFaces(), syncTools::getMasterFaces(), boundaryMesh::getNearest(), getRegionFaceOrder(), polyMesh::initMesh(), main(), polyTopoChange::makeMesh(), fvMeshDistribute::mapBoundaryData(), polyMeshFilter::mapOldMeshFaceFieldToNewMesh(), mappedPatchFieldBase< Type >::mappedField(), autoLayerDriver::mergePatchFacesUndo(), polyMeshAdder::mergePrimitives(), nearestPatch(), boundaryMesh::patchify(), printMeshData(), fvMeshDistribute::printMeshInfo(), wallBoundedStreamLine::read(), boundaryMesh::read(), readProcAddressing(), SloanRenumber::renumber(), reorderMesh(), mappedPatchBase::sampleSize(), fvMeshDistribute::sendMesh(), MRFZone::setMRFFaces(), fvMeshDistribute::subsetBoundaryData(), testFaceSync(), testPackedList(), testSparseData(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), myMappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), meshRefinement::updateIntersections(), polyBoundaryMesh::whichPatch(), regionSizeDistribution::write(), writeProcAddressing(), and Foam::writeSurfFields().
|
inline |
Definition at line 64 of file primitiveMeshI.H.
References primitiveMesh::nCells_.
Referenced by refinementHistoryConstraint::add(), polyMeshAdder::add(), autoLayerDriver::addLayers(), polyTopoChange::addMesh(), mixerFvMesh::addZonesAndModifiers(), refinementHistoryConstraint::apply(), cellMapper::calcAddressing(), primitiveMesh::calcCellCells(), primitiveMesh::calcCellCentresAndVols(), primitiveMesh::calcCellEdges(), primitiveMesh::calcCells(), primitiveMesh::calcCellShapes(), meshToMesh::calcDistribution(), meshToMesh::calcProcMap(), meshToMesh::calculate(), meshToMesh0::calculateInverseDistanceWeights(), cellCuts::cellCuts(), cellMapper::cellMapper(), primitiveMesh::cellPoints(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), zoneToCell::combine(), shapeToCell::combine(), faceZoneToCell::combine(), targetVolumeToCell::combine(), regionToCell::combine(), surfaceToCell::combine(), drippingInjection::correct(), createReconstructMap(), structuredDecomp::decompose(), determineCoupledFaces(), fvMeshDistribute::distribute(), refinementHistory::distribute(), meshToMesh::distributeCells(), autoLayerDriver::doLayers(), dynamicRefineFvMesh::dynamicRefineFvMesh(), refinementParameters::findCells(), meshRefinement::findRegions(), fvFieldReconstructor::fvFieldReconstructor(), autoLayerDriver::getLayerCellsFaces(), hexRef8::getLevel0EdgeLength(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), polyMesh::initMesh(), main(), polyTopoChange::makeMesh(), mappedPatchFieldBase< Type >::mappedField(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), meshToMeshMethod::maskCells(), polyMeshAdder::mergePrimitives(), nearestPatch(), cellTable::operator=(), sampledSurface::pointAverage(), polyMesh::polyMesh(), printMeshData(), fvMeshDistribute::printMeshInfo(), readProcAddressing(), ensightParts::recalculate(), reconstructLagrangian(), multiDirRefinement::refineHex8(), refinementHistory::refinementHistory(), CuthillMcKeeRenumber::renumber(), zoltanRenumber::renumber(), SloanRenumber::renumber(), springRenumber::renumber(), reorderMesh(), fvMeshDistribute::sendMesh(), MRFZone::setMRFFaces(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), hexRef8Data::sync(), sampledIsoSurfaceCell::updateGeometry(), vtkTopo::vtkTopo(), regionSizeDistribution::write(), writeCellDistance(), meshToMeshMethod::writeConnectivity(), domainDecomposition::writeDecomposition(), and writeProcAddressing().
|
pure virtual |
Return mesh points.
Implemented in polyMesh.
Referenced by treeDataFace::calcBb(), primitiveMesh::calcEdges(), primitiveMesh::calcFaceCentresAndAreas(), tetOverlapVolume::cellCellOverlapMinDecomp(), faceCoupleInfo::findPerfectMatchingFaces(), faceCoupleInfo::findSlavesCoveringMaster(), boundaryMesh::getNearest(), treeDataFace::findNearestOp::operator()(), treeDataFace::findIntersectOp::operator()(), and primitiveMesh::pointInCellBB().
|
pure virtual |
Return faces.
Implemented in polyMesh.
Referenced by treeDataFace::calcBb(), primitiveMesh::calcEdges(), primitiveMesh::calcPointCells(), tetOverlapVolume::cellCellOverlapMinDecomp(), cellFeatures::faceAlignedEdge(), faceCoupleInfo::findPerfectMatchingFaces(), faceCoupleInfo::findSlavesCoveringMaster(), boundaryMesh::getNearest(), treeDataFace::findNearestOp::operator()(), treeDataFace::findIntersectOp::operator()(), primitiveMesh::pointFaces(), and primitiveMesh::pointInCellBB().
|
pure virtual |
Face face-owner addresing.
Implemented in polyMesh.
Referenced by primitiveMesh::calcCellCells(), primitiveMesh::calcCellEdges(), primitiveMesh::calcCells(), and tetOverlapVolume::cellCellOverlapMinDecomp().
|
pure virtual |
Face face-neighbour addressing.
Implemented in polyMesh.
Referenced by primitiveMesh::calcCellCells(), primitiveMesh::calcCellEdges(), and primitiveMesh::calcCells().
|
pure virtual |
Return old points for mesh motion.
Implemented in polyMesh.
const Foam::cellShapeList & cellShapes | ( | ) | const |
Return cell shapes.
Definition at line 230 of file primitiveMesh.C.
Referenced by primitiveMesh::calcCellShapes(), shapeToCell::combine(), main(), and vtkTopo::vtkTopo().
const Foam::edgeList & edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
Definition at line 353 of file primitiveMeshEdges.C.
Referenced by layerAdditionRemoval::addCellLayer(), autoLayerDriver::addLayers(), twoDPointCorrector::calcAddressing(), cellCuts::calcAnchors(), primitiveMesh::calcEdges(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), cellCuts::calcLoopsAndAddressing(), primitiveMesh::calcPointEdges(), primitiveMesh::calcPointPoints(), cellCuts::check(), boundaryMesh::collectSegment(), cellCuts::conservativeValidLoop(), geomCellLooper::cut(), topoCellLooper::cut(), geomCellLooper::cutEdge(), geomCellLooper::edgeEndsCut(), cellFeatures::faceAlignedEdge(), cellCuts::findEdge(), hexRef8::getLevel0EdgeLength(), addPatchCellLayer::globalEdgeFaces(), meshCutAndRemove::loopToFace(), meshCutter::loopToFace(), main(), polyMeshFilter::mapOldMeshEdgeFieldToNewMesh(), boundaryMesh::markEdges(), geomCellLooper::minEdgeLen(), primitiveMesh::nEdges(), boundaryMesh::setFeatureEdges(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), geomCellLooper::snapToVert(), testEdgeSync(), testSparseData(), medialAxisMeshMover::update(), directionInfo::updateCell(), pointEdgePoint::updateEdge(), externalPointEdgePoint::updateEdge(), cellCuts::validEdgeLoop(), cellCuts::validLoop(), and cellCuts::walkEdges().
|
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 forAll, Foam::max(), List::setSize(), and List::size().
const Foam::labelListList & cellCells | ( | ) | const |
Definition at line 100 of file primitiveMeshCellCells.C.
Referenced by meshToMeshMethod::appendNbrCells(), meshToMesh0::calculateInverseDistanceWeights(), meshToMesh0::cellAddresses(), main(), and directions::writeOBJ().
const Foam::labelListList & edgeCells | ( | ) | const |
Definition at line 32 of file primitiveMeshEdgeCells.C.
References Foam::abort(), primitiveMesh::cellEdges(), primitiveMesh::ecPtr_, Foam::endl(), Foam::FatalError, FatalErrorIn, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by polyTopoChange::calcCellInflationMaps(), and main().
const Foam::labelListList & pointCells | ( | ) | const |
Definition at line 108 of file primitiveMeshPointCells.C.
Referenced by polyTopoChange::calcCellInflationMaps(), primitiveMesh::cellPoints(), pointToCell::combine(), cellDistFuncs::correctBoundaryPointCells(), dynamicRefineFvMesh::dynamicRefineFvMesh(), volPointInterpolation::interpolateDimensionedInternalField(), main(), volPointInterpolation::makeInternalWeights(), partTetMesh::partTetMesh(), sampledSurface::pointAverage(), and sampledIsoSurfaceCell::updateGeometry().
const Foam::cellList & cells | ( | ) | const |
Definition at line 136 of file primitiveMeshCells.C.
Referenced by layerAdditionRemoval::addCellLayer(), meshToMesh0::calcAddressing(), cellCuts::calcAnchors(), treeDataCell::calcCellBb(), cellCuts::calcCellLoops(), CFCCellToCellStencil::calcCellStencil(), CFCFaceToCellStencil::calcCellStencil(), blockMesh::calcMergeInfo(), blockMesh::calcMergeInfoFast(), primitiveMesh::calcPointCells(), meshToMesh::calcProcMap(), tetOverlapVolume::cellCellOverlapMinDecomp(), autoLayerDriver::cellsUseFace(), layerAdditionRemoval::changeTopology(), blockMesh::checkBlockMesh(), primitiveMeshGeometry::checkCellDeterminant(), polyMeshGeometry::checkCellDeterminant(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), nbrToCell::combine(), cellToPoint::combine(), faceToCell::combine(), cellToFace::combine(), inversePointDistanceDiffusivity::correct(), outletStabilised< Type >::correction(), geomCellLooper::cut(), topoCellLooper::cut(), dynamicRefineFvMesh::dynamicRefineFvMesh(), detectBoundaryLayers::findHairsForFace(), sampledSet::findNearFace(), getFaceOrder(), getRegionFaceOrder(), SurfaceFilmModel< CloudType >::inject(), wedgeMatcher::isA(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), cellCuts::loopFace(), main(), meshToMeshMethod::maskCells(), meshToMesh::maskCells(), degenerateMatcher::match(), tetMatcher::matches(), prismMatcher::matches(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), hexMatcher::matches(), pyrMatcher::matches(), polyMeshAdder::mergePrimitives(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), tetIndices::oldTet(), treeDataCell::findIntersectOp::operator()(), partTetMesh::partTetMesh(), primitiveMesh::pointInCellBB(), wallBoundedStreamLine::read(), layerAdditionRemoval::removeCellLayer(), meshCutter::setRefinement(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), Taverage(), Uaverage(), sampledTriSurfaceMesh::update(), wallLayerCells::usesCoupledPatch(), vtkTopo::vtkTopo(), outletStabilised< Type >::weights(), meshToMeshMethod::writeConnectivity(), and writeVTK().
const Foam::labelListList & edgeFaces | ( | ) | const |
Definition at line 31 of file primitiveMeshEdgeFaces.C.
References Foam::abort(), primitiveMesh::efPtr_, Foam::endl(), primitiveMesh::faceEdges(), Foam::FatalError, FatalErrorIn, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by layerAdditionRemoval::addCellLayer(), addPatchCellLayer::calcExtrudeInfo(), polyTopoChange::calcFaceInflationMaps(), cellCuts::conservativeValidLoop(), boundaryMesh::edgeToFace(), main(), boundaryMesh::setFeatureEdges(), 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(), primitiveMesh::pfPtr_, and Foam::Pout.
Referenced by cellCuts::calcAnchors(), primitiveMesh::calcEdges(), polyTopoChange::calcFaceInflationMaps(), pointToFace::combine(), cellCuts::conservativeValidLoop(), meshCutter::findInternalFacePoint(), main(), layerAdditionRemoval::removeCellLayer(), perfectInterface::setRefinement(), and cellCuts::walkPoint().
const Foam::labelListList & cellEdges | ( | ) | const |
Definition at line 118 of file primitiveMeshCellEdges.C.
Referenced by cellCuts::calcAnchors(), polyDualMesh::calcFeatures(), geomCellLooper::cut(), primitiveMesh::edgeCells(), hexRef8::getLevel0EdgeLength(), and main().
const Foam::labelListList & faceEdges | ( | ) | const |
Definition at line 366 of file primitiveMeshEdges.C.
Referenced by primitiveMesh::calcCellEdges(), primitiveMesh::calcEdges(), cellCuts::countFaceCuts(), primitiveMesh::edgeFaces(), boundaryMesh::faceToEdge(), cellCuts::findEdge(), cellCuts::loopFace(), main(), and directionInfo::updateCell().
const Foam::labelListList & pointEdges | ( | ) | const |
Definition at line 96 of file primitiveMeshPointEdges.C.
References primitiveMesh::calcPointEdges(), and primitiveMesh::pePtr_.
Referenced by autoLayerDriver::addLayers(), primitiveMesh::calcEdges(), addPatchCellLayer::calcExtrudeInfo(), primitiveMesh::calcPointPoints(), cellCuts::conservativeValidLoop(), addPatchCellLayer::globalEdgeFaces(), main(), boundaryMesh::markEdges(), geomCellLooper::minEdgeLen(), boundaryMesh::nextFeatureEdge(), testSparseData(), and cellCuts::walkEdges().
const Foam::labelListList & pointPoints | ( | ) | const |
Definition at line 91 of file primitiveMeshPointPoints.C.
Referenced by main().
const Foam::labelListList & cellPoints | ( | ) | const |
Definition at line 31 of file primitiveMeshCellPoints.C.
References Foam::abort(), primitiveMesh::cpPtr_, Foam::endl(), Foam::FatalError, FatalErrorIn, Foam::invertManyToMany(), primitiveMesh::nCells(), primitiveMesh::pointCells(), and Foam::Pout.
Referenced by cellCuts::calcAnchors(), meshToMesh::calcProcMap(), main(), tetOverlapVolume::overlappingCells(), and meshCutAndRemove::setRefinement().
const Foam::vectorField & cellCentres | ( | ) | const |
Definition at line 211 of file primitiveMeshCellCentresAndVols.C.
Referenced by polyTopoChange::addMesh(), meshToMesh0::calcAddressing(), meshToMesh0::cellAddresses(), tetOverlapVolume::cellCellOverlapMinDecomp(), boxToCell::combine(), sphereToCell::combine(), cylinderToCell::combine(), cylinderAnnulusToCell::combine(), rotatedBoxToCell::combine(), surfaceToCell::combine(), primitiveMeshGeometry::correct(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), sampledCuttingPlane::createGeometry(), structuredDecomp::decompose(), mappedPatchBase::facePoint(), mapNearestMethod::findNearestCell(), volPointInterpolation::interpolateDimensionedInternalField(), main(), fvMesh::makeC(), volPointInterpolation::makeInternalWeights(), treeDataCell::findNearestOp::operator()(), sampledSet::pushIn(), regionRenumber(), patchInjectionBase::setPositionAndCell(), tetIndices::tet(), sweepData::updateCell(), wallPoint::updateCell(), refinementDistanceData::updateCell(), cylindrical::updateCells(), meshRefinement::updateIntersections(), reactingOneDim::updateQr(), meshToMeshMethod::writeConnectivity(), cellSet::writeDebug(), and directions::writeOBJ().
const Foam::vectorField & faceCentres | ( | ) | const |
Definition at line 130 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by movingConeTopoFvMesh::addZonesAndModifiers(), primitiveMesh::calcCellCentresAndVols(), sampledSet::calcSign(), boxToFace::combine(), primitiveMeshGeometry::correct(), sampledCuttingPlane::createGeometry(), autoSnapDriver::doSnap(), dumpCyclicMatch(), mappedPatchBase::facePoint(), localPointRegion::findDuplicateFacePairs(), autoLayerDriver::getBafflesOnAddedMesh(), boundaryMesh::getNearest(), autoLayerDriver::handleWarpedFaces(), main(), volPointInterpolation::makeBoundaryWeights(), fvMesh::makeC(), fvMesh::makeCf(), meshTriangulation::meshTriangulation(), nearestPatch(), treeDataFace::findIntersectOp::operator()(), fvMeshDistribute::printCoupleInfo(), sampledSet::pushIn(), testFaceSync(), fvMeshDistribute::testField(), wallPointYPlus::updateFace(), transportData::updateFace(), sweepData::updateFace(), wallPoint::updateFace(), refinementDistanceData::updateFace(), faceSet::writeDebug(), and Foam::writeSurfFields().
const Foam::scalarField & cellVolumes | ( | ) | const |
Definition at line 222 of file primitiveMeshCellCentresAndVols.C.
Referenced by edgeCollapser::calcTargetFaceSizes(), polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), primitiveMeshGeometry::correct(), InflationInjection< CloudType >::InflationInjection(), main(), polyTopoChange::makeMesh(), and fvMesh::V().
const Foam::vectorField & faceAreas | ( | ) | const |
Definition at line 141 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by movingConeTopoFvMesh::addZonesAndModifiers(), primitiveMesh::calcCellCentresAndVols(), polyMesh::calcDirections(), sampledSet::calcSign(), layerAdditionRemoval::changeTopology(), primitiveMesh::checkClosedBoundary(), primitiveMeshGeometry::correct(), boundaryMesh::getNearest(), main(), and fvMesh::makeSf().
Foam::tmp< Foam::scalarField > movePoints | ( | const pointField & | p, |
const pointField & | oldP | ||
) |
Move points, returns volumes swept by faces in motion.
Definition at line 193 of file primitiveMesh.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorIn, forAll, Foam::nl, nPoints, and List::size().
Referenced by polyMesh::movePoints().
|
inline |
Return true if given face label is internal to the mesh.
Definition at line 70 of file primitiveMeshI.H.
References primitiveMesh::nInternalFaces().
Referenced by layerAdditionRemoval::addCellLayer(), polyTopoChange::calcCellInflationMaps(), addPatchCellLayer::calcExtrudeInfo(), primitiveMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), badQualityToCell::combine(), nbrToCell::combine(), pointToCell::combine(), faceToCell::combine(), outletStabilised< Type >::correction(), getFaceOrder(), getRegionFaceOrder(), directionalPressureGradientExplicitSource::initialise(), effectivenessHeatExchangerSource::initialise(), main(), meshTriangulation::meshTriangulation(), layerAdditionRemoval::removeCellLayer(), polyTopoChange::selectFaces(), perfectInterface::setRefinement(), autoLayerDriver::truncateDisplacement(), meshRefinement::updateIntersections(), outletStabilised< Type >::weights(), and writeVTK().
bool checkCellsZipUp | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check cell zip-up.
Definition at line 1452 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::reduce(), and List::size().
bool checkFaceVertices | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check uniqueness of face vertices.
Definition at line 1553 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and List::size().
bool checkFaceFaces | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check face-face connectivity.
Definition at line 1834 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, and Foam::reduce().
bool checkUpperTriangular | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check face ordering.
Definition at line 1285 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), forAll, SortableList::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::labelMax, Foam::reduce(), List::size(), and SortableList::sort().
bool checkClosedBoundary | ( | const bool | report = false | ) | const |
Check boundary for closedness.
Definition at line 79 of file primitiveMeshCheck.C.
References primitiveMesh::closedThreshold_, Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), primitiveMesh::faceAreas(), Foam::Info, Foam::mag(), primitiveMesh::nInternalFaces(), Foam::reduce(), and Vector< scalar >::zero.
bool checkClosedCells | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL , |
||
labelHashSet * | highAspectSetPtr = NULL |
||
) | const |
Check cells for closedness.
Definition at line 135 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMin(), Foam::cmptSum(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, Foam::nl, Foam::pow(), Foam::reduce(), and Vector< scalar >::zero.
bool checkFaceAreas | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check for negative face areas.
Definition at line 338 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), and Foam::reduce().
bool checkCellVolumes | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check for negative cell volumes.
Definition at line 397 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::gSum(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), and Foam::reduce().
bool checkFaceOrthogonality | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check for non-orthogonality.
Definition at line 464 of file primitiveMeshCheck.C.
References Foam::acos(), Foam::cos(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::constant::mathematical::pi(), Foam::reduce(), s(), and List::size().
bool checkFacePyramids | ( | const bool | report = false , |
const scalar | minPyrVol = -SMALL , |
||
labelHashSet * | setPtr = NULL |
||
) | const |
Check face pyramid volume.
Definition at line 585 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), p, points, and Foam::reduce().
bool checkFaceSkewness | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check face skewness.
Definition at line 669 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), p, Foam::constant::mathematical::pi(), points, and Foam::reduce().
bool checkFaceAngles | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check face angles.
Definition at line 892 of file primitiveMeshCheck.C.
References Foam::asin(), Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), p, Foam::constant::mathematical::pi(), points, Foam::reduce(), Foam::sin(), and List::size().
bool checkFaceFlatness | ( | const bool | report, |
labelHashSet * | setPtr | ||
) | const |
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 1020 of file primitiveMeshCheck.C.
References Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), n, p, points, Foam::reduce(), and List::size().
bool checkEdgeAlignment | ( | const bool | report, |
const Vector< label > & | directions, | ||
labelHashSet * | setPtr = NULL |
||
) | const |
Check edge alignment for 1D/2D cases.
Definition at line 1150 of file primitiveMeshCheck.C.
References Foam::e, Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, forAllConstIter(), Foam::Info, HashSet< Key, Hash >::insert(), HashTable::insert(), Foam::mag(), VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, p, points, HashTable::resize(), Foam::returnReduce(), and HashTable::size().
bool checkPoints | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check for unused points.
Definition at line 814 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), and Foam::reduce().
bool checkPointNearness | ( | const bool | report, |
const scalar | reportDistSqr, | ||
labelHashSet * | setPtr = NULL |
||
) | const |
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::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), points, Foam::reduce(), and Foam::sqrt().
bool checkEdgeLength | ( | const bool | report, |
const scalar | minLenSqr, | ||
labelHashSet * | setPtr = NULL |
||
) | const |
Check edge length.
Definition at line 31 of file primitiveMeshCheckEdgeLength.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), Foam::max(), Foam::min(), nPoints, points, Foam::reduce(), HashTable::size(), Foam::sqr(), Foam::sqrt(), and HashTable::transfer().
bool checkCellDeterminant | ( | const bool | report = false , |
labelHashSet * | setPtr = NULL |
||
) | const |
Check cell determinant.
Definition at line 1944 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::det(), Foam::e, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), Foam::reduce(), Foam::sqr(), and SymmTensor< scalar >::zero.
bool checkTopology | ( | const bool | report = false | ) | const |
Check mesh topology for correctness.
Returns false for no error.
Definition at line 2065 of file primitiveMeshCheck.C.
References Foam::polyMeshGenChecks::checkCellsZipUp(), Foam::polyMeshGenChecks::checkFaceVertices(), Foam::polyMeshGenChecks::checkPoints(), Foam::polyMeshGenChecks::checkUpperTriangular(), Foam::endl(), and Foam::Info.
bool checkGeometry | ( | const bool | report = false | ) | const |
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
Definition at line 2098 of file primitiveMeshCheck.C.
References Foam::polyMeshGenChecks::checkCellVolumes(), Foam::polyMeshGenChecks::checkClosedBoundary(), Foam::polyMeshGenChecks::checkClosedCells(), Foam::polyMeshGenChecks::checkFaceAreas(), Foam::polyMeshGenChecks::checkFacePyramids(), Foam::polyMeshGenChecks::checkFaceSkewness(), Foam::endl(), and Foam::Info.
bool checkMesh | ( | const bool | report = false | ) | const |
Check mesh for correctness. Returns false for no error.
Definition at line 2131 of file primitiveMeshCheck.C.
References Foam::checkGeometry(), Foam::checkTopology(), Foam::endl(), and Foam::Info.
Referenced by attachPolyTopoChanger::attach().
bool checkMeshMotion | ( | const pointField & | newPoints, |
const bool | report = false |
||
) | const |
Check mesh motion for correctness given motion points.
Definition at line 38 of file primitiveMeshCheckMotion.C.
References Foam::acos(), cells, cellVols, Foam::endl(), f(), forAll, Foam::mag(), Foam::min(), Foam::nl, Foam::constant::mathematical::pi(), Foam::Pout, s(), Foam::sum(), and WarningIn.
Is the point in the cell bounding box.
Definition at line 33 of file primitiveMeshFindCell.C.
References primitiveMesh::cells(), boundBox::contains(), primitiveMesh::faces(), p, and primitiveMesh::points().
Is the point in the cell.
Definition at line 44 of file primitiveMeshFindCell.C.
References cells, f(), forAll, and p.
Referenced by polyMesh::pointInCell().
Foam::label findNearestCell | ( | const point & | location | ) | const |
Find the cell with the nearest cell centre to location.
Definition at line 70 of file primitiveMeshFindCell.C.
References Foam::magSqr().
Referenced by mixerFvMesh::addZonesAndModifiers(), and nearestToCell::combine().
Foam::label findCell | ( | const point & | location | ) | const |
Find cell enclosing this location (-1 if not in mesh)
Definition at line 93 of file primitiveMeshFindCell.C.
References n.
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 32 of file primitiveMeshClear.C.
References primitiveMesh::ccPtr_, primitiveMesh::cellCentresPtr_, primitiveMesh::cellShapesPtr_, primitiveMesh::cellVolumesPtr_, primitiveMesh::cePtr_, primitiveMesh::cfPtr_, primitiveMesh::cpPtr_, primitiveMesh::ecPtr_, primitiveMesh::edgesPtr_, primitiveMesh::efPtr_, Foam::endl(), primitiveMesh::faceAreasPtr_, primitiveMesh::faceCentresPtr_, primitiveMesh::fePtr_, primitiveMesh::pcPtr_, primitiveMesh::pePtr_, primitiveMesh::pfPtr_, Foam::Pout, and primitiveMesh::ppPtr_.
|
inline |
Definition at line 76 of file primitiveMeshI.H.
References primitiveMesh::cellShapesPtr_.
|
inline |
Definition at line 82 of file primitiveMeshI.H.
References primitiveMesh::edgesPtr_.
|
inline |
Definition at line 88 of file primitiveMeshI.H.
References primitiveMesh::ccPtr_.
|
inline |
Definition at line 94 of file primitiveMeshI.H.
References primitiveMesh::ecPtr_.
|
inline |
Definition at line 100 of file primitiveMeshI.H.
References primitiveMesh::pcPtr_.
|
inline |
Definition at line 106 of file primitiveMeshI.H.
References primitiveMesh::cfPtr_.
|
inline |
Definition at line 112 of file primitiveMeshI.H.
References primitiveMesh::efPtr_.
|
inline |
Definition at line 118 of file primitiveMeshI.H.
References primitiveMesh::pfPtr_.
|
inline |
Definition at line 124 of file primitiveMeshI.H.
References primitiveMesh::cePtr_.
|
inline |
Definition at line 130 of file primitiveMeshI.H.
References primitiveMesh::fePtr_.
|
inline |
Definition at line 136 of file primitiveMeshI.H.
References primitiveMesh::pePtr_.
|
inline |
Definition at line 142 of file primitiveMeshI.H.
References primitiveMesh::ppPtr_.
|
inline |
Definition at line 148 of file primitiveMeshI.H.
References primitiveMesh::cpPtr_.
|
inline |
Definition at line 154 of file primitiveMeshI.H.
References primitiveMesh::cellCentresPtr_.
|
inline |
Definition at line 160 of file primitiveMeshI.H.
References primitiveMesh::faceCentresPtr_.
|
inline |
Definition at line 166 of file primitiveMeshI.H.
References primitiveMesh::cellVolumesPtr_.
|
inline |
Definition at line 172 of file primitiveMeshI.H.
References primitiveMesh::faceAreasPtr_.
const Foam::labelList & cellCells | ( | const label | cellI, |
dynamicLabelList & | storage | ||
) | const |
cellCells using cells.
Definition at line 112 of file primitiveMeshCellCells.C.
References List::append(), cells, List::clear(), and forAll.
const Foam::labelList & cellCells | ( | const label | cellI | ) | const |
Definition at line 151 of file primitiveMeshCellCells.C.
const Foam::labelList & cellPoints | ( | const label | cellI, |
dynamicLabelList & | storage | ||
) | const |
cellPoints using cells
Definition at line 59 of file primitiveMeshCellPoints.C.
References cells, List::clear(), f(), forAll, and forAllConstIter().
const Foam::labelList & cellPoints | ( | const label | cellI | ) | const |
Definition at line 101 of file primitiveMeshCellPoints.C.
const Foam::labelList & pointCells | ( | const label | pointI, |
dynamicLabelList & | storage | ||
) | const |
pointCells using pointFaces
Definition at line 120 of file primitiveMeshPointCells.C.
References forAll, n, pFaces, and Foam::sort().
const Foam::labelList & pointCells | ( | const label | pointI | ) | const |
Definition at line 174 of file primitiveMeshPointCells.C.
const Foam::labelList & pointPoints | ( | const label | pointI, |
dynamicLabelList & | storage | ||
) | const |
pointPoints using edges, pointEdges
Definition at line 103 of file primitiveMeshPointPoints.C.
References List::clear(), forAll, and List::size().
const Foam::labelList & pointPoints | ( | const label | pointI | ) | const |
Definition at line 135 of file primitiveMeshPointPoints.C.
const Foam::labelList & faceEdges | ( | const label | faceI, |
dynamicLabelList & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 389 of file primitiveMeshEdges.C.
References List::clear(), f(), forAll, and List::size().
const Foam::labelList & faceEdges | ( | const label | faceI | ) | const |
Definition at line 426 of file primitiveMeshEdges.C.
const Foam::labelList & edgeFaces | ( | const label | edgeI, |
dynamicLabelList & | storage | ||
) | const |
edgeFaces using pointFaces, edges, pointEdges
Definition at line 59 of file primitiveMeshEdgeFaces.C.
References List::clear(), Foam::e, and List::size().
const Foam::labelList & edgeFaces | ( | const label | edgeI | ) | const |
Definition at line 104 of file primitiveMeshEdgeFaces.C.
const Foam::labelList & edgeCells | ( | const label | edgeI, |
dynamicLabelList & | storage | ||
) | const |
edgeCells using pointFaces, edges, pointEdges
Definition at line 59 of file primitiveMeshEdgeCells.C.
References forAll.
const Foam::labelList & edgeCells | ( | const label | edgeI | ) | const |
Definition at line 128 of file primitiveMeshEdgeCells.C.
const Foam::labelList & cellEdges | ( | const label | cellI, |
dynamicLabelList & | storage | ||
) | const |
cellEdges using cells, pointFaces, edges, pointEdges
Definition at line 433 of file primitiveMeshEdges.C.
References cells, List::clear(), forAll, and forAllConstIter().
const Foam::labelList & cellEdges | ( | const label | cellI | ) | const |
Definition at line 475 of file primitiveMeshEdges.C.
void clearGeom | ( | ) |
Clear geometry.
Definition at line 126 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearGeom().
void clearAddressing | ( | ) |
Clear topological data.
Definition at line 142 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearAddressing().
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 171 of file primitiveMeshClear.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate cell shapes.
|
private |
Calculate cell-cell addressing.
|
private |
Calculate point-cell addressing.
|
private |
Calculate cell-face addressing.
|
private |
Calculate edge list.
|
private |
Calculate point-point addressing.
|
private |
Calculate edges, pointEdges and faceEdges (if doFaceEdges=true)
During edge calculation, a larger set of data is assembled. Create and destroy as a set, using clearOutEdges()
Definition at line 73 of file primitiveMeshEdges.C.
References Foam::abort(), Foam::e, primitiveMesh::edges(), primitiveMesh::edgesPerPoint_, primitiveMesh::edgesPtr_, Foam::endl(), f(), primitiveMesh::faceEdges(), primitiveMesh::faces(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::fePtr_, Foam::findIndex(), forAll, primitiveMesh::getEdge(), SortableList::indices(), Foam::inplaceRenumber(), primitiveMesh::nInternal0Edges_, primitiveMesh::nInternal1Edges_, primitiveMesh::nInternalEdges_, primitiveMesh::nInternalFaces_, primitiveMesh::nInternalPoints_, primitiveMesh::nPoints(), primitiveMesh::pePtr_, primitiveMesh::pointEdges(), primitiveMesh::points(), Foam::Pout, List::setSize(), DynamicList::shrink(), List::size(), SortableList::sort(), Foam::sort(), and List::transfer().
|
private |
|
staticprivate |
Helper: return (after optional creation) edge between two points.
Definition at line 36 of file primitiveMeshEdges.C.
References DynamicList::append(), Foam::constant::electromagnetic::e, and forAll.
|
staticprivate |
For on-the-fly addressing calculation.
|
protected |
Calculate face centres and areas.
|
protected |
|
protected |
Calculate cell centres and volumes.
|
protected |
|
protected |
Calculate edge vectors.
|
protected |
Check if all points on face are shared with another face.
|
protected |
Check that shared points are in consecutive order.
|
protected |
Check boundary for closedness.
Definition at line 46 of file primitiveMeshCheck.C.
References Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), Foam::Info, Foam::mag(), Foam::reduce(), and PackedList::size().
|
protected |
Check cells for closedness.
Definition at line 104 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().
|
protected |
Check for negative face areas.
Definition at line 238 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for negative cell volumes.
Definition at line 318 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::gSum(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for non-orthogonality.
Definition at line 390 of file primitiveMeshCheck.C.
References Foam::acos(), Foam::cos(), Foam::degToRad(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::min(), Foam::radToDeg(), Foam::reduce(), and Foam::sum().
|
protected |
Check face pyramid volume.
Definition at line 502 of file primitiveMeshCheck.C.
References cells, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::nl, points, Foam::Pout, and Foam::reduce().
|
protected |
Check face skewness.
Definition at line 606 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), points, and Foam::reduce().
|
protected |
Check face angles.
Definition at line 685 of file primitiveMeshCheck.C.
References Foam::asin(), Foam::degToRad(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), points, Foam::radToDeg(), Foam::reduce(), and Foam::sin().
|
protected |
Check face warpage.
Definition at line 767 of file primitiveMeshCheck.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), points, and Foam::reduce().
|
protected |
Check for concave cells by the planes of faces.
Definition at line 874 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), and Foam::reduce().
ClassName | ( | "primitiveMesh" | ) |
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Reset this primitiveMesh given the primitive array sizes.
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.
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
const Xfer< cellList > & | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Points not on boundary.
Definition at line 35 of file primitiveMeshI.H.
References primitiveMesh::nInternalPoints_.
Referenced by main().
|
inline |
Internal edges (i.e. not on boundary face) using.
no boundary point
Definition at line 47 of file primitiveMeshI.H.
References primitiveMesh::nEdges(), and primitiveMesh::nInternal0Edges_.
Referenced by main().
|
inline |
Internal edges using 0 or 1 boundary point.
Definition at line 55 of file primitiveMeshI.H.
References primitiveMesh::nEdges(), and primitiveMesh::nInternal1Edges_.
Referenced by main().
|
inline |
Internal edges using 0,1 or 2 boundary points.
Definition at line 63 of file primitiveMeshI.H.
References primitiveMesh::nEdges(), and primitiveMesh::nInternalEdges_.
Referenced by main().
|
pure virtual |
Return mesh points.
Implemented in polyMesh.
|
pure virtual |
Face face-owner addresing.
Implemented in polyMesh.
|
pure virtual |
Face face-neighbour addressing.
Implemented in polyMesh.
|
pure virtual |
Return old points for mesh motion.
Implemented in polyMesh.
const cellShapeList& cellShapes | ( | ) | const |
Return cell shapes.
const edgeList& edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
|
static |
Helper function to calculate cell-face addressing from.
face-cell addressing. If nCells is not provided it will scan for the maximum.
|
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, nPoints, List::setSize(), and List::size().
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 |
tmp<scalarField> movePoints | ( | const pointField & | p, |
const pointField & | oldP | ||
) |
Move points, returns volumes swept by faces in motion.
|
inline |
Return true if given face label is internal to the mesh.
|
virtual |
Check face ordering.
|
virtual |
Check cell zip-up.
|
virtual |
Check uniqueness of face vertices.
|
virtual |
Check for unused points.
|
virtual |
Check face-face connectivity.
|
virtual |
Check boundary for closedness.
|
virtual |
Check cells for closedness.
Definition at line 1731 of file primitiveMeshCheck.C.
References Foam::polyMeshGenChecks::checkClosedCells().
|
virtual |
Check for negative face areas.
|
virtual |
Check for negative cell volumes.
|
virtual |
Check for non-orthogonality.
Reimplemented in polyMesh.
|
virtual |
Check face pyramid volume.
|
virtual |
Check face skewness.
Reimplemented in polyMesh.
|
virtual |
Check face angles.
Definition at line 1836 of file primitiveMeshCheck.C.
References Foam::polyMeshGenChecks::checkFaceAngles(), and 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 1854 of file primitiveMeshCheck.C.
References Foam::polyMeshGenChecks::checkFaceFlatness(), and points.
|
virtual |
Check for point-point-nearness,.
e.g. colocated points which may be part of baffles.
|
virtual |
Check edge length.
|
virtual |
Check for concave cells by the planes of faces.
Definition at line 1873 of file primitiveMeshCheck.C.
|
virtual |
Check mesh topology for correctness.
Returns false for no error.
|
virtual |
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
|
virtual |
Check mesh for correctness. Returns false for no error.
|
static |
Set the closedness ratio warning threshold.
Definition at line 1985 of file primitiveMeshCheck.C.
|
static |
Set the aspect ratio warning threshold.
Definition at line 1994 of file primitiveMeshCheck.C.
|
static |
Set the non-orthogonality warning threshold in degrees.
Definition at line 2003 of file primitiveMeshCheck.C.
|
static |
Set the skewness warning threshold as percentage.
of the face area vector
Definition at line 2012 of file primitiveMeshCheck.C.
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(), boundBox::max(), boundBox::min(), p, points, and boundBox::span().
Find the cell with the nearest cell centre to location.
Find cell enclosing this location (-1 if not in mesh)
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const Foam::labelList & cellCells | ( | const label | cellI, |
DynamicList< label > & | storage | ||
) | const |
cellCells using cells.
Definition at line 112 of file primitiveMeshCellCells.C.
References DynamicList::append(), cells, DynamicList::clear(), and forAll.
const Foam::labelList & cellPoints | ( | const label | cellI, |
DynamicList< label > & | storage | ||
) | const |
cellPoints using cells
Definition at line 59 of file primitiveMeshCellPoints.C.
References DynamicList::append(), DynamicList::capacity(), cells, DynamicList::clear(), List::clear(), f(), forAll, forAllConstIter(), and DynamicList::setCapacity().
const Foam::labelList & pointCells | ( | const label | pointI, |
DynamicList< label > & | storage | ||
) | const |
pointCells using pointFaces
Definition at line 120 of file primitiveMeshPointCells.C.
References DynamicList::append(), DynamicList::clear(), forAll, n, pFaces, DynamicList::setSize(), and Foam::sort().
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::append(), DynamicList::capacity(), DynamicList::clear(), forAll, DynamicList::setCapacity(), and List::size().
const Foam::labelList & faceEdges | ( | const label | faceI, |
DynamicList< label > & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 581 of file primitiveMeshEdges.C.
References DynamicList::append(), DynamicList::capacity(), DynamicList::clear(), f(), forAll, DynamicList::setCapacity(), and List::size().
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::append(), DynamicList::clear(), Foam::e, and List::size().
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::append(), DynamicList::clear(), and forAll.
const Foam::labelList & cellEdges | ( | const label | cellI, |
DynamicList< label > & | storage | ||
) | const |
cellEdges using cells, pointFaces, edges, pointEdges
Definition at line 625 of file primitiveMeshEdges.C.
References DynamicList::append(), DynamicList::capacity(), cells, DynamicList::clear(), List::clear(), forAll, forAllConstIter(), and DynamicList::setCapacity().
void clearGeom | ( | ) |
Clear geometry.
void clearAddressing | ( | ) |
Clear topological data.
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
|
private |
Number of points.
Definition at line 86 of file primitiveMesh.H.
Referenced by primitiveMesh::nPoints().
|
mutableprivate |
Number of edges.
Definition at line 89 of file primitiveMesh.H.
Referenced by primitiveMesh::nEdges().
|
private |
Number of internal faces.
Definition at line 92 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), and primitiveMesh::nInternalFaces().
|
private |
Number of faces.
Definition at line 95 of file primitiveMesh.H.
Referenced by primitiveMesh::nFaces().
|
private |
Number of cells.
Definition at line 98 of file primitiveMesh.H.
Referenced by primitiveMesh::nCells().
|
mutableprivate |
Cell shapes.
Definition at line 104 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCellShapes(), primitiveMesh::hasCellShapes(), and primitiveMesh::printAllocated().
|
mutableprivate |
Edges are ordered in upper triangular order.
Edges.
Note: inconsistency with 1.6.x to re-instate parallelisation of point-based operations HJ, 9/Jul/2010
Definition at line 110 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), primitiveMesh::hasEdges(), and primitiveMesh::printAllocated().
|
mutableprivate |
Cell-cells.
Definition at line 116 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCellCells(), primitiveMesh::hasCellCells(), and primitiveMesh::printAllocated().
|
mutableprivate |
Edge-cells.
Definition at line 119 of file primitiveMesh.H.
Referenced by primitiveMesh::edgeCells(), primitiveMesh::hasEdgeCells(), and primitiveMesh::printAllocated().
|
mutableprivate |
Point-cells.
Definition at line 122 of file primitiveMesh.H.
Referenced by primitiveMesh::calcPointCells(), primitiveMesh::hasPointCells(), and primitiveMesh::printAllocated().
|
mutableprivate |
Cell-faces.
Definition at line 125 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCells(), primitiveMesh::hasCells(), and primitiveMesh::printAllocated().
|
mutableprivate |
Edge-faces.
Definition at line 128 of file primitiveMesh.H.
Referenced by primitiveMesh::edgeFaces(), primitiveMesh::hasEdgeFaces(), and primitiveMesh::printAllocated().
|
mutableprivate |
Point-faces.
Definition at line 131 of file primitiveMesh.H.
Referenced by primitiveMesh::hasPointFaces(), primitiveMesh::pointFaces(), and primitiveMesh::printAllocated().
|
mutableprivate |
Cell-edges.
Definition at line 134 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCellEdges(), primitiveMesh::hasCellEdges(), and primitiveMesh::printAllocated().
|
mutableprivate |
Face-edges.
Definition at line 137 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), primitiveMesh::hasFaceEdges(), and primitiveMesh::printAllocated().
|
mutableprivate |
Point-edges.
Definition at line 140 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), primitiveMesh::calcPointEdges(), primitiveMesh::hasPointEdges(), primitiveMesh::pointEdges(), and primitiveMesh::printAllocated().
|
mutableprivate |
Point-points.
Definition at line 143 of file primitiveMesh.H.
Referenced by primitiveMesh::calcPointPoints(), primitiveMesh::hasPointPoints(), and primitiveMesh::printAllocated().
|
mutableprivate |
Cell-points.
Definition at line 146 of file primitiveMesh.H.
Referenced by primitiveMesh::cellPoints(), primitiveMesh::hasCellPoints(), and primitiveMesh::printAllocated().
|
mutableprivate |
Temporary storage for addressing.
Definition at line 152 of file primitiveMesh.H.
|
mutableprivate |
Temporary storage for addressing.
Definition at line 155 of file primitiveMesh.H.
|
mutableprivate |
Cell centres.
Definition at line 161 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCellCentresAndVols(), primitiveMesh::hasCellCentres(), and primitiveMesh::printAllocated().
|
mutableprivate |
Face centres.
Definition at line 164 of file primitiveMesh.H.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), primitiveMesh::hasFaceCentres(), and primitiveMesh::printAllocated().
|
mutableprivate |
Cell volumes.
Definition at line 167 of file primitiveMesh.H.
Referenced by primitiveMesh::calcCellCentresAndVols(), primitiveMesh::hasCellVolumes(), and primitiveMesh::printAllocated().
|
mutableprivate |
Face areas.
Definition at line 170 of file primitiveMesh.H.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), primitiveMesh::hasFaceAreas(), and primitiveMesh::printAllocated().
|
static |
Estimated number of cells per edge.
Definition at line 291 of file primitiveMesh.H.
|
static |
Estimated number of cells per point.
Definition at line 294 of file primitiveMesh.H.
|
static |
Estimated number of faces per cell.
Definition at line 297 of file primitiveMesh.H.
Referenced by layerAdditionRemoval::addCellLayer(), slidingInterface::calcAttachedAddressing(), and layerAdditionRemoval::removeCellLayer().
|
static |
Estimated number of faces per edge.
Definition at line 300 of file primitiveMesh.H.
|
static |
Estimated number of faces per point.
Definition at line 303 of file primitiveMesh.H.
Referenced by enrichedPatch::calcMasterPointFaces(), and layerAdditionRemoval::removeCellLayer().
|
static |
Estimated number of edges per cell.
Definition at line 306 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 309 of file primitiveMesh.H.
Referenced by slidingInterface::coupleInterface(), and slidingInterface::projectPoints().
|
static |
Estimated number of edges per point.
Definition at line 312 of file primitiveMesh.H.
Referenced by enrichedPatch::calcCutFaces(), and primitiveMesh::calcEdges().
|
static |
Estimated number of points per cell.
Definition at line 315 of file primitiveMesh.H.
|
static |
Estimated number of points per face.
Definition at line 318 of file primitiveMesh.H.
Referenced by slidingInterface::projectPoints().
|
static |
Static data to control mesh checking.
Cell closedness warning threshold
set as the fraction of un-closed area to closed area
Definition at line 324 of file primitiveMesh.H.
Referenced by primitiveMesh::checkClosedBoundary().
|
static |
Aspect ratio warning threshold.
Definition at line 327 of file primitiveMesh.H.
|
static |
Non-orthogonality warning threshold in deg.
Definition at line 330 of file primitiveMesh.H.
|
static |
Skewness warning threshold.
Definition at line 333 of file primitiveMesh.H.
|
static |
Face angle threshold.
Definition at line 336 of file primitiveMesh.H.
|
static |
Face flatness threshold.
Definition at line 339 of file primitiveMesh.H.
|
private |
Number of internal points (or -1 if points not sorted)
Definition at line 81 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), and primitiveMesh::nInternalPoints().
|
mutableprivate |
Number of internal edges using 0 boundary points.
Definition at line 87 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), and primitiveMesh::nInternal0Edges().
|
mutableprivate |
Number of internal edges using 0 or 1 boundary points.
Definition at line 90 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), and primitiveMesh::nInternal1Edges().
|
mutableprivate |
Number of internal edges using 0,1 or 2boundary points.
Definition at line 93 of file primitiveMesh.H.
Referenced by primitiveMesh::calcEdges(), and primitiveMesh::nInternalEdges().
|
mutableprivate |
Temporary storage for addressing.
Definition at line 156 of file primitiveMesh.H.
|
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 234 of file primitiveMesh.H.
|
staticprotected |
Aspect ratio warning threshold.
Definition at line 237 of file primitiveMesh.H.
|
staticprotected |
Non-orthogonality warning threshold in deg.
Definition at line 240 of file primitiveMesh.H.
|
staticprotected |
Skewness warning threshold.
Definition at line 243 of file primitiveMesh.H.
|
staticprotected |
Threshold where faces are considered coplanar.
Definition at line 246 of file primitiveMesh.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.