element_conn#

Part.element_conn(elem_type: int) array#

For “zoo” element types, return the part element connectivity for the specified element type.

Parameters:
elem_typeint

The element type. All but NFACED and NSIDED element types are allowed.

Returns:
numpy.array

A numpy array of the node indices.

Examples

>>> part = reader.parts()[0]
>>> conn = part.element_conn(libuserd.ElementType.HEX08)
>>> nodes_per_elem = libuserd_instance.nodes_per_element(libuserd.ElementType.HEX08)
>>> conn.shape = (len(conn)//nodes_per_elem, nodes_per_elem)
>>> for element in conn:
...  print(element)