NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::UnstructuredMesh Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ UnstructuredMesh() [1/2]

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.

Parameters
exec
pointsThe field of mesh points.
cellVolumesThe field of cell volumes in the mesh.
cellCentersThe field of cell centers in the mesh.
faceNormalsThe field of face normal vectors.
faceCentersThe field of face centers.
faceAreasThe field of face areas.
faceOwnersThe list of labels of face owner cells.
faceNeighborsThe list of labels of face neighbor cells.
boundaryMeshThe boundary mesh.

◆ UnstructuredMesh() [2/2]

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.

Note
executor is determined from faceOwners
Parameters
pointsThe field of mesh points.
cellVolumesThe field of cell volumes in the mesh.
cellCentersThe field of cell centers in the mesh.
faceNormalsThe field of face normal vectors.
faceCentersThe field of face centers.
faceAreasThe field of face areas.
faceOwnersThe list of labels of face owner cells.
faceNeighborsThe list of labels of face neighbor cells.
boundaryMeshThe boundary mesh.

Member Function Documentation

◆ boundaryMesh() [1/2]

BoundaryMesh & NeoN::UnstructuredMesh::boundaryMesh ( )
inline

Definition at line 210 of file unstructuredMesh.hpp.

◆ boundaryMesh() [2/2]

const BoundaryMesh & NeoN::UnstructuredMesh::boundaryMesh ( ) const
inline

Get the boundary mesh.

Returns
The boundary mesh.

Definition at line 209 of file unstructuredMesh.hpp.

◆ cellCenters() [1/2]

vectorVector & NeoN::UnstructuredMesh::cellCenters ( )
inline

Definition at line 110 of file unstructuredMesh.hpp.

◆ cellCenters() [2/2]

const vectorVector & NeoN::UnstructuredMesh::cellCenters ( ) const
inline

Get the field of cell centers in the mesh.

Returns
The field of cell centers in the mesh.

Definition at line 109 of file unstructuredMesh.hpp.

◆ cellVolumes() [1/2]

scalarVector & NeoN::UnstructuredMesh::cellVolumes ( )
inline

Definition at line 102 of file unstructuredMesh.hpp.

◆ cellVolumes() [2/2]

const scalarVector & NeoN::UnstructuredMesh::cellVolumes ( ) const
inline

Get the field of cell volumes in the mesh.

Returns
The field of cell volumes in the mesh.

Definition at line 101 of file unstructuredMesh.hpp.

◆ exec()

const Executor & NeoN::UnstructuredMesh::exec ( ) const
inline

Get the executor.

Returns
The executor.

Definition at line 224 of file unstructuredMesh.hpp.

◆ faceAreas() [1/2]

scalarVector & NeoN::UnstructuredMesh::faceAreas ( )
inline

Definition at line 134 of file unstructuredMesh.hpp.

◆ faceAreas() [2/2]

const scalarVector & NeoN::UnstructuredMesh::faceAreas ( ) const
inline

Get the field of face areas.

Returns
The field of face areas.

Definition at line 133 of file unstructuredMesh.hpp.

◆ faceCenters() [1/2]

vectorVector & NeoN::UnstructuredMesh::faceCenters ( )
inline

Definition at line 118 of file unstructuredMesh.hpp.

◆ faceCenters() [2/2]

const vectorVector & NeoN::UnstructuredMesh::faceCenters ( ) const
inline

Get the field of face centers.

Returns
The field of face centers.

Definition at line 117 of file unstructuredMesh.hpp.

◆ faceNeighbors() [1/2]

labelVector & NeoN::UnstructuredMesh::faceNeighbors ( )
inline

Definition at line 150 of file unstructuredMesh.hpp.

◆ faceNeighbors() [2/2]

const labelVector & NeoN::UnstructuredMesh::faceNeighbors ( ) const
inline

Get the list of labels of face neighbor cells.

Returns
The list of labels of face neighbor cells.

Definition at line 149 of file unstructuredMesh.hpp.

◆ faceNormals() [1/2]

vectorVector & NeoN::UnstructuredMesh::faceNormals ( )
inline

Definition at line 126 of file unstructuredMesh.hpp.

◆ faceNormals() [2/2]

const vectorVector & NeoN::UnstructuredMesh::faceNormals ( ) const
inline

Get the field of face normal vectors.

Returns
The field of face normal vectors.

Definition at line 125 of file unstructuredMesh.hpp.

◆ faceOwners() [1/2]

labelVector & NeoN::UnstructuredMesh::faceOwners ( )
inline

Definition at line 142 of file unstructuredMesh.hpp.

◆ faceOwners() [2/2]

const labelVector & NeoN::UnstructuredMesh::faceOwners ( ) const
inline

Get the list of labels of face owner cells.

Returns
The list of labels of face owner cells.

Definition at line 141 of file unstructuredMesh.hpp.

◆ globalOffset()

localIdx NeoN::UnstructuredMesh::globalOffset ( ) const
inline

the offset local cellIds for the global mesh.

Returns
the global offset

Definition at line 202 of file unstructuredMesh.hpp.

◆ nBoundaries()

sizeType NeoN::UnstructuredMesh::nBoundaries ( ) const
inline

Get the number of boundaries patches in the mesh.

Returns
The number of boundaries in the mesh.

Definition at line 188 of file unstructuredMesh.hpp.

◆ nBoundaryFaces()

sizeType NeoN::UnstructuredMesh::nBoundaryFaces ( ) const
inline

Get the number of boundary faces in the mesh.

Returns
The number of boundary faces in the mesh.

Definition at line 171 of file unstructuredMesh.hpp.

◆ nCells()

sizeType NeoN::UnstructuredMesh::nCells ( ) const
inline

Get the number of cells in the mesh.

Returns
The number of cells in the mesh.

Definition at line 157 of file unstructuredMesh.hpp.

◆ nInternalFaces()

sizeType NeoN::UnstructuredMesh::nInternalFaces ( ) const
inline

Get the number of internal faces in the mesh.

Returns
The number of internal faces in the mesh.

Definition at line 164 of file unstructuredMesh.hpp.

◆ nProcBoundaryFaces()

sizeType NeoN::UnstructuredMesh::nProcBoundaryFaces ( ) const
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.

◆ nTotalFaces()

sizeType NeoN::UnstructuredMesh::nTotalFaces ( ) const
inline

Get the total number of faces including boundary and processor faces in the mesh.

Returns
The total number of faces in the mesh.

Definition at line 178 of file unstructuredMesh.hpp.

◆ points() [1/2]

vectorVector & NeoN::UnstructuredMesh::points ( )
inline

Definition at line 94 of file unstructuredMesh.hpp.

◆ points() [2/2]

const vectorVector & NeoN::UnstructuredMesh::points ( ) const
inline

Get the field of mesh points.

Returns
The field of mesh points.

Definition at line 93 of file unstructuredMesh.hpp.

◆ stencilDB()

Dictionary & NeoN::UnstructuredMesh::stencilDB ( ) const
inline

Get the stencil data base.

Returns
The stencil data base.

Definition at line 217 of file unstructuredMesh.hpp.


The documentation for this class was generated from the following file: