    

 ## On this page

  

 

 # ansys::dpf::MeshInfo Class Reference

 Last update: 16.07.2025 

Define a mesh info. [More...](classansys_1_1dpf_1_1MeshInfo.xhtml#details)

`#include <dpf_api.h>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="ae404772abc35c42c2ff22217d162c573" name="ae404772abc35c42c2ff22217d162c573"></a> **MeshInfo** (const GenericDataContainer &amp;\_genericData) <a id="afff8f1ec60d852cc1e15c5fd5df6306b" name="afff8f1ec60d852cc1e15c5fd5df6306b"></a> **MeshInfo** ([MeshInfo](classansys_1_1dpf_1_1MeshInfo.xhtml) const &amp;) <a id="a22a33b5af1e81b7d4835343a35c99e23" name="a22a33b5af1e81b7d4835343a35c99e23"></a>[MeshInfo](classansys_1_1dpf_1_1MeshInfo.xhtml) &amp; **operator=** ([MeshInfo](classansys_1_1dpf_1_1MeshInfo.xhtml) const &amp;) <a id="ade93496d845481b6281f4c3ed7b90bc4" name="ade93496d845481b6281f4c3ed7b90bc4"></a>GenericDataContainer **getGenericDataContainer** () <a id="a6684d9aec524aceb631ae9355f2b83f0" name="a6684d9aec524aceb631ae9355f2b83f0"></a>template&lt;typename T &gt; T **getProperty** (const std::string &amp;property\_name) <a id="a2e03f447b78a4f99d590c6d183616709" name="a2e03f447b78a4f99d590c6d183616709"></a>template&lt;typename T &gt; void **setProperty** (const std::string &amp;property\_name, const T &amp;property) void [setnumberOfNodes](classansys_1_1dpf_1_1MeshInfo.xhtml#a4ad70b09ecbd1f3161ebbd33dd62d399) (int numNodes) @detail set the number of nodes. [More...](classansys_1_1dpf_1_1MeshInfo.xhtml#a4ad70b09ecbd1f3161ebbd33dd62d399)  
 void [setnumberOfElements](classansys_1_1dpf_1_1MeshInfo.xhtml#a01146bcc71f898d13ae42ec8b9e5f247) (int numElements) @detail set the number of elements. [More...](classansys_1_1dpf_1_1MeshInfo.xhtml#a01146bcc71f898d13ae42ec8b9e5f247)  
 void [setSplittableBy](classansys_1_1dpf_1_1MeshInfo.xhtml#aac41382a70a99d12ccb70215685f5d00) ([dpf::StringField](classansys_1_1dpf_1_1StringField.xhtml) splittableByScoping) @detail set strings name correspondind to mesh split scopings. [More...](classansys_1_1dpf_1_1MeshInfo.xhtml#aac41382a70a99d12ccb70215685f5d00)  
 void [setAvailableElementType](classansys_1_1dpf_1_1MeshInfo.xhtml#a64932c3302954322668f319e76af6911) ([dpf::Scoping](classansys_1_1dpf_1_1Scoping.xhtml) availableElementTypes) @detail set available elements of the mesh. [More...](classansys_1_1dpf_1_1MeshInfo.xhtml#a64932c3302954322668f319e76af6911)  
 int [numberOfNodes](classansys_1_1dpf_1_1MeshInfo.xhtml#a1baa306edc0ddced75798e77f68c590a) () int [numberOfElements](classansys_1_1dpf_1_1MeshInfo.xhtml#a446ad4eef444bdc799ea0c783783e863) () [dpf::Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [getAvailableElementTypes](classansys_1_1dpf_1_1MeshInfo.xhtml#a736817aee8059d944483e080a9152d0b) () [dpf::StringField](classansys_1_1dpf_1_1StringField.xhtml) [getSplittableBy](classansys_1_1dpf_1_1MeshInfo.xhtml#a7a288ff55960fa0955502b51d8f84583) () <a id="details" name="details"></a>## Detailed Description

Define a mesh info.

[MeshInfo](classansys_1_1dpf_1_1MeshInfo.xhtml) can set and get properties of the mesh through a GenericDataContainer.



## Member Function Documentation

<a id="a736817aee8059d944483e080a9152d0b" name="a736817aee8059d944483e080a9152d0b"></a>## [◆ ](#a736817aee8059d944483e080a9152d0b)getAvailableElementTypes()

 [dpf::Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshInfo::getAvailableElementTypes  ( )   inline 

Returnsthe available element types of the mesh. 



<a id="a7a288ff55960fa0955502b51d8f84583" name="a7a288ff55960fa0955502b51d8f84583"></a>## [◆ ](#a7a288ff55960fa0955502b51d8f84583)getSplittableBy()

 [dpf::StringField](classansys_1_1dpf_1_1StringField.xhtml) ansys::dpf::MeshInfo::getSplittableBy  ( )   inline 

Returnsthe names of the scoped meshes that split the mesh. 



<a id="a446ad4eef444bdc799ea0c783783e863" name="a446ad4eef444bdc799ea0c783783e863"></a>## [◆ ](#a446ad4eef444bdc799ea0c783783e863)numberOfElements()

 int ansys::dpf::MeshInfo::numberOfElements  ( )   inline 

Returnsthe number of elements of the mesh. 



<a id="a1baa306edc0ddced75798e77f68c590a" name="a1baa306edc0ddced75798e77f68c590a"></a>## [◆ ](#a1baa306edc0ddced75798e77f68c590a)numberOfNodes()

 int ansys::dpf::MeshInfo::numberOfNodes  ( )   inline 

Returnsthe number of nodes of the mesh. 



<a id="a64932c3302954322668f319e76af6911" name="a64932c3302954322668f319e76af6911"></a>## [◆ ](#a64932c3302954322668f319e76af6911)setAvailableElementType()

 void ansys::dpf::MeshInfo::setAvailableElementType  ( [dpf::Scoping](classansys_1_1dpf_1_1Scoping.xhtml)  *availableElementTypes*)   inline 

@detail set available elements of the mesh.

Parameters \[in\]availableElementTypesScopings of available element types. 



<a id="a01146bcc71f898d13ae42ec8b9e5f247" name="a01146bcc71f898d13ae42ec8b9e5f247"></a>## [◆ ](#a01146bcc71f898d13ae42ec8b9e5f247)setnumberOfElements()

 void ansys::dpf::MeshInfo::setnumberOfElements  ( int  *numElements*)   inline 

@detail set the number of elements.

Parameters \[in\]numElementsNumber of elements. 



<a id="a4ad70b09ecbd1f3161ebbd33dd62d399" name="a4ad70b09ecbd1f3161ebbd33dd62d399"></a>## [◆ ](#a4ad70b09ecbd1f3161ebbd33dd62d399)setnumberOfNodes()

 void ansys::dpf::MeshInfo::setnumberOfNodes  ( int  *numNodes*)   inline 

@detail set the number of nodes.

Parameters \[in\]numNodesNumber of nodes. 



<a id="aac41382a70a99d12ccb70215685f5d00" name="aac41382a70a99d12ccb70215685f5d00"></a>## [◆ ](#aac41382a70a99d12ccb70215685f5d00)setSplittableBy()

 void ansys::dpf::MeshInfo::setSplittableBy  ( [dpf::StringField](classansys_1_1dpf_1_1StringField.xhtml)  *splittableByScoping*)   inline 

@detail set strings name correspondind to mesh split scopings.

Parameters \[in\]splittableByScopingSplit mesh names.