Pipe stress analysis