A vircator with an inhomogeneous external magnetic field superimposed onto the cathode-anodevirtual cathode potential well was studied by methods of computer modeling. It is shown that the application of such additional field allows a significant (almost fivefold) increase in the microwave generation efficiency, which is explained by the gyrotron effect development.