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

# Class ansys::dpf::MeshInfo

![][C++]
![][public]

Define a mesh info.

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

## Members

* [getAvailableElementTypes](#classansys-dpf-meshinfo-1a736817aee8059d944483e080a9152d0b)
* [getGenericDataContainer](#classansys-dpf-meshinfo-1aedfb2d1266289e8df5820ac7662b5f6f)
* [getProperty](#classansys-dpf-meshinfo-1ad8d1b38ef0c64942059934fe0b33cfca)
* [getSplittableBy](#classansys-dpf-meshinfo-1a7a288ff55960fa0955502b51d8f84583)
* [MeshInfo](#classansys-dpf-meshinfo-1a890fd135102502182cd0155f13524a49)
* [MeshInfo](#classansys-dpf-meshinfo-1ae404772abc35c42c2ff22217d162c573)
* [MeshInfo](#classansys-dpf-meshinfo-1afff8f1ec60d852cc1e15c5fd5df6306b)
* [numberOfElements](#classansys-dpf-meshinfo-1a446ad4eef444bdc799ea0c783783e863)
* [numberOfNodes](#classansys-dpf-meshinfo-1a1baa306edc0ddced75798e77f68c590a)
* [operator=](#classansys-dpf-meshinfo-1a22a33b5af1e81b7d4835343a35c99e23)
* [setAvailableElementType](#classansys-dpf-meshinfo-1a64932c3302954322668f319e76af6911)
* [setnumberOfElements](#classansys-dpf-meshinfo-1a01146bcc71f898d13ae42ec8b9e5f247)
* [setnumberOfNodes](#classansys-dpf-meshinfo-1a4ad70b09ecbd1f3161ebbd33dd62d399)
* [setProperty](#classansys-dpf-meshinfo-1a2e03f447b78a4f99d590c6d183616709)
* [setSplittableBy](#classansys-dpf-meshinfo-1aac41382a70a99d12ccb70215685f5d00)

## Public functions

### Function MeshInfo

![][public]

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

**Return type**:

### Function MeshInfo

![][public]

```cpp theme={null}
ansys::dpf::MeshInfo::MeshInfo(const GenericDataContainer &_genericData)
```

**Parameters**:

* const GenericDataContainer & **\_genericData**

**Return type**:

### Function MeshInfo

![][public]

```cpp theme={null}
ansys::dpf::MeshInfo::MeshInfo(MeshInfo const &)
```

**Parameters**:

* MeshInfo const &

**Return type**:

### Function operator=

![][public]

```cpp theme={null}
MeshInfo & ansys::dpf::MeshInfo::operator=(MeshInfo const &)
```

**Parameters**:

* MeshInfo const &

**Return type**: MeshInfo &

### Function getGenericDataContainer

![][public]
![][const]

```cpp theme={null}
GenericDataContainer const  & ansys::dpf::MeshInfo::getGenericDataContainer() const
```

**Return type**: GenericDataContainer const &

### Function getProperty

![][public]
![][const]

```cpp theme={null}
T ansys::dpf::MeshInfo::getProperty(const std::string &property_name) const
```

**Parameters**:

* const std::string & **property\_name**

**Return type**: T

### Function setProperty

![][public]

```cpp theme={null}
void ansys::dpf::MeshInfo::setProperty(const std::string &property_name, const T &property)
```

**Parameters**:

* const std::string & **property\_name**
* const T & **property**

**Return type**: void

### Function setnumberOfNodes

![][public]

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

@detail set the number of nodes.

**Parameters**:

* int **numNodes**: \[in] Number of nodes.

**Return type**: void

### Function setnumberOfElements

![][public]

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

@detail set the number of elements.

**Parameters**:

* int **numElements**: \[in] Number of elements.

**Return type**: void

### Function setSplittableBy

![][public]

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

@detail set strings name correspondind to mesh split scopings.

**Parameters**:

* [dpf::StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-stringfield.md) **splittableByScoping**: \[in] Split mesh names.

**Return type**: void

### Function setAvailableElementType

![][public]

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

@detail set available elements of the mesh.

**Parameters**:

* [dpf::Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) **availableElementTypes**: \[in] Scopings of available element types.

**Return type**: void

### Function numberOfNodes

![][public]

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

**Returns**:

the number of nodes of the mesh.

**Return type**: int

### Function numberOfElements

![][public]

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

**Returns**:

the number of elements of the mesh.

**Return type**: int

### Function getAvailableElementTypes

![][public]

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

**Returns**:

the available element types of the mesh.

**Return type**: [dpf::Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md)

### Function getSplittableBy

![][public]

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

**Returns**:

the names of the scoped meshes that split the mesh.

**Return type**: [dpf::StringField](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-stringfield.md)

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
