How to input initial principal stress which orientation is not aligned with mesh XY?

Hi 

I am wondering if there is an easy way to input initial stress for each element when known initial principal stress orientation is not aligned with mesh XY. For example in the below figure, I know initial principal stress of S1 and S2, but their orientation is 45 degree with respective to mesh X direction. But in Abaqus, I have to input initial stress for each element ( S11, S22, S33, S12, S13, S23) in define XYZ direction. In my 3D problem, in Z direction, every mesh has different S1 and S2. How do I input these initial stress for each element? Thanks

Abaqus ​​​​​​​