An advanced gridless method for electromagnetic transient simulation