Modelling and analysis of switched reluctance motor by