Elasticipy.StressStrainTensors module
- class Elasticipy.StressStrainTensors.StrainTensor(matrix)[source]
Bases:
SecondOrderTensorClass for manipulating symmetric strain tensors or arrays of symmetric strain tensors.
- name = 'Strain tensor'
Name to use when printing the tensor
- principalStrains()[source]
Values of the principals strains.
If the tensor array is of shape [m,n,…], the results will be of shape [m,n,…,3].
- Returns:
Principal strain values
- Return type:
np.ndarray
- voigt_map = [1, 1, 1, 2, 2, 2]
List of factors to use for building a tensor from Voigt vector(s)
- class Elasticipy.StressStrainTensors.StressTensor(matrix)[source]
Bases:
SecondOrderTensorClass for manipulating stress tensors or arrays of stress tensors.
- property J1
First invariant of the deviatoric part of the stress tensor. It is always zeros, as the deviatoric part as null trace.
- Returns:
zero(s)
- Return type:
float or np.ndarray
- property J2
Second invariant of the deviatoric part of the stress tensor.
- Returns:
J2 invariant
- Return type:
float or np.ndarray
- property J3
Third invariant of the deviatoric part of the stress tensor.
- Returns:
J3 invariant
- Return type:
float or np.ndarray
- Tresca()[source]
Tresca(-Guest) equivalent stress.
- np.ndarray or float
Tresca equivalent stress
See also
vonMisesvon Mises equivalent stress
- hydrostaticPressure()[source]
Hydrostatic pressure
- Return type:
np.ndarray or float
See also
sphericalPartspherical part of the stress
- name = 'Stress tensor'
Name to use when printing the tensor