Abstract
The construction of high-quality computational grids plays an essential role in obtaining highprecision results in the problems of calculating the external high-speed flow around bodies. The priority task is to adapt the computational grid to discontinuities, primarily to leading edge shock waves. In this paper, a variant of the algorithm for adapting the computational grid as a mechanical system with elastic connections to the flow field containing the bow shock wave is considered. As a result of applying the algorithm to a typical structured computational grid, it is rebuilt in areas of a large field gradient by drawing grid lines into the shock area while maintaining the quality of grid elements. The considered problems show the possibility of applying the described algorithm to real problems of external flow.