![]() |
|
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 | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness. | |
bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=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 | checkFaceDotProduct (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 | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face ordering. | |
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 | checkFloatingCells (const bool report=false, labelHashSet *setPtr=NULL) const |
Check unconnected cells. | |
bool | checkTopology (const bool report=false) const |
Check mesh topology for correctness. Returns false for no error. | |
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. | |
boundBox | bounds () const |
Return mesh bounding box. | |
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 | |
void | calcCells (cellList &, const unallocLabelList &own, const unallocLabelList &nei, const label nCells=-1) |
Helper function to calculate cell-face addressing from. | |
scalar | setOrthWarn (const scalar) |
Set the non-orthogonality warning threshold in degrees. | |
scalar | setSkewWarn (const scalar) |
Set the skewness warning threshold as percentage. | |
scalar | setAspectWarn (const scalar) |
Set the aspect ratio warning threshold. | |
Static Public Attributes | |
const unsigned | cellsPerEdge_ = 4 |
Estimated number of cells per edge. | |
const unsigned | cellsPerPoint_ = 8 |
Estimated number of cells per point. | |
const unsigned | facesPerCell_ = 6 |
Estimated number of faces per cell. | |
const unsigned | facesPerEdge_ = 4 |
Estimated number of faces per edge. | |
const unsigned | facesPerPoint_ = 12 |
Estimated number of faces per point. | |
const unsigned | edgesPerCell_ = 12 |
Estimated number of edges per cell. | |
const unsigned | edgesPerFace_ = 4 |
Estimated number of edges per cell. | |
const unsigned | edgesPerPoint_ = 6 |
Estimated number of edges per point. | |
const unsigned | pointsPerCell_ = 8 |
Estimated number of points per cell. | |
const unsigned | pointsPerFace_ = 4 |
Estimated number of points per face. | |
const scalar | closedTolerance_ |
Tolerance for mesh and cell closedness. | |
Protected Member Functions | |
primitiveMesh () | |
Construct null. |
|
Construct null.
|
|
Construct from components.
|
|
|
|
Return mesh bounding box.
Definition at line 653 of file primitiveMesh.H. |
|
Helper function to calculate cell-face addressing from. face-cell addressing. If nCells is not provided it will scan for the maximum. |
|
|
|
|
|
|
|
|
|
|
|
Return cell shapes.
|
|
|
|
Check cell zip-up.
|
|
Check for negative cell volumes.
|
|
Check boundary for closedness.
|
|
Check cells for closedness.
|
|
Check face angles.
|
|
Check for negative face areas.
|
|
Check for non-orthogonality.
|
|
Check face-face connectivity.
|
|
Check face warpage: decompose face and check ratio between. magnitude of sum of triangle areas and sum of magnitude of triangle areas. |
|
Check face pyramid volume.
|
|
Check face skewness.
|
|
Check uniqueness of face vertices.
|
|
Check unconnected cells.
|
|
Check mesh geometry (& implicitly topology) for correctness. Returns false for no error. |
|
Check mesh for correctness. Returns false for no error.
|
|
Check mesh motion for correctness given motion points.
|
|
Check for unused points.
|
|
Check mesh topology for correctness. Returns false for no error.
|
|
Check face ordering.
|
|
|
|
Clear topological data.
Reimplemented in polyMesh. |
|
Clear everyting primitive, geometry and addressing.
|
|
Clear geometry.
Reimplemented in polyMesh. |
|
Clear all geometry and addressing unnecessary for CFD.
Reimplemented in polyMesh. |
|
Clear primitive data. Access to points and faces. will be denied Reimplemented in polyMesh. |
|
|
|
|
|
Return mesh edges.
Referenced by primitiveMesh::nPoints(), and pointEdgePoint::updateEdge(). |
|
|
|
Referenced by wallPoint::updateFace(). |
|
|
|
Face neighbour addressing.
Definition at line 85 of file primitiveMeshI.H. |
|
Face owner addresing.
Definition at line 79 of file primitiveMeshI.H. Referenced by centreEdge::interpolate(). |
|
Return faces.
Referenced by diagonalEdge::faceIndex1(). |
|
Find cell enclosing this location (-1 if not in mesh).
|
|
Find the cell with the nearest cell centre to location.
|
|
Return true if given face label is internal to the mesh.
Definition at line 91 of file primitiveMeshI.H. |
|
Move points, returns volumes swept by faces in motion.
|
|
Definition at line 73 of file primitiveMeshI.H. Referenced by pointMesh::nPoints(), elementMesh::size(), and volMesh::size(). |
|
Definition at line 50 of file primitiveMeshI.H. |
|
Definition at line 67 of file primitiveMeshI.H. Referenced by areaMesh::size(). |
|
Definition at line 61 of file primitiveMeshI.H. Referenced by surfaceMesh::size(). |
|
Definition at line 44 of file primitiveMeshI.H. References primitiveMesh::edges(), and UList::size(). Referenced by edgeVertex::isEdge(), tetPointMesh::size(), and pointMesh::size(). |
Here is the call graph for this function:
|
Return old points.
|
|
|
|
|
|
|
|
Is the point in the cell.
|
|
Is the point in the cell bounding box.
|
|
|
|
Return mesh points.
Referenced by pointEdgePoint::updateEdge(), and pointEdgePoint::updatePoint(). |
|
Print a list of all the currently allocated mesh data.
|
|
Reset this primitiveMesh given a complete set of data and cells.
|
|
Reset this primitiveMesh given a complete set of data.
|
|
Set the aspect ratio warning threshold.
|
|
Set the non-orthogonality warning threshold in degrees.
|
|
Set the skewness warning threshold as percentage. of the face area vector |
|
Estimated number of cells per edge.
Definition at line 325 of file primitiveMesh.H. |
|
Estimated number of cells per point.
Definition at line 328 of file primitiveMesh.H. |
|
Tolerance for mesh and cell closedness.
Definition at line 355 of file primitiveMesh.H. |
|
Estimated number of edges per cell.
Definition at line 340 of file primitiveMesh.H. |
|
Estimated number of edges per cell.
Definition at line 343 of file primitiveMesh.H. |
|
Estimated number of edges per point.
Definition at line 346 of file primitiveMesh.H. |
|
Estimated number of faces per cell.
Definition at line 331 of file primitiveMesh.H. |
|
Estimated number of faces per edge.
Definition at line 334 of file primitiveMesh.H. |
|
Estimated number of faces per point.
Definition at line 337 of file primitiveMesh.H. |
|
Estimated number of points per cell.
Definition at line 349 of file primitiveMesh.H. |
|
Estimated number of points per face.
Definition at line 352 of file primitiveMesh.H. |