About the atom stress MD simulation

How to caculate stress? thanks