Nanofluid heat transfer within a pipe equipped with external device