ARTIFICIAL INTELLIGENCE DESIGN AND OPTIMIZATION OF PMSM BY USING THE THERMAL BEHAVIOUR OF FLUID DYNAMICS