You can't compute a stress unless you know the cross-section. So ...
1) In the case of a valve, the cross section varies along the length of the element.
2) The piping attached to a rigid element will become over-stressed long before the rigid element will.
_________________________
Regards,
Richard Ay - Consultant