A rotary electric machine unit according to a first aspect includes: a rotary electric machine that has an annular stator, a rotor disposed on an inner side of the stator, and a housing accommodating the stator and the rotor therein; and an electric power conversion device that converts an electric power to be supplied to the rotary electric machine from DC power to AC power. The electric power conversion device includes a plurality of power modules having semiconductor devices constituting upper and lower arm circuits and being attached to the housing individually from each other. The housing includes: a housing flow path through which a refrigerant flows; a first cooling part that extends along an outer peripheral surface of the stator and cools the rotor with the refrigerant flowing in the housing flow path; and a second cooling part that cools the power modules with the refrigerant flowing in the housing flow path. The plurality of power modules are arranged along the second cooling part in a circumferential direction about a centerline of the rotor.
According to the first aspect, since the first cooling part of the housing extends along the outer peripheral surface of the stator, the first cooling part can cool the stator in a wider range. Further, since the plurality of power modules, which are separately attached to the housing, are arranged along the second cooling part of the housing, the plurality of power modules can be individually cooled by the second cooling part. In addition, each of power modules can be individually arranged at a location or in a position so that the cooling effect by the second cooling unit is enhanced. Therefore, the cooling effect of the power module by the second cooling unit is readily enhanced. Accordingly, the cooling effect can be enhanced for both of the rotary electric machine and the electric power conversion device.