Mathematical modeling of gas-dynamic and radiative processes in experiments with the use of laser and heavy-ion beams