An aerodynamic inverse design method, which is used in compressors, is introduced in this paper. This inverse design method is based on the exact solution of the local Riemann problem on moving blade surfaces. Furthermore, an improved relaxation factor is added to control the induced velocity for reasonable deformation sizes in different cases. The viscous flow analysis and the inverse design are integrated in the computational fluid dynamics software ANSYS Fluent using the dynamic mesh user-defined function, which reduces the time spent on remeshing the computational domain. A compressor cascade is taken to illustrate the effect of this inverse design method. Using the compressor model, the case of a different loading pattern design under a high subsonic flow regime and the case of a loading smooth design under a transonic flow regime have proved the capability of this inverse design method to realize the prescribed pressure loading distribution.