cratepy.tensor.matrixoperations.get_tensor_from_mf¶
- get_tensor_from_mf(tensor_mf, n_dim, comp_order)[source]¶
Recover tensor from associated matricial form.
Recover a given second-order or fourth-order tensor from the associated matricial form, given the problem number of spatial dimensions and given a (compatible) ordered strain/stress components list. If the second-order tensor is symmetric or the fourth-order tensor has minor symmetry (component list only contains independent components), then matricial form is assumed to follow the Kelvin notation [1]. Otherwise, a columnwise matricial form is assumed.
- Parameters:
tensor_mf (numpy.ndarray (1d or 2d)) – Tensor stored in matricial form.
n_dim (int) – Problem number of spatial dimensions.
comp_order (list) – Strain/Stress components order associated to matricial form.
- Returns:
tensor – Tensor recovered from matricial form.
- Return type: