Stress analysis of a long compound bar