A compressor unit comprises a centrifugal compressor (1) for compressing a
gas, having a rotor (2) with one or more compressor impellers (3), and an
electric motor (4) having a stator (5) and a rotor (6), for driving the
rotor (2) of the compressor. The compressor and the electric motor are
accommodated in a common gas-tight housing (7) which is provided with a
gas inlet (8) and a gas outlet (9). The rotor of the compressor and the
rotor of the electric motor are arranged on a common rotor shaft (10)
which is mounted in magnetic bearings (11, 12, 15). The rotor shaft (10)
comprises a single unit and is mounted in two radial magnetic bearings
(11, 12), each in the vicinity of one end of the common rotor shaft, and
one axial magnetic bearing (15), which is arranged in the vicinity of one
(11) of the radial bearings.