Identifying compressive and tensile stress

Dear All,

I have run a LAMMPS code to calculate the stress in the nanobeam which is subjected to bending. While plotting, I get a uniform stress distribution but I want to distinguish the compressive stress and tensile stress. What is the method for doing it?