The housing flow path 711 may not go around the housing 703 in the circumferential direction γ. For example, the housing flow path 711 may not be provided in the portion of the housing 703 that extends along the flow path 126 of the power module 110. Even in this configuration, the power module 110 can be cooled from the inside by the refrigerant flowing through the flow path 126. Further, the housing flow path 711 may be provided with respect to the end surface of the housing 703. For example, it is assumed that the housing flow path 711 is provided at an end face portion forming the end face of the housing 703. In this configuration, the end face portion serves as a cooling portion having thermal conductivity, and this cooling portion can cool the stator 701 from the outside in the axial direction α. Further, the power module 110 and the smoothing capacitor C2 may be attached to the end face portion.
It is sufficient that at least a part of the power module 110 and at least a part of the smoothing capacitor C2 is aligned with the housing flow path 711 in the radial direction β. Further, the power module 110 and the smoothing capacitor C2 may not be aligned with the housing flow path 711 in the radial direction β. That is, the power module 110, the smoothing capacitor C2, and the housing flow path 711 may be arranged at positions displaced from each other in the radial direction β or the circumferential direction γ.