Numerical modelling of heat generation in porous planetesimal collisions