element_conn#
- Part.element_conn(elem_type: int, rank: int | None = None) array #
For “zoo” element types, return the part element connectivity for the specified element type.
- Parameters:
- 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)