For the volume of revolution deformed by another volume of revolution, a grid generation algorithm is suggested. The algorithm is designed for multimaterial hydrodynamic simulation and for solving other physical and engineering problems. The algorithm represents the non-stationary procedure generating three-dimensional structured grids in domains with moving boundaries. The algorithm is developed within the variational approach for constructing optimal curvilinear grids. The volume of revolution is obtained by the rotation about the axis through 180° of a plane generatrix curve consisting of straight line segments and arcs of circles. The non-stationary algorithm is the iterative process at each stage of which the deformation of a grid and ...