Understanding the effect of vortexes on sound propagation is of great significance in the field of target detection and acoustic imaging. A prediction algorithm of the two-dimensional vortex scattering is realized based on a finite-difference frequency-domain (FDFD) numerical scheme with perfectly matched layers (PML). Firstly, the governing equation for flow–sound interaction is given based on the perturbation theory, and the FDFD program is built. Subsequently, the mesh independence is verified, and the result has a good convergence when the mesh corresponds to over 15 nodes per wavelength. Then, computational parameters of the PML are discussed to achieve better absorbing boundary conditions. Finally, the results of this algorithm are compared with previous literature data. Results show that for different cortex scattering cases, the absorption coefficient should vary linearly with the density of the medium and the incident wave frequency. When the thickness of the PML boundary is greater than 2.5 times the wavelength, the PML boundary can absorb the scattering sound effectively. This provides a reliable algorithm for the numerical study of the effect of vortexes on sound propagation.