sdynpy.core.sdynpy_geometry.ElementArray
- class ElementArray(shape, buffer=None, offset=0, strides=None, order=None)[source]
Bases:
SdynpyArray
Element information array
Use the element_array helper function to create the array.
- __init__()
Methods
from_unv
(unv_data_dict[, combine])Load ElementArrays from universal file data from read_unv
reduce
(node_list)Keep only elements that have all nodes contained in node_list
Attributes
- data_dtype = [('id', 'uint64'), ('type', 'uint8'), ('color', 'uint16'), ('connectivity', 'object')]
- static from_unv(unv_data_dict, combine=True)[source]
Load ElementArrays from universal file data from read_unv
- Parameters
unv_data_dict (dict) – Dictionary containing data from read_unv
combine (bool, optional) – If True, return as a single ElementArray
- Returns
output_arrays – Elements read from unv
- Return type