|
Public Member Functions |
| | ClassName ("primitiveMesh") |
| | primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const pointField &points, const faceList &faces, const labelList &faceOwner, const labelList &faceNeighbour) |
| | Construct from components.
|
| virtual | ~primitiveMesh () |
| void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const pointField &points, const faceList &faces, const labelList &faceOwner, const labelList &faceNeighbour) |
| | Reset this primitiveMesh given a complete set of data.
|
| void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const pointField &points, const faceList &faces, const labelList &faceOwner, const labelList &faceNeighbour, cellList &cells) |
| | Reset this primitiveMesh given a complete set of data and cells.
|
| label | nPoints () const |
| label | nEdges () const |
| label | nInternalFaces () const |
| label | nFaces () const |
| label | nCells () const |
| const pointField & | points () const |
| | Return mesh points.
|
| const faceList & | faces () const |
| | Return faces.
|
| const labelList & | faceOwner () const |
| | Face owner addresing.
|
| const labelList & | faceNeighbour () const |
| | Face neighbour addressing.
|
| const cellShapeList & | cellShapes () const |
| | Return cell shapes.
|
| const edgeList & | edges () const |
| | Return mesh edges.
|
| const pointField & | oldPoints () const |
| | Return old points.
|
| 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.
|
| bool | isInternalFace (const label faceIndex) const |
| | Return true if given face label is internal to the mesh.
|
| bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check cell zip-up.
|
| bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check uniqueness of face vertices.
|
| bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check face-face connectivity.
|
| bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check face ordering.
|
| bool | checkClosedBoundary (const bool report=false) const |
| | Check boundary for closedness.
|
| bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=NULL, labelHashSet *highAspectSetPtr=NULL) const |
| | Check cells for closedness.
|
| bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check for negative face areas.
|
| bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check for negative cell volumes.
|
| bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check for non-orthogonality.
|
| bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL) const |
| | Check face pyramid volume.
|
| bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check face skewness.
|
| bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=NULL) const |
| | Check face angles.
|
| bool | checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
| | Check face warpage: decompose face and check ratio between.
|
| bool | checkPoints (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check for unused points.
|
| bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=NULL) const |
| | Check for point-point-nearness,.
|
| bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const |
| | Check edge length.
|
| bool | checkCellDeterminant (const bool report=false, labelHashSet *setPtr=NULL) const |
| | Check cell determinant.
|
| bool | checkTopology (const bool report=false) const |
| | Check mesh topology for correctness.
|
| bool | checkGeometry (const bool report=false) const |
| | Check mesh geometry (& implicitly topology) for correctness.
|
| bool | checkMesh (const bool report=false) const |
| | Check mesh for correctness. Returns false for no error.
|
| bool | checkMeshMotion (const pointField &newPoints, const bool report=false) const |
| | Check mesh motion for correctness given motion points.
|
| bool | pointInCellBB (const point &p, label celli) const |
| | Is the point in the cell bounding box.
|
| bool | pointInCell (const point &p, label celli) const |
| | Is the point in the cell.
|
| label | findNearestCell (const point &location) const |
| | Find the cell with the nearest cell centre to location.
|
| label | findCell (const point &location) const |
| | Find cell enclosing this location (-1 if not in mesh).
|
| void | printAllocated () const |
| | Print a list of all the currently allocated mesh data.
|
| void | clearGeom () |
| | Clear geometry.
|
| void | clearAddressing () |
| | Clear topological data.
|
| void | clearOut () |
| | Clear all geometry and addressing unnecessary for CFD.
|
| void | clearPrimitives () |
| | Clear primitive data. Access to points and faces.
|
| void | clearAll () |
| | Clear everyting primitive, geometry and addressing.
|
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.
|
| static scalar | setClosedThreshold (const scalar) |
| | Set the closedness ratio warning threshold.
|
| static scalar | setAspectThreshold (const scalar) |
| | Set the aspect ratio warning threshold.
|
| static scalar | setNonOrthThreshold (const scalar) |
| | Set the non-orthogonality warning threshold in degrees.
|
| static scalar | setSkewThreshold (const scalar) |
| | Set the skewness warning threshold as percentage.
|
Static Public Attributes |
| static const unsigned | cellsPerEdge_ = 4 |
| | Estimated number of cells per edge.
|
| static const unsigned | cellsPerPoint_ = 8 |
| | Estimated number of cells per point.
|
| static const unsigned | facesPerCell_ = 6 |
| | Estimated number of faces per cell.
|
| static const unsigned | facesPerEdge_ = 4 |
| | Estimated number of faces per edge.
|
| static const unsigned | facesPerPoint_ = 12 |
| | Estimated number of faces per point.
|
| static const unsigned | edgesPerCell_ = 12 |
| | Estimated number of edges per cell.
|
| static const unsigned | edgesPerFace_ = 4 |
| | Estimated number of edges per cell.
|
| static const unsigned | edgesPerPoint_ = 6 |
| | Estimated number of edges per point.
|
| static const unsigned | pointsPerCell_ = 8 |
| | Estimated number of points per cell.
|
| static const unsigned | pointsPerFace_ = 4 |
| | Estimated number of points per face.
|
Protected Member Functions |
| | primitiveMesh () |
| | Construct null.
|