Simulation of unsteady muzzle flow of a small-caliber gun