Modelling the pore level heat transfer in porous media using the immersed boundary method