Analytical approach for entropy generation during a laser‐pulse heating process