Text this: Electromagnetic transients in transformer and rotating machine windings