The grid codes generation for solving problems of the cosmic plasma hydrodynamics on supercomputers