Calculational methods for nuclear heating. Part I. Theoretical and computational algorithms