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

`#include <dpf_meshQuery.h>`

## Public Member Functions

| Type | Name |
| - | - |
| | [MeshQuery](#ae0deb6e726cba716d779cd9a2e410e3a) ([Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Operator.md) \&mesh\_provider) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetNodesByNamedSelection](#a7e27f733d2a670960ee0a315380a18a1) (const char \*named\_selection, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetNodesByMaterialId](#a43d364441c62f747a724815287242f4d) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) materialId, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetNodesByElementType](#abd8f42a913abdbd63c4cfebf311d4800) (const [ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1ElementDescriptor.md) \&element\_type, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetNodesBySolverElementType](#ad1be7baea911e6c99b967f03b6ade8eb) (int element\_type, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetElementsByNamedSelection](#aa24510b2cf985f965506d40f2a470f92) (const char \*named\_selection, bool inclusive, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetElementsByMaterialId](#a7e66788a1cdb99f30308013063e0b6d9) ([dp\_id](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/namespaceansys_1_1dpf#ab4574c9af3f2bb8011da7d1f4c8da20e) materialId, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetElementsByElementType](#a0cf98e86ebf498fd65d644ab980e3fe4) (const [ElementDescriptor](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/structansys_1_1dpf_1_1ElementDescriptor.md) \&element\_type, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetElementsBySolverElementType](#ae5e1be30a704d4953a0e57a2f8715f05) (int element\_type, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetSkinElements](#a6dbb1c0d95142d5e78e1bf2b59888204) ([DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetBeamElements](#af1dc7b80fc0968623bbeec31964697e0) ([DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetSolidElements](#ac7c64b06fea66ede6df551024a5aa3ab) ([DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetPointElements](#a0031f8fe2eb4f79349ae57ee43551f0b) ([DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Scoping.md) | [GetShellElements](#a0eaa2cac7c87dbc1b8b5f2b276df2509) ([DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1DpfError.md) \&error) |

## Detailed Description

Encapsulation of mesh.

## Constructor & Destructor Documentation

### MeshQuery()

```cpp theme={null}
ansys::dpf::MeshQuery::MeshQuery(Operator & mesh_provider)
```

`inline`

Create new mesh query object.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | mesh\_provider | Mesh provider from which to create mesh query object. |

## Member Function Documentation

### GetBeamElements()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetBeamElements(DpfError & error)
```

`inline`

**Returns**

Scoping of beam elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | error | Status of call. |

### GetElementsByElementType()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetElementsByElementType(
    const ElementDescriptor & element_type,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of elements for element type.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_type | Element descriptor for which to get elements. |
| \[out] | error | Status of call. |

### GetElementsByMaterialId()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetElementsByMaterialId(
    dp_id materialId,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of elements for material.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | materialId | Id of material for which to get elements. |
| \[out] | error | Status of call. |

### GetElementsByNamedSelection()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetElementsByNamedSelection(
    const char * named_selection,
    bool inclusive,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of elements for named selection.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | named\_selection | Name of selection for which to get elements. |
| \[in] | inclusive | Flag indicating to return elements fully contained within named selection. |
| \[out] | error | Status of call. |

### GetElementsBySolverElementType()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetElementsBySolverElementType(
    int element_type,
    DpfError & error
)
```

`inline`

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

**Returns**

Scoping of elements for solver element.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_type | Type of solver element for which to get elements. |
| \[out] | error | Status of call. |

### GetNodesByElementType()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetNodesByElementType(
    const ElementDescriptor & element_type,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of nodes for element type.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_type | Element descriptor for which to get nodes. |
| \[out] | error | Status of call. |

### GetNodesByMaterialId()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetNodesByMaterialId(
    dp_id materialId,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of nodes for material.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | materialId | Id of material for which to get nodes. |
| \[out] | error | Status of call. |

### GetNodesByNamedSelection()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetNodesByNamedSelection(
    const char * named_selection,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of nodes for named selection.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | named\_selection | Name of selection for which to get nodes. |
| \[out] | error | Status of call. |

### GetNodesBySolverElementType()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetNodesBySolverElementType(
    int element_type,
    DpfError & error
)
```

`inline`

**Returns**

Scoping of nodes for solver element.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | element\_type | Type of solver element for which to get nodes. |
| \[out] | error | Status of call. |

### GetPointElements()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetPointElements(DpfError & error)
```

`inline`

**Returns**

Scoping of point elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | error | Status of call. |

### GetShellElements()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetShellElements(DpfError & error)
```

`inline`

**Returns**

Scoping of shell elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | error | Status of call. |

### GetSkinElements()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetSkinElements(DpfError & error)
```

`inline`

**Returns**

Scoping of skin elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | error | Status of call. |

### GetSolidElements()

```cpp theme={null}
Scoping ansys::dpf::MeshQuery::GetSolidElements(DpfError & error)
```

`inline`

**Returns**

Scoping of solid elements.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | error | Status of call. |
