Hello Matthias,
it would be possible, if You take a larger calculation region for the pipe wall and perform there the temperature ADE with the wall material temperature conductivity -> other relaxation time. The velocity in the pipe must be set to 0. The heat flux to the environment must be defined as a source term, but possibly there must be written some new boundary condition.
Kind regards,
Fedor