Thermal analysis of an Axial Flux Permanent Magnet machine