> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sysc::VolumeMesh Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a volume mesh access class.

`#include <VolumeMesh.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [VolumeMesh](#ab01007a2dcb32f1a91b0ca7a26c94afb) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodeData, [CellData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellData.md) cellData) Provide a constructor for element-based volume mesh. |
| | [VolumeMesh](#abb0f3e38d18bdfe8128e71da0dcf235f) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodeData, [FaceData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceData.md) faceData, [CellData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellData.md) cellData) Provide a constructor for face-based volume mesh. |
| | [VolumeMesh](#a714cfafbfb04be14720a195cc7590470) ()=default Provide a default constructor. |
| | [VolumeMesh](#ab3261c84e62bdcf25d92b69cbefb1cba) (const [VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) &)=default Provide a copy-constructor. |
| | [VolumeMesh](#af2f6fc62a27f5d69af987a82a8154e45) ([VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) &&)=default Provide a move-constructor. |
| [VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) & | [operator=](#a08f8d75fe5321ae67f0cf4c1c67625df) (const [VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) &)=default Provide a copy-assign operator. |
| [VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) & | [operator=](#ad0a9dfaf02ac0d677f7d993148272d69) ([VolumeMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1VolumeMesh.md) &&)=default Provide a move-assign operator. |
|  const [NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) & | [getNodeData](#abb3afc8a600888ee5af947d4ce1f934a) () const noexcept Get node data. |
|  const [FaceData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceData.md) & | [getFaceData](#a3b1a9c301f2fdbb47e84dc51873a9c82) () const noexcept Get face data. |
|  const [CellData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellData.md) & | [getCellData](#a5ccc339cd9160a32097e4a60277aa26d) () const noexcept Get cell data. |
| [MeshValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1MeshValidityStatus.md) | [checkMeshValidity](#aca7d146a22e72f8eca520ef69ea6858a) () const Provide a method to perform simple mesh validity checks. |
| | [VolumeMesh](#ad901c126ab7372df0928446c7a5bede7) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodeData, [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) faceTypeData, [ElementNodeCountData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeCountData.md) faceNodeCountData, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) faceNodeConnectivityData, [FaceCellConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceCellConnectivityData.md) faceCellConnectivityData, [CellIdData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellIdData.md) cellIdData, [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) cellTypeData, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) cellNodeConnectivityData) For internal use only. |
|  std::size\_t | [getNumNodes](#ab30f9a87cf0cc2c5d12f6ddf05e99fca) () const noexcept Provide a method to get the number of nodes for this mesh. |
|  std::size\_t | [getNumCells](#a941931c2e13bc9b40a19637d1d7d3dcd) () const noexcept Get the number of cells. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getNodeIds](#a15835b560adaabcc1c73da43d7d25f3e) () const noexcept Provide a method to access node ids array. |
| [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) | [getNodeCoords](#a4307321266d855dd7ba48023e0b23f4e) () const noexcept Provide a method to access node coordinates array. |
| [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) | [getFaceTypes](#a7cd6df532799ff7878c5a3b30cf0ffe5) () const noexcept Get face types. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getFaceNodeCounts](#a66ec70482e4fd44bc9edaa910e0abaf2) () const noexcept Provide a method to access face node counts array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getFaceNodeIds](#a3a7635141a02711f1dcdacf848c157ab) () const noexcept Provide a method to access face node ids array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getCell0Ids](#a417e50bee9c019e45cbedd39fd5bc6cb) () const noexcept Provide a method to access cell 0 ids array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getCell1Ids](#a1591d15487420143b463ef86835f1874) () const noexcept Provide a method to access cell 1 ids array. |
| [CellIdData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellIdData.md) | [getCellIds](#a798c79c54b8425b7e8b3060016547ea7) () const noexcept Provide a method to access cell ids array. |
| [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) | [getCellTypes](#a159cf62afda4022acfbd2f5cbccfca7c) () const noexcept Provide a method to access cell types data. |
| [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) | [getCellNodeConnectivity](#a3bb98664fc0827d3ea1317ca034f493c) () const noexcept Access cell-to-node connectivity data. |
| | [VolumeMesh](#ac048cda48c16766a7e04688d62203a70) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodeData, [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) cellTypes, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) cellNodeIds) Provide a constructor for element-based volume mesh. |
| | [VolumeMesh](#a2dfff826766714e9e95227bbc64336a3) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodeData, [ElementNodeCountData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeCountData.md) faceNodeCounts, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) faceNodeIds, [FaceCellConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceCellConnectivityData.md) faceToCellConnectivity, [CellIdData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1CellIdData.md) cellIds) Provide a constructor for face-based volume mesh. |

## Public Attributes

| Type | Name |
| - | - |
|  std::int64\_t | [connectivityStamp](#adbab9e5317965d98b0e6b02c6ccce7b5) \{0} Mesh connectivity stamp. Update whenever re-meshing happens. |
|  std::int64\_t | [coordinatesStamp](#a6415bcc1a32f7374c51d4894d68e338e) \{0} Nodal coordinates stamp. Update whenever nodal coordinates get updated. |
|  std::int64\_t | [partitioningStamp](#a9cf06f19acd1b0c3d0003f56ba7df89a) \{0} Partitioning stamp. Update whenever the mesh is re-partitioned. |

## Detailed Description

Provide a volume mesh access class.

Provides read-only access to the volume mesh for a given region.

Definition at line [26](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/VolumeMesh_8hpp_source) of file [VolumeMesh.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/VolumeMesh_8hpp_source).

## Member Function Documentation

### checkMeshValidity()

```cpp theme={null}
MeshValidityStatus sysc::VolumeMesh::checkMeshValidity() const
```

Provide a method to perform simple mesh validity checks.

See [SystemCoupling::checkMeshValidity](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SystemCoupling.md#a8c7d2613f81b8d9a5bd81db9dcbae8fd) for more details.
