pysdic.Connectivity.from_array#
- classmethod Connectivity.from_array(elements, *, properties=None, element_type=None)[source]#
Create a connectivity from an array of elements.
Equivalent to
Connectivity(elements, properties=properties, element_type=element_type).- Parameters:
elements (ArrayLike) – An integer array of shape \((N_e, N_{vpe})\) with the vertex indices.
properties (Optional[Union[Dict[str, ArrayLike], PropertyContainer]], optional) – The properties of the elements (see
pysdic.Connectivity).element_type (Optional[str], optional (default:
None)) – The type of the elements.
- Returns:
The new connectivity.
- Return type: