Generalized 3D-numerical wave tank for studying floating body dynamics