Modeling and Simulation Studies of a Variable Speed Compressor