Modeling of thermal stresses during hardening the product surface by thermal pulse