Analysis of transformer core behaviour under transient conditions for the study of series ferroresonant circuits