Skip to main content

DPF C++ client library 2023 R2

ansys::dpf::MeshQuery Class Reference

Last update: 10.07.2023

#include <dpf_meshQuery.h>

Public Member Functions

 MeshQuery (Operator &mesh_provider)
 
Scoping GetNodesByNamedSelection (const char *named_selection, DpfError &error)
 
Scoping GetNodesByMaterialId (dp_id materialId, DpfError &error)
 
Scoping GetNodesByElementType (const ElementDescriptor &element_type, DpfError &error)
 
Scoping GetNodesBySolverElementType (int element_type, DpfError &error)
 
Scoping GetElementsByNamedSelection (const char *named_selection, bool inclusive, DpfError &error)
 
Scoping GetElementsByMaterialId (dp_id materialId, DpfError &error)
 
Scoping GetElementsByElementType (const ElementDescriptor &element_type, DpfError &error)
 
Scoping GetElementsBySolverElementType (int element_type, DpfError &error)
 
Scoping GetSkinElements (DpfError &error)
 
Scoping GetBeamElements (DpfError &error)
 
Scoping GetSolidElements (DpfError &error)
 
Scoping GetPointElements (DpfError &error)
 
Scoping GetShellElements (DpfError &error)
 

Detailed Description

Encapsulation of mesh.

Constructor & Destructor Documentation

◆ MeshQuery()

ansys::dpf::MeshQuery::MeshQuery ( Operator mesh_provider)
inline

Create new mesh query object.

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

Member Function Documentation

◆ GetBeamElements()

Scoping ansys::dpf::MeshQuery::GetBeamElements ( DpfError error)
inline
Returns
Scoping of beam elements.
Parameters
[out]errorStatus of call.

◆ GetElementsByElementType()

Scoping ansys::dpf::MeshQuery::GetElementsByElementType ( const ElementDescriptor element_type,
DpfError error 
)
inline
Returns
Scoping of elements for element type.
Parameters
[in]element_typeElement descriptor for which to get elements.
[out]errorStatus of call.

◆ GetElementsByMaterialId()

Scoping ansys::dpf::MeshQuery::GetElementsByMaterialId ( dp_id  materialId,
DpfError error 
)
inline
Returns
Scoping of elements for material.
Parameters
[in]materialIdId of material for which to get elements.
[out]errorStatus of call.

◆ GetElementsByNamedSelection()

Scoping ansys::dpf::MeshQuery::GetElementsByNamedSelection ( const char *  named_selection,
bool  inclusive,
DpfError error 
)
inline
Returns
Scoping 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.

◆ GetElementsBySolverElementType()

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
[in]element_typeType of solver element for which to get elements.
[out]errorStatus of call.

◆ GetNodesByElementType()

Scoping ansys::dpf::MeshQuery::GetNodesByElementType ( const ElementDescriptor element_type,
DpfError error 
)
inline
Returns
Scoping of nodes for element type.
Parameters
[in]element_typeElement descriptor for which to get nodes.
[out]errorStatus of call.

◆ GetNodesByMaterialId()

Scoping ansys::dpf::MeshQuery::GetNodesByMaterialId ( dp_id  materialId,
DpfError error 
)
inline
Returns
Scoping of nodes for material.
Parameters
[in]materialIdId of material for which to get nodes.
[out]errorStatus of call.

◆ GetNodesByNamedSelection()

Scoping ansys::dpf::MeshQuery::GetNodesByNamedSelection ( const char *  named_selection,
DpfError error 
)
inline
Returns
Scoping of nodes for named selection.
Parameters
[in]named_selectionName of selection for which to get nodes.
[out]errorStatus of call.

◆ GetNodesBySolverElementType()

Scoping ansys::dpf::MeshQuery::GetNodesBySolverElementType ( int  element_type,
DpfError error 
)
inline
Returns
Scoping of nodes for solver element.
Parameters
[in]element_typeType of solver element for which to get nodes.
[out]errorStatus of call.

◆ GetPointElements()

Scoping ansys::dpf::MeshQuery::GetPointElements ( DpfError error)
inline
Returns
Scoping of point elements.
Parameters
[out]errorStatus of call.

◆ GetShellElements()

Scoping ansys::dpf::MeshQuery::GetShellElements ( DpfError error)
inline
Returns
Scoping of shell elements.
Parameters
[out]errorStatus of call.

◆ GetSkinElements()

Scoping ansys::dpf::MeshQuery::GetSkinElements ( DpfError error)
inline
Returns
Scoping of skin elements.
Parameters
[out]errorStatus of call.

◆ GetSolidElements()

Scoping ansys::dpf::MeshQuery::GetSolidElements ( DpfError error)
inline
Returns
Scoping of solid elements.
Parameters
[out]errorStatus of call.