> ## 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.

# ansys::dpf::MeshInfo Class Reference

Define a mesh info.

`#include <dpf_api.h>`

## Public Member Functions

| Type | Name |
| - | - |
| | **MeshInfo** (const GenericDataContainer &\_genericData) |
| | **MeshInfo** ([MeshInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshInfo.md) const &) |
| [MeshInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshInfo.md) & | **operator=** ([MeshInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshInfo.md) const &) |
|  GenericDataContainer | **getGenericDataContainer** () |
|  template\<typename T > T | **getProperty** (const std::string \&property\_name) |
|  template\<typename T > void | **setProperty** (const std::string \&property\_name, const T \&property) |
| void | [setnumberOfNodes](#a4ad70b09ecbd1f3161ebbd33dd62d399) (int numNodes) @detail set the number of nodes. |
| void | [setnumberOfElements](#a01146bcc71f898d13ae42ec8b9e5f247) (int numElements) @detail set the number of elements. |
| void | [setSplittableBy](#aac41382a70a99d12ccb70215685f5d00) ([dpf::StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1StringField.md) splittableByScoping) @detail set strings name correspondind to mesh split scopings. |
| void | [setAvailableElementType](#a64932c3302954322668f319e76af6911) ([dpf::Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) availableElementTypes) @detail set available elements of the mesh. |
| int | [numberOfNodes](#a1baa306edc0ddced75798e77f68c590a) () |
| int | [numberOfElements](#a446ad4eef444bdc799ea0c783783e863) () |
| [dpf::Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [getAvailableElementTypes](#a736817aee8059d944483e080a9152d0b) () |
| [dpf::StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1StringField.md) | [getSplittableBy](#a7a288ff55960fa0955502b51d8f84583) () |

## Detailed Description

Define a mesh info.

[MeshInfo](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1MeshInfo.md) can set and get properties of the mesh through a GenericDataContainer.

## Member Function Documentation

### getAvailableElementTypes()

```cpp theme={null}
dpf::Scoping ansys::dpf::MeshInfo::getAvailableElementTypes()
```

`inline`

**Returns**

the available element types of the mesh.

### getSplittableBy()

```cpp theme={null}
dpf::StringField ansys::dpf::MeshInfo::getSplittableBy()
```

`inline`

**Returns**

the names of the scoped meshes that split the mesh.

### numberOfElements()

```cpp theme={null}
int ansys::dpf::MeshInfo::numberOfElements()
```

`inline`

**Returns**

the number of elements of the mesh.

### numberOfNodes()

```cpp theme={null}
int ansys::dpf::MeshInfo::numberOfNodes()
```

`inline`

**Returns**

the number of nodes of the mesh.

### setAvailableElementType()

```cpp theme={null}
void ansys::dpf::MeshInfo::setAvailableElementType(dpf::Scoping availableElementTypes)
```

`inline`

@detail set available elements of the mesh.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | availableElementTypes | Scopings of available element types. |

### setnumberOfElements()

```cpp theme={null}
void ansys::dpf::MeshInfo::setnumberOfElements(int numElements)
```

`inline`

@detail set the number of elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | numElements | Number of elements. |

### setnumberOfNodes()

```cpp theme={null}
void ansys::dpf::MeshInfo::setnumberOfNodes(int numNodes)
```

`inline`

@detail set the number of nodes.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | numNodes | Number of nodes. |

### setSplittableBy()

```cpp theme={null}
void ansys::dpf::MeshInfo::setSplittableBy(dpf::StringField splittableByScoping)
```

`inline`

@detail set strings name correspondind to mesh split scopings.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | splittableByScoping | Split mesh names. |
