Draw Mohr circles of stress tensor

This example shows how to automatically draw the Mohr circles from a given stress tensor.

Create a random stress tensor

from elasticipy.tensors.stress_strain import StressTensor
s = StressTensor.rand(seed=123) # Use seed to ensure reproducibility
print(s)
Stress tensor
[[0.68235186 0.11909641 0.57185244]
 [0.11909641 0.1759059  0.54433445]
 [0.57185244 0.54433445 0.81975456]]

Draw the corresponding Mohr circles

fig, ax = s.draw_Mohr_circles()
Mohr circles

Total running time of the script: (0 minutes 0.110 seconds)

Gallery generated by Sphinx-Gallery