This paper introduces how to use the COSMOSFloWorks software,which is integrated with SolidWorks software, to simulate the internal flow and analysis the performance of the centrifugal compressor . The result provide a basis for the design and optimization of the impeller. Then through the COSMOSWorks module to calculate the intensity and optimize the design of the centrifugal compressor.