It depends on the software you use. Most of the common purpose FE software (Abaqus, Marc, Ansys, Comsol etc.) have user subroutine interfaces in which you can program a moving volumetric heat source. You need to write a simple Fortran code to do that.