Load bearing lugs generate local bending stresses on thin walled shells such as pipe or vessels; these stresses can easily be reduced by optimizing the material arrangement.
There are several methods for calculating the shell stresses which are covered in publications on the theory of plates and shells.
This short video introduces visual concepts on the most common lug designs.
This is a video that is of interest to design and maintenance engineers.
(Click image to launch video)