The invention discloses an electric carbon tracking method based on
electric power flow topological grid modeling, and solves the problems that the
electric power transmission path is not clear and the electric carbon factor calculation is not refined enough in various
voltage level
electric power grids. The method comprises the following steps: based on a
regional power grid architecture, establishing an
electrical load flow calculation model of an electrical carbon tracking standard grid; inputting power supply output,
transformer substation and line
power flow, generating a unit injection matrix, a
branch power flow distribution matrix and a
load distribution matrix, generating a node adjacency shunt matrix, calculating the proportion of outflow power line
power flow of each node, and generating a node adjacency shunt
coefficient matrix; calling a depth-first
search algorithm for the nodes, calculating
directed line paths from the starting node to the
tail end node, forming
shunting coefficients contributed by all paths from power flow generated by the starting node to the
tail end node, obtaining a power
distribution matrix in combination with the power injected into the starting node by the corresponding unit, and obtaining a power
distribution matrix according to the carbon
emission intensity of each power supply; a node
carbon potential matrix is obtained through calculation, and electric carbon tracking of a power supply layer, a
power grid layer and a load layer is achieved.