Software-based performance estimation and real-time thermal analysis of brushless direct current motor with corroded permanent magnets. (October 2018)