Calculates the canonical axial stresses on the element based on strain gauges measurements.
Calculates the normal stresses on the element based on it's canonical strains.
Calculates the principal stresses on the element based on it's canonical stresses.
Calculates the normal and shear stresses on any orientation based on the element canonical stresses.
Calculates the Von Mises stress on the element based on it's Cauchy's stress tensor.
Problem and Standard Solution:

import stressmodule as sm
import numpy as np
# Cauchy Stress Tensor:
cauchy = np.matrix([
[100, -48],
[-48, 60]
])
# Plans Orientation:
plan_orientation=30
sm.stress_state(cauchy, plan_orientation)Let's solve the other two:
import stressmodule as sm
import numpy as np
# Cauchy Stress Tensor:
cauchy = np.matrix([
[50.93, 17.90],
[17.90, 0]
])
# Plans Orientation:
plan_orientation=60
sm.stress_state(cauchy, plan_orientation,2) import stressmodule as sm
import numpy as np
# Cauchy Stress Tensor:
cauchy = np.matrix([
[-80, -60],
[-60, -120]
])
# Plans Orientation:
plan_orientation=45
sm.stress_state(cauchy, plan_orientation,2)Hope you enjoyed! 😁 Please, consider hitting the star button!!!