> ## 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::SurfaceMesh Class Reference

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

Provide a surface mesh access class.

`#include <SurfaceMesh.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [SurfaceMesh](#ae8dbea460cf8d1076a09229dc8b84c8c) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodes, [FaceData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceData.md) faces) Constructor. |
| | [SurfaceMesh](#ac8acf16ad4e8f6c4788bf81a284af87d) (const [SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md) &)=default Provide a copy-constructor. |
| | [SurfaceMesh](#a6ce8618c7363d5c62ad8df814d37e484) ([SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md) &&)=default Provide a move-constructor. |
| [SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md) & | [operator=](#ac277c153888885714a6f70a41261f102) (const [SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md) &)=default Provide a copy-assign operator. |
| [SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.md) & | [operator=](#a2d6d7cf5a81f9c9bfb39508947ff4ed4) ([SurfaceMesh](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1SurfaceMesh.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](#a49cc3f38274acfaea64527899f43df49) () const noexcept Get node data. |
|  const [FaceData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceData.md) & | [getFaceData](#a6dbb920338f44a6762265810ad8afae3) () const noexcept Get face data. |
|  std::size\_t | [getNumNodes](#a79ad7197266d3814f477f7326e6dc04a) () const Provide a method to get the number of nodes for this mesh. |
|  std::size\_t | [getNumElems](#a0f3aa7623beead3c2925dcc89f451360) () const Provide a method to get the number of elements for this mesh. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getNodeIds](#a9d34d5c3fa3c6d87f12e94642fadeb91) () const 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](#a9e5add5718e83f6144004bacc2650d14) () const Provide a method to access node coordinates array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getElemTypes](#aa4e1d85cc62dc422100a8f6c9180eead) () const Provide a method to access element types array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getElemNodeCounts](#a477d04741fd375efcc702c785e0136dd) () const Provide a method to access element node counts array. |
| [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) | [getElemNodeIds](#a891d7359d0536c58984e1c521a367e86) () const Provide a method to access element node ids array. |
| [FaceCellConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceCellConnectivityData.md) | [getFaceCellConnectivity](#ad86260da5f6d2980105280f5408cdad7) () const noexcept Return face-to-cell connectivity data. |
| void | [setSide0](#a08e683009bed220d25e4848b24d92a39) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&regionName) Set side 0 region. |
| void | [setSide1](#a15fb1ea02b021107f995e50ec4b35237) (const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) \&regionName) Set side 1 region. |
|  bool | [hasSide0](#a504afae8d069ededcc257e430b66d635) () const noexcept Returns whether side 0 region is set. |
|  bool | [hasSide1](#a73d353dd486f22a5e17b11fcab360df7) () const noexcept Returns whether side 1 region is set. |
|  const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) & | [getSide0](#a9670c34062f7137cb45ac3105c78980b) () const Get side 0 region. |
|  const [RegionName](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad700042fb75659f4591c4dae6560a62d) & | [getSide1](#a4e64f080b3e23ed534f4ff5b31e829dc) () const Get side 1 region. |
| [MeshValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1MeshValidityStatus.md) | [checkMeshValidity](#a786a6cbbf2ab08214207b4fe38f0f013) () const Provide a method to perform simple mesh validity checks. |
| | [SurfaceMesh](#a76a9ff65458582744b60e5eb7bbcd13a) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodes, [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) elemTypes, [ElementNodeCountData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeCountData.md) elemNodeCounts, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) elemNodeIds, [FaceCellConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1FaceCellConnectivityData.md) faceCellConnectivity) Construct the surface mesh object. |
| | [SurfaceMesh](#a87991fd2bb3260b835c6872d860e4f74) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) nodes, [ElementTypeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementTypeData.md) elementTypes, [ElementNodeConnectivityData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ElementNodeConnectivityData.md) elementNodeIds) Construct the surface mesh object. |
| | [SurfaceMesh](#a1f062afae5b75dfce4d4a60c6e3a60d0) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) meshNodes, [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) Construct the surface mesh object. |
| | [SurfaceMesh](#a39dd2b26100e08bd41e00a9d9373bd3a) ([NodeData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1NodeData.md) meshNodes, [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) faceCellConnectivity) Construct the surface mesh object. |
| | **SurfaceMesh** ([OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) nodeIds, [OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) nodeCoords, [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) elemNodeCounts, [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) elemNodeIds) |
| | **SurfaceMesh** ([OutputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputVectorData.md) nodeCoords, [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) elemNodeCounts, [OutputIntegerData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1OutputIntegerData.md) elemNodeIds) |

## Public Attributes

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

## Detailed Description

Provide a surface mesh access class.

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

Definition at line [27](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/SurfaceMesh_8hpp_source) of file [SurfaceMesh.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/SurfaceMesh_8hpp_source).

## Member Function Documentation

### checkMeshValidity()

```cpp theme={null}
MeshValidityStatus sysc::SurfaceMesh::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.

### setSide0()

```cpp theme={null}
void sysc::SurfaceMesh::setSide0(const RegionName & regionName)
```

Set side 0 region.

If this region is not a surface mesh region, then a run-time error will be thrown.

If the provided side 0 region is not a volume mesh region, then a run-time error will be thrown.

### setSide1()

```cpp theme={null}
void sysc::SurfaceMesh::setSide1(const RegionName & regionName)
```

Set side 1 region.

If this region is not a surface mesh region, then a run-time error will be thrown.

If the provided side 0 region is not a volume mesh region, then a run-time error will be thrown.
