heat produced in a ball mill calculation