Heat recovery/residual heat solutions for using thermal energy