This module contains ElementList, ElementType and Element classes.

class ansys.dpf.post.elements.ElementType(arg: ElementDescriptor | int)#

Wrapper type to instantiate an ElementDescriptor from an int.

property elem_type_id: element_types#

Element type in the element_types enum.

property description: str#

Specifies the element geometry and integration order.

property name: str#

Short name of the element type.

property shape: str#

Can be "solid",``”shell”`` or "beam".

property num_corner_nodes: int#

Returns the number of corner nodes.

property num_mid_nodes: int#

Returns the number of middle nodes.

property num_nodes: int#

Returns the total number of nodes.

property is_solid: bool#

Whether the element is a solid.

property is_shell: bool#

Whether the element is a shell.

property is_beam: bool#

Whether the element is a beam.

property is_quadratic: bool#

Whether the element is quadratic.

class ansys.dpf.post.elements.Element(element: Element)#

Proxy class wrapping dpf.core.elements.Element.

property node_ids: List[int]#

See ansys.dpf.core.elements.Element.node_ids().

property id: int#

See ansys.dpf.core.elements.Element.id().

property index: int#

See ansys.dpf.core.elements.Element.index().

property nodes: List[Node]#

See ansys.dpf.core.elements.Element.nodes().

property num_nodes: int#

See ansys.dpf.core.elements.Element.n_nodes().

property type_info: ElementType#

Gets an element descriptor, See ansys.dpf.core.elements.Element.id().

property type: element_types#

Returns the Element Type.

property shape: str#

See ansys.dpf.core.elements.Element.shape().

property to_node_connectivity: List[int]#

See ansys.dpf.core.elements.Element.connectivity().

class ansys.dpf.post.elements.ElementListByIndex(el_list: Elements)#

Element list object using indexes as input.

property by_id: ElementListById#

Returns an equivalent list which accepts IDs as input.

class ansys.dpf.post.elements.ElementListById(el_list: Elements)#

Element list object using IDs as input.