In the above code that gives the graph of stress versus strain. I want to get the graph of pressure versus strain. as you know the relationship between pressure and stress is :
P = 1 / 3 Tr [stress]
How do I enter this formula to in the code and plot the graph of pressure versus strain?
Graphene is a 2D system, the use of pressure may be not suitable.