|
NeoN
A framework for CFD software
|
Represents an unstructured mesh in NeoN. More...
#include <unstructuredMesh.hpp>
Public Member Functions | |
| UnstructuredMesh (Executor exec, vectorVector points, scalarVector cellVolumes, vectorVector cellCenters, vectorVector faceNormals, vectorVector faceCenters, scalarVector faceAreas, labelVector faceOwners, labelVector faceNeighbors, BoundaryMesh boundaryMesh) | |
| Constructor for the UnstructuredMesh class. | |
| UnstructuredMesh (vectorVector points, scalarVector cellVolumes, vectorVector cellCenters, vectorVector faceNormals, vectorVector faceCenters, scalarVector faceAreas, labelVector faceOwners, labelVector faceNeighbors, BoundaryMesh boundaryMesh) | |
| Constructor for the UnstructuredMesh class. | |
| const vectorVector & | points () const |
| Get the field of mesh points. | |
| vectorVector & | points () |
| const scalarVector & | cellVolumes () const |
| Get the field of cell volumes in the mesh. | |
| scalarVector & | cellVolumes () |
| const vectorVector & | cellCenters () const |
| Get the field of cell centers in the mesh. | |
| vectorVector & | cellCenters () |
| const vectorVector & | faceCenters () const |
| Get the field of face centers. | |
| vectorVector & | faceCenters () |
| const vectorVector & | faceNormals () const |
| Get the field of face normal vectors. | |
| vectorVector & | faceNormals () |
| const scalarVector & | faceAreas () const |
| Get the field of face areas. | |
| scalarVector & | faceAreas () |
| const labelVector & | faceOwners () const |
| Get the list of labels of face owner cells. | |
| labelVector & | faceOwners () |
| const labelVector & | faceNeighbors () const |
| Get the list of labels of face neighbor cells. | |
| labelVector & | faceNeighbors () |
| sizeType | nCells () const |
| Get the number of cells in the mesh. | |
| sizeType | nInternalFaces () const |
| Get the number of internal faces in the mesh. | |
| sizeType | nBoundaryFaces () const |
| Get the number of boundary faces in the mesh. | |
| sizeType | nTotalFaces () const |
| Get the total number of faces including boundary and processor faces in the mesh. | |
| sizeType | nBoundaries () const |
| Get the number of boundaries patches in the mesh. | |
| sizeType | nProcBoundaryFaces () const |
| Get the number of processor-boundary faces (inter-rank faces). | |
| localIdx | globalOffset () const |
| the offset local cellIds for the global mesh. | |
| const BoundaryMesh & | boundaryMesh () const |
| Get the boundary mesh. | |
| BoundaryMesh & | boundaryMesh () |
| Dictionary & | stencilDB () const |
| Get the stencil data base. | |
| const Executor & | exec () const |
| Get the executor. | |
Represents an unstructured mesh in NeoN.
The UnstructuredMesh class stores the data and provides access to the properties of an unstructured mesh. It contains information such as mesh points, cell volumes, cell centers, face areas, face centers, face owner cells, face neighbour cells, and boundary information. It also provides methods to retrieve the number of cells, internal faces, boundary faces, boundaries, and faces in the mesh. Additionally, it includes a boundary mesh and a stencil data base. The executor is used to run parallel operations on the mesh.
Definition at line 31 of file unstructuredMesh.hpp.
| NeoN::UnstructuredMesh::UnstructuredMesh | ( | Executor | exec, |
| vectorVector | points, | ||
| scalarVector | cellVolumes, | ||
| vectorVector | cellCenters, | ||
| vectorVector | faceNormals, | ||
| vectorVector | faceCenters, | ||
| scalarVector | faceAreas, | ||
| labelVector | faceOwners, | ||
| labelVector | faceNeighbors, | ||
| BoundaryMesh | boundaryMesh ) |
Constructor for the UnstructuredMesh class.
| exec | |
| points | The field of mesh points. |
| cellVolumes | The field of cell volumes in the mesh. |
| cellCenters | The field of cell centers in the mesh. |
| faceNormals | The field of face normal vectors. |
| faceCenters | The field of face centers. |
| faceAreas | The field of face areas. |
| faceOwners | The list of labels of face owner cells. |
| faceNeighbors | The list of labels of face neighbor cells. |
| boundaryMesh | The boundary mesh. |
| NeoN::UnstructuredMesh::UnstructuredMesh | ( | vectorVector | points, |
| scalarVector | cellVolumes, | ||
| vectorVector | cellCenters, | ||
| vectorVector | faceNormals, | ||
| vectorVector | faceCenters, | ||
| scalarVector | faceAreas, | ||
| labelVector | faceOwners, | ||
| labelVector | faceNeighbors, | ||
| BoundaryMesh | boundaryMesh ) |
Constructor for the UnstructuredMesh class.
| points | The field of mesh points. |
| cellVolumes | The field of cell volumes in the mesh. |
| cellCenters | The field of cell centers in the mesh. |
| faceNormals | The field of face normal vectors. |
| faceCenters | The field of face centers. |
| faceAreas | The field of face areas. |
| faceOwners | The list of labels of face owner cells. |
| faceNeighbors | The list of labels of face neighbor cells. |
| boundaryMesh | The boundary mesh. |
|
inline |
Definition at line 210 of file unstructuredMesh.hpp.
|
inline |
Get the boundary mesh.
Definition at line 209 of file unstructuredMesh.hpp.
|
inline |
Definition at line 110 of file unstructuredMesh.hpp.
|
inline |
Get the field of cell centers in the mesh.
Definition at line 109 of file unstructuredMesh.hpp.
|
inline |
Definition at line 102 of file unstructuredMesh.hpp.
|
inline |
Get the field of cell volumes in the mesh.
Definition at line 101 of file unstructuredMesh.hpp.
|
inline |
|
inline |
Definition at line 134 of file unstructuredMesh.hpp.
|
inline |
Get the field of face areas.
Definition at line 133 of file unstructuredMesh.hpp.
|
inline |
Definition at line 118 of file unstructuredMesh.hpp.
|
inline |
Get the field of face centers.
Definition at line 117 of file unstructuredMesh.hpp.
|
inline |
Definition at line 150 of file unstructuredMesh.hpp.
|
inline |
Get the list of labels of face neighbor cells.
Definition at line 149 of file unstructuredMesh.hpp.
|
inline |
Definition at line 126 of file unstructuredMesh.hpp.
|
inline |
Get the field of face normal vectors.
Definition at line 125 of file unstructuredMesh.hpp.
|
inline |
Definition at line 142 of file unstructuredMesh.hpp.
|
inline |
Get the list of labels of face owner cells.
Definition at line 141 of file unstructuredMesh.hpp.
|
inline |
the offset local cellIds for the global mesh.
Definition at line 202 of file unstructuredMesh.hpp.
|
inline |
Get the number of boundaries patches in the mesh.
Definition at line 188 of file unstructuredMesh.hpp.
|
inline |
Get the number of boundary faces in the mesh.
Definition at line 171 of file unstructuredMesh.hpp.
|
inline |
Get the number of cells in the mesh.
Definition at line 157 of file unstructuredMesh.hpp.
|
inline |
Get the number of internal faces in the mesh.
Definition at line 164 of file unstructuredMesh.hpp.
|
inline |
Get the number of processor-boundary faces (inter-rank faces).
Returns 0 for single-process runs.
Definition at line 195 of file unstructuredMesh.hpp.
|
inline |
Get the total number of faces including boundary and processor faces in the mesh.
Definition at line 178 of file unstructuredMesh.hpp.
|
inline |
Definition at line 94 of file unstructuredMesh.hpp.
|
inline |
Get the field of mesh points.
Definition at line 93 of file unstructuredMesh.hpp.
|
inline |
Get the stencil data base.
Definition at line 217 of file unstructuredMesh.hpp.