Tackling critical pipe stress with FEM