Finding Principle Stress in FEniCSx

Hello Everyone! I’m new to FEniCSx and wanted to ask if someone has a idea that what approach should I follow to find the principle stress in the FEniCSx?

As far as I am aware, you can do this through post-processing, similar to von Mises stresses, as done in: Coupling PDEs of multiple dimensions — FEniCS Workshop