class matlantis_features.features.elasticity.tensors.StrainTensorList(data: List[List[StrainTensor]])#

Bases: object

Tensor list object for the strain tensors.

Methods

__init__(data)

Initialize an instance.

from_strains(diagonal_strains, …)

Create StrainTensorList from the list of diagonal and off-diagonal strain values.

get_samples(vix)

Get the strain sample list for the fitting calculation.

__init__(data: List[List[StrainTensor]]) None#

Initialize an instance.

Parameters

data (list[list[StrainTensor]]) – 2D-list of the strain tensors.

classmethod from_strains(diagonal_strains: List[float], off_diagonal_strains: List[float]) StrainTensorList#

Create StrainTensorList from the list of diagonal and off-diagonal strain values.

Parameters
  • diagonal_strains (list[float]) – list of diagonal strain values.

  • off_diagonal_strains (list[float]) – list of diagonal strain values.

Returns

StrainTensorList object.

Return type

StrainTensorList

get_samples(vix: int) List[float]#

Get the strain sample list for the fitting calculation.

Parameters

vix (int) – Voigt index corresponding to the data-point axis.

Returns

List of stress values for the fitting calculation.

Return type

list[float]