Mathematical modeling of laser induced heating and melting in solids