NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
Represents an unstructured mesh in NeoFOAM. More...
#include <unstructuredMesh.hpp>
Public Member Functions | |
UnstructuredMesh (vectorField points, scalarField cellVolumes, vectorField cellCentres, vectorField faceAreas, vectorField faceCentres, scalarField magFaceAreas, labelField faceOwner, labelField faceNeighbour, size_t nCells, size_t nInternalFaces, size_t nBoundaryFaces, size_t nBoundaries, size_t nFaces, BoundaryMesh boundaryMesh) | |
Constructor for the UnstructuredMesh class. | |
const vectorField & | points () const |
Get the field of mesh points. | |
const scalarField & | cellVolumes () const |
Get the field of cell volumes in the mesh. | |
const vectorField & | cellCentres () const |
Get the field of cell centres in the mesh. | |
const vectorField & | faceCentres () const |
Get the field of face centres. | |
const vectorField & | faceAreas () const |
Get the field of area face normals. | |
const scalarField & | magFaceAreas () const |
Get the field of magnitudes of face areas. | |
const labelField & | faceOwner () const |
Get the field of face owner cells. | |
const labelField & | faceNeighbour () const |
Get the field of face neighbour cells. | |
size_t | nCells () const |
Get the number of cells in the mesh. | |
size_t | nInternalFaces () const |
Get the number of internal faces in the mesh. | |
size_t | nBoundaryFaces () const |
Get the number of boundary faces in the mesh. | |
size_t | nBoundaries () const |
Get the number of boundaries in the mesh. | |
size_t | nFaces () const |
Get the number of faces in the mesh. | |
const BoundaryMesh & | boundaryMesh () const |
Get the boundary mesh. | |
StencilDataBase & | stencilDB () const |
Get the stencil data base. | |
const Executor & | exec () const |
Get the executor. | |
Represents an unstructured mesh in NeoFOAM.
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 centres, face areas, face centres, 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 26 of file unstructuredMesh.hpp.
NeoFOAM::UnstructuredMesh::UnstructuredMesh | ( | vectorField | points, |
scalarField | cellVolumes, | ||
vectorField | cellCentres, | ||
vectorField | faceAreas, | ||
vectorField | faceCentres, | ||
scalarField | magFaceAreas, | ||
labelField | faceOwner, | ||
labelField | faceNeighbour, | ||
size_t | nCells, | ||
size_t | nInternalFaces, | ||
size_t | nBoundaryFaces, | ||
size_t | nBoundaries, | ||
size_t | nFaces, | ||
BoundaryMesh | boundaryMesh | ||
) |
Constructor for the UnstructuredMesh class.
points | The field of mesh points. |
cellVolumes | The field of cell volumes in the mesh. |
cellCentres | The field of cell centres in the mesh. |
faceAreas | The field of area face normals. |
faceCentres | The field of face centres. |
magFaceAreas | The field of magnitudes of face areas. |
faceOwner | The field of face owner cells. |
faceNeighbour | The field of face neighbour cells. |
nCells | The number of cells in the mesh. |
nInternalFaces | The number of internal faces in the mesh. |
nBoundaryFaces | The number of boundary faces in the mesh. |
nBoundaries | The number of boundaries in the mesh. |
nFaces | The number of faces in the mesh. |
boundaryMesh | The boundary mesh. |
const BoundaryMesh & NeoFOAM::UnstructuredMesh::boundaryMesh | ( | ) | const |
Get the boundary mesh.
const vectorField & NeoFOAM::UnstructuredMesh::cellCentres | ( | ) | const |
Get the field of cell centres in the mesh.
const scalarField & NeoFOAM::UnstructuredMesh::cellVolumes | ( | ) | const |
Get the field of cell volumes in the mesh.
const Executor & NeoFOAM::UnstructuredMesh::exec | ( | ) | const |
Get the executor.
const vectorField & NeoFOAM::UnstructuredMesh::faceAreas | ( | ) | const |
Get the field of area face normals.
const vectorField & NeoFOAM::UnstructuredMesh::faceCentres | ( | ) | const |
Get the field of face centres.
const labelField & NeoFOAM::UnstructuredMesh::faceNeighbour | ( | ) | const |
Get the field of face neighbour cells.
const labelField & NeoFOAM::UnstructuredMesh::faceOwner | ( | ) | const |
Get the field of face owner cells.
const scalarField & NeoFOAM::UnstructuredMesh::magFaceAreas | ( | ) | const |
Get the field of magnitudes of face areas.
size_t NeoFOAM::UnstructuredMesh::nBoundaries | ( | ) | const |
Get the number of boundaries in the mesh.
size_t NeoFOAM::UnstructuredMesh::nBoundaryFaces | ( | ) | const |
Get the number of boundary faces in the mesh.
size_t NeoFOAM::UnstructuredMesh::nCells | ( | ) | const |
Get the number of cells in the mesh.
size_t NeoFOAM::UnstructuredMesh::nFaces | ( | ) | const |
Get the number of faces in the mesh.
size_t NeoFOAM::UnstructuredMesh::nInternalFaces | ( | ) | const |
Get the number of internal faces in the mesh.
const vectorField & NeoFOAM::UnstructuredMesh::points | ( | ) | const |
Get the field of mesh points.
StencilDataBase & NeoFOAM::UnstructuredMesh::stencilDB | ( | ) | const |
Get the stencil data base.