Here is Canvas object wihch demonstrate the problem.


The axial force P will compress the shaft, creating a uniform normal stress given by:

σaxial=PA

where A is the cross-sectional area of the shaft.


The torque T will twist the shaft, creating a shear stress given by:

τ=TcJ

where c is the outside radius of the shaft and J is the polar moment of inertia.