    

 ## On this page

  

 

 # ansys::dpf::MeshQuery Class Reference

 Last update: 16.07.2025 

`#include <dpf_meshQuery.h>`

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

 [MeshQuery](classansys_1_1dpf_1_1MeshQuery.xhtml#ae0deb6e726cba716d779cd9a2e410e3a) ([Operator](classansys_1_1dpf_1_1Operator.xhtml) &amp;mesh\_provider) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetNodesByNamedSelection](classansys_1_1dpf_1_1MeshQuery.xhtml#a7e27f733d2a670960ee0a315380a18a1) (const char \*named\_selection, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetNodesByMaterialId](classansys_1_1dpf_1_1MeshQuery.xhtml#a43d364441c62f747a724815287242f4d) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) materialId, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetNodesByElementType](classansys_1_1dpf_1_1MeshQuery.xhtml#abd8f42a913abdbd63c4cfebf311d4800) (const [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) &amp;element\_type, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetNodesBySolverElementType](classansys_1_1dpf_1_1MeshQuery.xhtml#ad1be7baea911e6c99b967f03b6ade8eb) (int element\_type, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetElementsByNamedSelection](classansys_1_1dpf_1_1MeshQuery.xhtml#aa24510b2cf985f965506d40f2a470f92) (const char \*named\_selection, bool inclusive, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetElementsByMaterialId](classansys_1_1dpf_1_1MeshQuery.xhtml#a7e66788a1cdb99f30308013063e0b6d9) ([dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e) materialId, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetElementsByElementType](classansys_1_1dpf_1_1MeshQuery.xhtml#a0cf98e86ebf498fd65d644ab980e3fe4) (const [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) &amp;element\_type, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetElementsBySolverElementType](classansys_1_1dpf_1_1MeshQuery.xhtml#ae5e1be30a704d4953a0e57a2f8715f05) (int element\_type, [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetSkinElements](classansys_1_1dpf_1_1MeshQuery.xhtml#a6dbb1c0d95142d5e78e1bf2b59888204) ([DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetBeamElements](classansys_1_1dpf_1_1MeshQuery.xhtml#af1dc7b80fc0968623bbeec31964697e0) ([DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetSolidElements](classansys_1_1dpf_1_1MeshQuery.xhtml#ac7c64b06fea66ede6df551024a5aa3ab) ([DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetPointElements](classansys_1_1dpf_1_1MeshQuery.xhtml#a0031f8fe2eb4f79349ae57ee43551f0b) ([DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) [GetShellElements](classansys_1_1dpf_1_1MeshQuery.xhtml#a0eaa2cac7c87dbc1b8b5f2b276df2509) ([DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;error) <a id="details" name="details"></a>## Detailed Description

Encapsulation of mesh.



## Constructor &amp; Destructor Documentation

<a id="ae0deb6e726cba716d779cd9a2e410e3a" name="ae0deb6e726cba716d779cd9a2e410e3a"></a>## [◆ ](#ae0deb6e726cba716d779cd9a2e410e3a)MeshQuery()

 ansys::dpf::MeshQuery::MeshQuery  ( [Operator](classansys_1_1dpf_1_1Operator.xhtml) &amp;  *mesh\_provider*)   inline 

Create new mesh query object.

Parameters \[in\]mesh\_providerMesh provider from which to create mesh query object. 



## Member Function Documentation

<a id="af1dc7b80fc0968623bbeec31964697e0" name="af1dc7b80fc0968623bbeec31964697e0"></a>## [◆ ](#af1dc7b80fc0968623bbeec31964697e0)GetBeamElements()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetBeamElements  ( [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*)   inline 

ReturnsScoping of beam elements. Parameters \[out\]errorStatus of call. 



<a id="a0cf98e86ebf498fd65d644ab980e3fe4" name="a0cf98e86ebf498fd65d644ab980e3fe4"></a>## [◆ ](#a0cf98e86ebf498fd65d644ab980e3fe4)GetElementsByElementType()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetElementsByElementType  ( const [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) &amp;  *element\_type*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of elements for element type. Parameters \[in\]element\_typeElement descriptor for which to get elements. \[out\]errorStatus of call. 



<a id="a7e66788a1cdb99f30308013063e0b6d9" name="a7e66788a1cdb99f30308013063e0b6d9"></a>## [◆ ](#a7e66788a1cdb99f30308013063e0b6d9)GetElementsByMaterialId()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetElementsByMaterialId  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *materialId*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of elements for material. Parameters \[in\]materialIdId of material for which to get elements. \[out\]errorStatus of call. 



<a id="aa24510b2cf985f965506d40f2a470f92" name="aa24510b2cf985f965506d40f2a470f92"></a>## [◆ ](#aa24510b2cf985f965506d40f2a470f92)GetElementsByNamedSelection()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetElementsByNamedSelection  ( const char \*  *named\_selection*,    bool  *inclusive*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of elements for named selection. Parameters \[in\]named\_selectionName of selection for which to get elements. \[in\]inclusiveFlag indicating to return elements fully contained within named selection. \[out\]errorStatus of call. 



<a id="ae5e1be30a704d4953a0e57a2f8715f05" name="ae5e1be30a704d4953a0e57a2f8715f05"></a>## [◆ ](#ae5e1be30a704d4953a0e57a2f8715f05)GetElementsBySolverElementType()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetElementsBySolverElementType  ( int  *element\_type*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

Element type is given by APDLElementType. Example: 181 = 4 - Node Structural Shell, 186 = 3 - D 20 - Node Structural Solid.

ReturnsScoping of elements for solver element. Parameters \[in\]element\_typeType of solver element for which to get elements. \[out\]errorStatus of call. 



<a id="abd8f42a913abdbd63c4cfebf311d4800" name="abd8f42a913abdbd63c4cfebf311d4800"></a>## [◆ ](#abd8f42a913abdbd63c4cfebf311d4800)GetNodesByElementType()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetNodesByElementType  ( const [ElementDescriptor](structansys_1_1dpf_1_1ElementDescriptor.xhtml) &amp;  *element\_type*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of nodes for element type. Parameters \[in\]element\_typeElement descriptor for which to get nodes. \[out\]errorStatus of call. 



<a id="a43d364441c62f747a724815287242f4d" name="a43d364441c62f747a724815287242f4d"></a>## [◆ ](#a43d364441c62f747a724815287242f4d)GetNodesByMaterialId()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetNodesByMaterialId  ( [dp\_id](namespaceansys_1_1dpf.xhtml#ab4574c9af3f2bb8011da7d1f4c8da20e)  *materialId*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of nodes for material. Parameters \[in\]materialIdId of material for which to get nodes. \[out\]errorStatus of call. 



<a id="a7e27f733d2a670960ee0a315380a18a1" name="a7e27f733d2a670960ee0a315380a18a1"></a>## [◆ ](#a7e27f733d2a670960ee0a315380a18a1)GetNodesByNamedSelection()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetNodesByNamedSelection  ( const char \*  *named\_selection*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of nodes for named selection. Parameters \[in\]named\_selectionName of selection for which to get nodes. \[out\]errorStatus of call. 



<a id="ad1be7baea911e6c99b967f03b6ade8eb" name="ad1be7baea911e6c99b967f03b6ade8eb"></a>## [◆ ](#ad1be7baea911e6c99b967f03b6ade8eb)GetNodesBySolverElementType()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetNodesBySolverElementType  ( int  *element\_type*,    [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*   )   inline 

ReturnsScoping of nodes for solver element. Parameters \[in\]element\_typeType of solver element for which to get nodes. \[out\]errorStatus of call. 



<a id="a0031f8fe2eb4f79349ae57ee43551f0b" name="a0031f8fe2eb4f79349ae57ee43551f0b"></a>## [◆ ](#a0031f8fe2eb4f79349ae57ee43551f0b)GetPointElements()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetPointElements  ( [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*)   inline 

ReturnsScoping of point elements. Parameters \[out\]errorStatus of call. 



<a id="a0eaa2cac7c87dbc1b8b5f2b276df2509" name="a0eaa2cac7c87dbc1b8b5f2b276df2509"></a>## [◆ ](#a0eaa2cac7c87dbc1b8b5f2b276df2509)GetShellElements()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetShellElements  ( [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*)   inline 

ReturnsScoping of shell elements. Parameters \[out\]errorStatus of call. 



<a id="a6dbb1c0d95142d5e78e1bf2b59888204" name="a6dbb1c0d95142d5e78e1bf2b59888204"></a>## [◆ ](#a6dbb1c0d95142d5e78e1bf2b59888204)GetSkinElements()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetSkinElements  ( [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*)   inline 

ReturnsScoping of skin elements. Parameters \[out\]errorStatus of call. 



<a id="ac7c64b06fea66ede6df551024a5aa3ab" name="ac7c64b06fea66ede6df551024a5aa3ab"></a>## [◆ ](#ac7c64b06fea66ede6df551024a5aa3ab)GetSolidElements()

 [Scoping](classansys_1_1dpf_1_1Scoping.xhtml) ansys::dpf::MeshQuery::GetSolidElements  ( [DpfError](classansys_1_1dpf_1_1DpfError.xhtml) &amp;  *error*)   inline 

ReturnsScoping of solid elements. Parameters \[out\]errorStatus of call.