Dynamic harmonic domain modelling of synchronous machine and transmission line interface