DrAmine
Ansys Employee

Your UDF looks correct for the energy source term. Same is to be found in the customization manual. The reported heat reate is negative so it will be positive on the fluid side.