Topology-Aware Dynamic Power Flow Calculation Method for Power Grid Based on Graphormer-GE
Main Article Content
Abstract
To balance prediction accuracy and computational efficiency in grid modeling, this paper proposes Graphormer-GE, a topology-aware dynamic power flow calculation method. It not only reflects the steady-state power and voltage distribution at a certain moment but also characterizes the continuous evolution behavior of the system under the influence of time-varying factors such as topology disturbances, load fluctuations, and new energy integration. The proposed Graphormer-GE method addresses the dynamic power flow challenge by constructing a high-dimensional graph integrating electrical characteristics and real-time communication status from IoT devices. It embeds electrical distance and physical topology through a geometric encoding mechanism to enhance sensitivity to topology changes. By establishing a unified attention computation space and jointly modeling temporal evolution and spatial relationships among nodes, the expressive capability of the model is significantly improved. Furthermore, a dynamic graph update strategy incorporating communication link quality ensures stable performance in network-constrained environments. The proposed framework provides an effective computational paradigm for intelligent power systems and electromagnetic energy transmission networks requiring accurate state perception and propagation analysis. Experiments on the IEEE 300-node system demonstrate superior accuracy (MAE 0.037 p.u.) and response speed (Postfault Error 0.07 p.u.), while maintaining stable performance during topological disturbances (error within 0.05 p.u.) across diverse communication environments, confirming its practical value for distributed power system monitoring and reliable electromagnetic infrastructure operation.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
M. Fan, Z. Li, T. Ding, L. Huang, F. Dong, Z. Ren, et al., “Uncertainty evaluation algorithm in power system dynamic analysis with correlated renewable energy sources,” IEEE Transactions on Power Systems, vol. 36, no. 6, pp. 5602-5611, 2021, doi: 10.1109/TPWRS.2021.3075181.
Y. Liu, A. K. Singh, J. Zhao, A. S. Meliopoulos, B. Pal, M. A. bin Mohd Ariff, et al., “Dynamic state estimation for power system control and protection,” IEEE Transactions on Power Systems, vol. 36, no. 6, pp. 5909-5921, 2021, doi: 10.1109/TPWRS.2021.3079395.
Y. Li, C. Yu, M. Shahidehpour, T. Yang, Z. Zeng, and T. Chai, “Deep reinforcement learning for smart grid operations: Algorithms, applications, and prospects,” Proceedings of the IEEE, vol. 111, no. 9, pp. 1055-1096, 2023, doi: 10.1109/JPROC.2023.3303358.
T. Wang, S. Wang, S. Ma, J. Guo, and X. Zhou, “An extended continuation power flow method for static voltage stability assessment of renewable power generation-penetrated power systems,” IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 71, no. 2, pp. 892-896, 2022, doi: 10.1109/TCSII.2022.3209335.
T. Blenk and C. Weindl, “Fundamentals of state-space based load flow calculation of modern energy systems,” Energies, vol. 16, no. 13, pp. 4872, 2023, doi: 10.3390/en16134872.
B. Li, J. Liu, Y. Su, Q. Zhang, D. Zhang, and Z. Liu, “A Dynamic Power Flow Calculation Method for the “Renewable Energy–Power Grid– Transportation Network” Coupling System,” Energies, vol. 18, no. 7, pp. 1567, 2025, doi: 10.3390/en18071567.
W. Liao, B. Bak-Jensen, J. R. Pillai, Y. Wang, and Y. Wang, “A review of graph neural networks and their applications in power systems,” Journal of Modern Power Systems and Clean Energy, vol. 10, no. 2, pp. 345-360, 2021, doi: 10.35833/MPCE.2021.000058.
X. Liu, Y. Zhang, Z. Zhen, F. Xu, F. Wang, and Z. Mi, “Spatio-temporal graph neural network and pattern prediction based ultra-short-term power forecasting of wind farm cluster,” IEEE Transactions on Industry Applications, vol. 60, no. 1, pp. 1794-1803, 2023, doi: 10.1109/TIA.2023.3321267.
D. Beinert, C. Holzhüter, J. M. Thomas, and S. Vogt, “Power flow forecasts at transmission grid nodes using graph neural networks,” Energy and AI, vol. 14, Art. no. 100262, 2023, doi: 10.1016/j.egyai.2023.100262.
R. Ma, H. Sun, and L. Qin, “An emergency coordinated control strategy to improve the transient stability of a single-ended distribution network with flexible interconnection channel blocking,” Sensors, vol. 23, no. 20, pp. 8467, 2023, doi: 10.3390/s23208467.
M. Y. Mehmood, A. Oad, M. Abrar, H. M. Munir, S. F. Hasan, H. A. U. Muqeet, et al., “Edge computing for IoT-enabled smart grid,” Security and communication networks, vol. 2021, no. 1, Art. no. 5524025, 2021, doi: 10.1155/2021/5524025.
A. Althoubi, R. Alshahrani, and H. Peyravi, “Delay analysis in IoT sensor networks,” Sensors, vol. 21, no. 11, pp. 3876, 2021, doi: 10.3390/s21113876.
X. Feng, Y. Zhang, A. Gao, and Q. Hu, “Research on AUV Multi-Node Networking Communication Based on Underwater Electric Field CSMA/CA Channel,” Biomimetics, vol. 9, no. 11, pp. 653, 2024, doi: 10.3390/biomimetics9110653.
M. J. E. Alam, K. M. Muttaqi, and D. Sutanto, “Battery energy storage to mitigate rapid voltage/power fluctuations in power grids due to fast variations of solar/wind outputs,” Ieee Access, vol. 9, pp. 12191-12202, 2021, doi: 10.1109/ACCESS.2021.3051283.
J. B. Hansen, S. N. Anfinsen, and F. M. Bianchi, “Power flow balancing with decentralized graph neural networks,” IEEE Transactions on Power Systems, vol. 38, no. 3, pp. 2423-2433, 2022, doi: 10.1109/TPWRS.2022.3195301.
D. Chen, M. Chen, P. Wu, M. Wu, T. Zhang, and C. Li, “Two-stream spatio-temporal GCN-transformer networks for skeleton-based action recognition,” Scientific Reports, vol. 15, no. 1, pp. 4982, 2025, doi: 10.1038/s41598-025-87752-8.
X. Zhan, L. Kou, M. Xue, J. Zhang, and L. Zhou, “Reliable long-term energy load trend prediction model for smart grid using hierarchical decomposition self-attention network,” IEEE Transactions on Reliability, vol. 72, no. 2, pp. 609-621, 2022, doi: 10.1109/TR.2022.3174093.
Z. Tao, C. Wu, Y. Liang, K. Wang, and L. He, “LW-GCN: A lightweight FPGA-based graph convolutional network accelerator,” ACM Transactions on Reconfigurable Technology and Systems, vol. 16, no. 1, pp. 1-19, 2022, doi: 10.1145/3550075.
J. Han, N. Liu, and J. P. S. Catalão, “Optimization of distribution network and mobile network with interactive balance of flexibility and power,” IEEE Transactions on Power Systems, vol. 38, no. 3, pp. 2512-2524, 2022, doi: 10.1109/TPWRS.2022.3180792.
J. Wang and J. Ren, “Graphormer based contrastive learning for recommendation,” Applied Soft Computing, vol. 159, Art. no. 111626, 2024, doi: 10.1016/j.asoc.2024.111626.
S. Yu, Y. Wang, L. Chen, X. Zhang, and J. Li, “3D hand pose and mesh estimation via a generic Topology-aware Transformer model,” Frontiers in Neurorobotics, vol. 18, Art. no. 1395652, 2024, doi: 10.3389/fnbot.2024.1395652.
Z. Wang, Y. Hu, R. Zhong, B. Hu, D. Cheng, Y. Feng, et al., “St-Graphormer: spatio-temporal graph transformer for end-to-end traffic forecasting,” The Journal of Supercomputing, vol. 81, no. 8, pp. 1-25, 2025, doi: 10.1007/s11227-025-07354-z.
C. Wang, Y. Wang, Z. Ding, T. Zheng, J. Hu, and K. Zhang, “A transformer-based method of multienergy load forecasting in integrated energy system,” IEEE Transactions on Smart Grid, vol. 13, no. 4, pp. 2703-2714, 2022, doi: 10.1109/TSG.2022.3166600.
H. Toroslu I, “The Floyd-Warshall all-pairs shortest paths algorithm for disconnected and very sparse graphs,” Software: Practice and Experience, vol. 53, no. 6, pp. 1287-1303, 2023, doi: 10.1002/spe.3188.
N. A. M. Nordin, S. S. R. Shariff, S. S. Supadi, and I. Masudin, “Modelling the Shortest Path for Inner Warehouse Travelling Using the Floyd– Warshall Algorithm,” Mathematics, vol. 12, no. 17, pp. 2698, 2024, doi: 10.3390/math12172698.
B. Dokhniak and V. Khavalko, “Graph neural networks for traffic flow prediction: innovative approaches, practical usage, and superiority in spatio-temporal forecasting,” Bulletin of National Technical University" KhPI". Series: System Analysis, Control and Information Technologies, pp. (2 (14)):34-39, 2025, doi: 10.20998/2079-0023.2025.02.05.
G. Chen, S. Chen, D. Li, and C. Chen, “A hybrid deep learning air pollution prediction approach based on neighborhood selection and spatio-temporal attention,” Scientific Reports, vol. 15, no. 1, pp. 3685, 2025, doi: 10.1038/s41598-025-88086-1.
Y. Gao, L. Liang, T. Su, and M. Pan, “An embedded spatiotemporal hybrid model integrating multi-graphs and attention-driven fusion for single-and multi-site photovoltaic power forecasting,” Energy Conversion and Management, vol. 336, Art. no. 119897, 2025, doi: 10.1016/j.enconman.2025.119897.
Z. Cheng, C. Yan, F. X. Wu, and J. Wang, “Drug-target interaction prediction using multi-head self-attention and graph attention network,” IEEE/ACM Transactions on Computational Biology and Bioinformatics, vol. 19, no. 4, pp. 2208-2218, 2021, doi: 10.1109/TCBB.2021.3077905.
B. Wang and J. Wang, “ST-MGAT: Spatio-temporal multi-head graph attention network for Traffic prediction,” Physica A: Statistical Mechanics and its Applications, vol. 603, Art. no. 127762, 2022, doi: 10.1016/j.physa.2022.127762.
C. Shao, K. Li, T. Qian, M. Shahidehpour, and X. Wang, “Generalized user equilibrium for coordination of coupled power-transportation network,” IEEE Transactions on Smart Grid, vol. 14, no. 3, pp. 2140-2151, 2022, doi: 10.1109/TSG.2022.3206511.
L. N. Liu and G. H. Yang, “Distributed optimal economic environmental dispatch for microgrids over time-varying directed communication graph,” IEEE Transactions on Network Science and Engineering, vol. 8, no. 2, pp. 1913-1924, 2021, doi: 10.1109/TNSE.2021.3076526.
S. Chen, Y. Zhang, and Q. Yang, “Multi-task learning in natural language processing: An overview,” ACM Computing Surveys, vol. 56, no. 12, pp. 1-32, 2024, doi: 10.1145/3663363.
A. Wang, Y. Ye, X. Song, S. Zhang, and J. J. Yu, “Traffic prediction with missing data: A multi-task learning approach,” IEEE Transactions on Intelligent Transportation Systems, vol. 24, no. 4, pp. 4189-4202, 2023, doi: 10.1109/TITS.2022.3233890.
Y. Zhang and Q. Yang, “A survey on multi-task learning,” IEEE transactions on knowledge and data engineering, vol. 34, no. 12, pp. 5586-5609, 2021, doi: 10.1109/TKDE.2021.3070203.