It's easy. Just add uniform mass of water displaced by the pipe. It called "added mass" method