principal_stresses
- compas_fea2.utilities.principal_stresses(data, ptype, scale, rotate)[source]
Performs principal stress calculations.
- Parameters:
data (dic) – Element data from structure.results for the Step.
ptype (str) – ‘max’ ‘min’ for maximum or minimum principal stresses.
scale (float) – Scale on the length of the vectors.
rotate (int) – Rotate lines by 90 deg, 0 or 1.
- Returns:
array – Vectors for section point 1.
array – Vectors for section point 5.
array – Principal stresses for section point 1.
array – Principal stresses for section point 5.
float – Maxium stress magnitude.