Two applications of a numerical approach of heat transfer process within rock beds