Math model of metal heating under action by laser