A GIS topology-based power outage space simulation method
By constructing a global hypergraph nested network model and virtual sandbox concurrent simulation, the problems of macroscopic and microscopic separation and lack of geographical constraints in power grid topology modeling are solved, and accurate identification of power outage range and efficient location of weak links in the grid are achieved.
Patent Information
- Application Number
- CN202611268895.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-20
AI Technical Summary
In existing power grid topology modeling, the macro-grid and micro-equipment are separated, making it impossible to accurately locate outage components, calculate the outage range without geographical constraints, and make it difficult to evaluate multiple contingency plans and identify weak links in the grid structure.
A global hypergraph nested network model covering external grid structure and micro-station wiring is constructed. Constrained space expansion calculation is performed by combining electrical severity characteristics and geographical blocking entities. Multiple contingency plans are simulated concurrently using parallel virtual sandboxes. Overlapping blind areas are extracted through topological Boolean operations and back-mapped to the global hypergraph nested network model.
It enables precise location of the power outage area, renders the disaster boundary that matches the real terrain, identifies overlapping blind spots where power cannot be restored, provides objective data for decision-making on weak links in the power grid, and improves assessment efficiency.
Smart Images

Figure CN123139544A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power geographic information technology, specifically to a method for simulating power outage space based on GIS topology. Background Technology
[0002] Analysis of power outage extent in distribution networks is fundamental to power grid dispatching and emergency repairs. Combining geographic information systems (GIS) with outage spatial simulation can visually display the status of affected areas, providing data support for the allocation of repair resources.
[0003] In existing power grid topology modeling, the external transmission line network is typically treated separately from the internal facilities of substations, often simplifying the entire substation as a single node in the network. This modeling approach severs the electrical connection between the macroscopic power grid and the microscopic equipment within the substation. When performing fault topology tracing, system analysis can only reach the substation level, failing to further identify the opening and closing status of specific switching equipment within the substation. This can lead to interruptions or deviations in the tracing process within the substation, making it impossible to confirm the affected set of underlying components.
[0004] After identifying the components affected by the power outage, existing simulation systems often employ geometric methods that generate fixed buffer zones to map the spatial extent of the outage. This calculation process relies primarily on the physical distance or topological hierarchy between nodes, failing to incorporate the electrical severity of the fault itself. Furthermore, this process neglects the blocking effect of terrain features, water barriers, or non-powered areas on the spatial impact of the actual geographical environment, resulting in errors between the final generated outage area polygon and the actual disaster boundary.
[0005] Furthermore, after a fault occurs, the system generates multiple load transfer plans to attempt to restore power to non-faulty areas. Existing plan evaluation mechanisms mostly employ serial calculations, which become increasingly time-consuming and memory-intensive as the amount of data in the power grid model nodes increases. Moreover, current evaluations focus on verifying the connectivity of a single plan, failing to perform joint intersection analysis of the remaining outage areas after the execution of multiple different plans at the spatial geometric level. Therefore, the system struggles to effectively identify overlapping areas where, under the existing grid structure, power cannot be restored regardless of conventional switching operations, thus failing to accurately locate and identify fundamental weaknesses in the grid structure. Summary of the Invention
[0006] To address the shortcomings of existing technologies, this invention provides a power outage spatial simulation method based on GIS topology, which solves the technical problems of macro-micro topological fragmentation, lack of actual geographical constraints on the power outage range, and difficulty in efficiently locating weak links in the network structure during multi-plan simulation.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a power outage spatial simulation method based on GIS topology, comprising: Construct a global hypergraph nested network model that encompasses both the external network structure and the internal wiring of micro-stations; In response to a fault event, the set of power outage components is obtained by topology tracing in the global hypergraph nested network model, and the electrical severity characteristics of the fault point are mapped to the extended impedance coefficient. By combining the geographical blocking entity with the expansion impedance coefficient, and taking the set of power outage components as the starting point, a confined space expansion calculation is performed to generate an initial power outage polygon. Starting from the boundary node of the set of power outage components, search for the normally open tie switch in the global hypergraph nested network model, and generate a load transfer plan based on the power restoration constraints. Use a parallel virtual sandbox to perform concurrent deduction on the global hypergraph nested network model based on each plan, and output the deduction polygon corresponding to each plan. Perform topological Boolean operations on multiple derived polygons to extract overlapping blind areas, and then back-map these overlapping blind areas to the global hypergraph nested network model to output network weakness warning information.
[0008] Furthermore, the graph theory modeling principle for constructing a global hypergraph nested network model encompassing the external network structure and micro-station wiring is as follows: the system abstracts the external network structure with geographical coordinates into macro-nodes and regular edges, while encapsulating the micro-station wiring without absolute geographical coordinates as micro-station hyperedges containing local isomorphic mapping matrices. By combining macro-nodes, regular edges, and micro-station hyperedges, a cross-dimensional global hypergraph nested network model is constructed, whose algebraic structure is expressed as:
[0009] in, Represents a macroscopic node. Represents a regular edge. Represents the super-edge within the micro-station. This is a connection mapping protocol for macro and micro dimensions. During topology tracing, if the tracing path is in the external network structure, the system traverses along the regular edges. When it reaches a super-edge within a micro-station, the system stops the regular graph theory node traversal and instead activates the local isomorphic mapping matrix for dimensionality reduction calculation. This allows for the penetration and identification of internal conductive loops until the switch in the off state is reached, thereby achieving seamless connection between the macroscopic path and the microscopic matrix loop. All components traversed along the path are then aggregated to form the power outage component set.
[0010] Furthermore, to mitigate the risk of memory overflow caused by concurrent simulations, the system pre-extracts the state attribute vectors of macroscopic nodes and microscopic intra-station hyperedges, and uses a strong collision-resistant hash algorithm to generate unique hash anchors to characterize the model's steady state. During concurrent simulations, the system allocates virtual sandboxes in the underlying logical virtual memory, parallel to the number of pre-planned scenarios, to calculate the topological state changes caused by the pre-planned scenarios. First, differential comparison is performed to filter out the affected set where hash anchors have mutated. Then, within the sandbox, write-on-write instantiation and reorganization are performed only for the affected set, and a dedicated independent stack is allocated. The remaining unaffected network data is shared in read-only mode through virtual memory pointers. After concurrent instantiation and reorganization are completed in each parallel virtual sandbox, the system independently performs constrained space expansion calculations on the reconstructed global hypergraph nested network model and outputs the corresponding simulated polygons.
[0011] Furthermore, in the confined space expansion calculation, the system inputs electrical topology features (i.e., the extracted fault point voltage level and the topology depth in the network model) into the mapping function, converting them into expansion impedance coefficients at the GIS spatial scale:
[0012] The system extracts natural barriers and non-powered areas from the GIS base map to establish a spatial physical resistance distribution matrix. Components with geographic coordinates from the power outage component set are extracted as radiation seed points. The system advances layer by layer in a wavefront pattern along the discrete grid, rigorously calculating the cumulative cost of spatial expansion. When the cumulative cost reaches the attenuation threshold or touches the blocking insulation boundary, the expansion calculation stops, and a computational geometry algorithm is invoked to connect the stopping points to form an outer envelope, rendering a closed initial power outage polygon.
[0013] Furthermore, when identifying weak points in the network structure, the system performs a Boolean operation on the topological intersection of all derived polygons in the GIS coordinate system to extract unavoidable spatial overlap blind spots. The system then establishes an inversion mapping function, employing bounding box collision detection combined with a ray-through algorithm to project purely geographic spatial closed polygons back to the underlying ledger asset layer. This process penetrates and extracts network nodes falling into these areas, marking them as weak points in the network structure planning for comprehensive output.
[0014] This invention provides a method for simulating power outage space based on GIS topology. It has the following beneficial effects: 1. To address the shortcomings of traditional models that treat substations as black boxes, leading to topological blind spots, this solution constructs a global hypergraph nested network model encompassing both the external network structure and the micro-level internal wiring. This architecture breaks down the dimensional barriers between the macro-level power grid and the micro-level equipment, allowing the tracing pointer to directly penetrate down to the substation switch level when responding to faults. This effectively eliminates tracing omissions caused by ignoring internal equipment changes, deepening the accuracy of outage range detection from the coarse line level to specific underlying components.
[0015] 2. Addressing the technical limitations of traditional power outage methods that lack realistic geographical boundary constraints, this solution maps the electrical severity of the fault point to an expanding impedance coefficient and performs constrained spatial expansion calculations by combining this with geographically isolated entities on the base map. This allows abstract electrical characteristics to be objectively quantified as propagation resistance, with wavefront advancement strictly constrained by terrain barriers and physical attenuation laws. The final rendered power outage polygon is no longer an idealized geometric circle, but a highly detailed disaster boundary outline that closely matches the real terrain.
[0016] 3. To address the issues of stuttering and difficulty in defining system dead zones caused by serial simulations, this solution utilizes a parallel virtual sandbox to conduct concurrent simulations of multiple load transfer plans. Subsequently, topological Boolean operations are performed on the generated polygons. The sandbox mechanism enables memory reuse and rapid evaluation; while spatial intersection operations geometrically isolate overlapping blind zones that cannot be restored under multiple plans. By mapping these blind zones back to the underlying topology, hidden systemic weaknesses can be accurately identified, providing objective data-driven decision-making for targeted reinforcement of the power grid. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a schematic diagram of the topology of the global hypergraph nested network model of the present invention; Figure 3 This is a schematic diagram illustrating the confined space expansion and initial power outage polygon generation of the present invention; Figure 4 This is a diagram of the parallel virtual sandbox and copy-on-write memory management architecture of the present invention; Figure 5 This is a schematic diagram of spatial geometric Boolean intersection and overlapping blind zone inversion according to the present invention; Figure 6 This is a block diagram of the power outage space simulation device based on GIS topology of the present invention; Figure 7 This is a hardware topology diagram of the electronic device of the present invention. Detailed Implementation
[0018] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] Please see the appendix Figure 1 -Appendix Figure 7 This invention provides a method for simulating power outage space based on GIS topology, comprising the following steps: Construct a global hypergraph nested network model that encompasses both the external network structure and the internal wiring of micro-stations; In response to a fault event, the set of power outage components is obtained by topology tracing in the global hypergraph nested network model, and the electrical severity characteristics of the fault point are mapped to the extended impedance coefficient. By combining the geographical blocking entity with the expansion impedance coefficient, and taking the set of power outage components as the starting point, a confined space expansion calculation is performed to generate an initial power outage polygon. Starting from the boundary node of the set of power outage components, search for the normally open tie switch in the global hypergraph nested network model, and generate a load transfer plan based on the power restoration constraints. Use a parallel virtual sandbox to perform concurrent deduction on the global hypergraph nested network model based on each plan, and output the deduction polygon corresponding to each plan. Perform topological Boolean operations on multiple derived polygons to extract overlapping blind areas, and then back-map these overlapping blind areas to the global hypergraph nested network model to output network weakness warning information.
[0020] This document outlines the steps for constructing a global hypergraph nested network model encompassing both the external power grid structure and the internal wiring of substations. Traditional power grid topology models are mostly limited to single macroscopic node representations, neglecting the equipment status within substations. This embodiment establishes a cross-dimensional mathematical expression that integrates the macroscopic transmission network structure with absolute geographical coordinates with the internal microscopic wiring of substations, which lacks absolute coordinates.
[0021] The global hypergraph nested network model is instantiated in memory as a multivariate algebra structure. Its rigorous mathematical definition is expressed by the following formula:
[0022] in, It represents a set of macroscopic nodes, that is, an external network device entity with unique WGS84 absolute geographic coordinates.
[0023] Represents a set of regular edges, used to characterize external transmission lines, connecting... The various macroscopic nodes in the process.
[0024] This represents a set of micro-level superedges within the station. From a macro-topological perspective, a superedge is equivalent to an independent entity, but it contains nested micro-level switches and bus components within the station that do not have absolute geographical coordinates.
[0025] This is a set of mapping functions responsible for defining the connection protocol at the boundary between macro and micro dimensions. Specifically, it binds the endpoint coordinates of external regular edges with the physical port identifiers of incoming and outgoing lines of micro-station super-edges using hash key-value pairs, ensuring that the power grid topology traversal logic maintains connectivity when crossing dimensions.
[0026] In response to the aforementioned fault events, the system employs topology tracing in the global hypergraph nested network model to obtain the set of outage components and maps the electrical severity characteristics of the fault point to the extended impedance coefficient. After detecting a power grid fault trip signal, the system triggers a topology graph traversal algorithm with the fault initiation point as the root node.
[0027] Based on the current open / closed state of the circuit breaker and disconnector, the traversal algorithm performs depth mining along the connected regular edges and the super edges within the micro-station, and includes all power-out components reached along the way into the power-out component set.
[0028] The system further extracts the rated operating voltage at the fault initiation point and the network depth parameters of the fault point from the core power node, establishes a mapping benchmark, and converts the pure electrical topology features into an extended impedance coefficient that can be rendered and calculated in GIS space. This extended impedance coefficient constitutes the basis for attenuation of the subsequent outward spread of the power outage's impact range.
[0029] The system performs confined space expansion calculations based on the aforementioned combination of geographic blocking entities and the expansion impedance coefficient, starting with the set of power outage components, to generate an initial power outage polygon. The system directly calls the underlying GIS spatial analysis engine to extract features from the digital elevation model base map, identifying geological barriers such as rivers and mountains, as well as administrative restricted areas, and solidifying them as geographic blocking entities.
[0030] The system uses the physical coordinates of each component within the aforementioned power outage component set as the radiation center. Under the constraints of impedance coefficient attenuation and the rigid boundary limitations of geographically blocked entities, it calculates the geometric outline of the spatial spread of the fault. The closed outline is immediately rendered as the initial power outage polygon, visually defining the original affected area of the fault.
[0031] To generate the aforementioned load transfer plans, a parallel virtual sandbox is used to concurrently deduce the global hypergraph nested network model based on each plan, outputting the steps of the deduced polygons corresponding to each plan. To eliminate the impact of power outages, the system automatically generates multiple load transfer plans to adjust the state of power grid switches. Specifically, starting from the boundary nodes of the set of power outage components, the system performs a breadth-first topology search outward in the global hypergraph nested network model to find tie switches that are normally open. Based on the set power restoration constraints (specifically including: the current carrying capacity of the target line after transfer does not exceed the rated thermal stability limit, the voltage drop amplitude of each node does not exceed 5%, and the topology always maintains a radial operation), the system finds tie switches with remaining capacity and closes them according to the principle of nearest restoration and capacity verification, and simultaneously finds the nearest sectionalizing switch upstream of the fault point and disconnects it to isolate the fault. This paired switching operation instruction set is encapsulated into an independent load transfer plan.
[0032] Traditional simulations often require sequential execution, which is inefficient. This embodiment requests and allocates parallel virtual sandbox space from system memory, strictly commensurate with the number of scenarios. Within the sandbox, the system independently applies the on / off switching instructions of the scenarios, triggering the underlying instantiation and reorganization of the network model, and synchronously and concurrently performs the confined space expansion calculation again, thereby outputting the polygon results after simulation for different scenarios.
[0033] The system performs topological Boolean operations on multiple derived polygons to extract overlapping blind spots, maps these blind spots back to the global hypergraph nested network model, and outputs network weakness warning information. The system collects all concurrently output geometric data of the derived polygons and performs low-level geometric space intersection operations.
[0034] This operation extracts overlapping power outage areas that cannot be eliminated regardless of the load transfer plan implemented, i.e., overlapping blind spots. The system uses built-in reverse mapping rules to perform a penetrating search within the global hypergraph nested network model using the spatial coordinates of these overlapping blind spots, selecting network nodes falling within this range. These nodes are explicitly identified as absolute weak points under the current power grid physical architecture and the coverage capacity of control plans. The system then transforms these into early warning information for comprehensive output.
[0035] This embodiment elaborates on the process of constructing the global hypergraph nested network model. First, the external network structure with geographic coordinates is abstracted into macro-level nodes and regular edges. The system directly reads the base map data from the power grid geographic information system and parses the latitude and longitude spatial location information of the physical equipment. Based on the parsing results, equipment objects with absolute geographic coordinates, such as transmission towers and main grid branch points, are instantiated as macro-level nodes. Simultaneously, overhead lines or underground cables connecting the aforementioned physical equipment are instantiated as regular edges, and the physical length and conductor cross-section parameters of the lines are extracted and converted into the inherent topological weights of these regular edges, completing the graph theory structure abstraction at the macro-level topology.
[0036] In this invention, the micro-level wiring within a substation, which lacks absolute geographic coordinates, is encapsulated as a micro-level intra-substation hyperedge containing a locally isomorphic mapping matrix. Substations or distribution rooms contain densely packed micro-devices such as busbars, circuit breakers, and disconnectors. These devices appear as single spatial coordinate points in a conventional geographic coordinate system, making it impossible to directly expand the topology according to conventional spatial dimensions. The system packages the entire intra-substation micro-space as a single, independent micro-level intra-substation hyperedge object.
[0037] Within the hyperedge of the microstation, the system constructs a local isomorphic mapping matrix to finely maintain the electrical topology connectivity of the micro-devices. This local isomorphic mapping matrix is expressed by the following algebraic formula:
[0038] in, Represents a local isomorphism mapping matrix; This represents the total number of micro-components contained within the super-edge of the micro-station. Indicates internal micro-components with micro-components The electrical connection state variable between components. If there is a closed-circuit electrical connection between components, then a value is assigned. If it is in a disconnected state or has no physical connection, then assign a value. During dynamic operation of the power grid or concurrent simulation, if a micro-device undergoes a switching change, the system directly locates the corresponding row index of that device in the local isomorphic mapping matrix based on the change operation command. With column index And it uses a local overwrite mechanism to instantly update matrix elements. and its symmetric elements The dynamic real-time maintenance of microscopic topological connectivity is achieved by inverting and updating the Boolean value between 0 and 1 (since the pure physical conductive connection inside the substation has the characteristics of an undirected graph, the local isomorphic mapping matrix is a strictly symmetric matrix).
[0039] The system constructs a global hypergraph nested network model by combining the macroscopic nodes, regular edges, and microscopic intra-station hyperedges. Using the incoming and outgoing physical ports of the microscopic substation as boundary anchor points, the system seamlessly integrates the encapsulated microscopic intra-station hyperedges into the backbone network composed of macroscopic nodes and regular edges. Through cross-dimensional fusion and splicing, the system generates a global hypergraph nested network model that combines wide-area spatial span with intra-station microscopic depth.
[0040] In this embodiment, after constructing the global hypergraph nested network model, the system further extracts the state attribute vectors of the macro-nodes and the hyperedges within the micro-stations. The steady-state operation of the network model directly depends on the current operating state of all circuit breakers, disconnectors, and line segments within the network. The system traverses the model to extract the operating parameter sets of the macro-nodes and the local isomorphic mapping matrix data of the hyperedges within each micro-station.
[0041] The system uses a dimensionality reduction and concatenation operation to transform the extracted multidimensional discrete state parameters into a one-dimensional high-order state attribute vector. The construction logic is expressed by the following formula:
[0042] in, Represents the aggregated state attribute vector; Represents the set of macroscopic node on / off states extracted; The set of topological weights representing regular edges; This represents the matrix vectorization operator, used to map two-dimensional locally isomorphic matrices. A consistent column-first approach is used to unfold and concatenate the hash values into a one-dimensional sequence to ensure consistency in hash value generation.
[0043] A unique hash anchor is generated on the state attribute vector using a collision-resistant secure hash algorithm (such as SHA-256) to represent the current steady state of the global hypergraph nested network model. To achieve high-concurrency contingency simulation, the system abandons the method of comparing all topological data and introduces cryptographic hash calculation. The system inputs the high-order state attribute vector into a preset collision-resistant hash function for one-way compression operation.
[0044] The formula for generating this hash anchor is as follows:
[0045] in, Represents the unique hash anchor value generated; This represents the selected hash function algorithm.
[0046] The system stores the calculated hash anchors in memory as global digital fingerprints representing the physical wiring and operational status of the network at that moment. Any micro or macroscopic switching action in the power grid will immediately cause the newly generated hash anchors to undergo an avalanche-like mutation, thus providing the lowest-level data support structure for the system to accurately locate topological differential regions.
[0047] This embodiment elaborates on the topology tracing process in the global hypergraph nested network model. After receiving a fault message from the relay protection device, the system parses the message data to accurately locate the fault origin. Using this fault origin as the root node, the system triggers a breadth-first electrical connectivity tracing algorithm with a loop prevention mechanism and a set of visited node markers in the global hypergraph nested network model to avoid endless infinite loop traversal in the ring power grid topology.
[0048] In this invention, a special design was made for the tracking logic that crosses the boundaries between macroscopic and microscopic scales. If the system's tracking path extends within the external network, the search cursor directly performs a hierarchical progressive traversal along the conventional edges abstracted from the entity coordinates.
[0049] When the search cursor reaches the hyperedge within the micro-station, the system suspends the regular graph node traversal and instead activates the preset local isomorphic mapping matrix within the hyperedge for dimensionality reduction calculation. The system reads the on / off Boolean values in the mapping matrix, uses Boolean matrix multiplication to iteratively calculate the reachability matrix of the local isomorphic mapping matrix, and uses the connected components of the reachability matrix to penetrate and calculate the conduction relationship between the buses and circuit breakers within the station, accurately identifying the internal conductive loops.
[0050] The dimensionality reduction calculation continues to extrapolate within the matrix dimension until it reaches the switch node identified as being in an off state, at which point the system immediately blocks further tracing of that branch. Through this seamless switching mechanism, the system sequentially aggregates all affected components traversed in the macroscopic path and the microscopic matrix loop, and uniformly registers these objects to form the power outage component set.
[0051] In this embodiment, the system further maps the electrical severity characteristics of the fault point to an expanded impedance coefficient, providing core parameter support for subsequent physical space rendering. The system first reads the underlying ledger database and extracts the inherent voltage level parameters of the fault initiation point.
[0052] Simultaneously, the system initiates a topology-level backtracking mechanism to calculate the topology depth of the fault point within the global hypergraph nested network model. This topology depth characterizes the electrical hop count level of the fault point's distance from the core power supply node (i.e., the low-voltage side bus node of the upstream main transformer that provides power to the feeder where the fault point is located), serving as a core electrical severity feature for quantifying the network hierarchy location.
[0053] In this invention, based on the extracted voltage level and topology depth, the system constructs a specialized mapping function to convert pure power grid topology features into physical expansion impedance coefficients for GIS spatial attenuation calculations. The expression for this feature conversion mapping function is constructed as follows:
[0054] in, The smaller the value, the stronger the physical ability of the power outage to spread. This represents a given basic environmental impedance constant, used to maintain the consistency of the calculation dimensions. In this embodiment, it is typically taken as 1.0 ohms based on conventional distribution network parameters.
[0055] The voltage level of the extracted fault point is represented by the inverse relationship between the voltage level and the impedance coefficient, which reflects the physical law of the wider-area power outage ripple effect caused by the high-voltage side fault.
[0056] This represents the calculated topology depth parameter of the fault point; The topology depth weighting coefficient is set to a value range of [0.1, 0.5] and is used to adjust the sensitivity of depth to wave drag. Using the natural logarithm as the base, the propagation blocking effect of network endpoints is amplified exponentially. The system will calculate the resulting... It is passed to the underlying GIS engine as a low-level constraint that limits the expansion boundary of the initial power outage polygon.
[0057] This embodiment details the process of acquiring the geographic barrier entities and establishing a resistance distribution field. The system reads elevation and land cover data from a 3D GIS base map through a low-level spatial resolution interface. The system accurately extracts the spatial outlines of natural barriers such as water bodies and mountain ranges from the vector base map, and simultaneously overlays municipal planning data to extract the red lines of non-power supply areas where crossing is absolutely prohibited. The system uniformly registers and defines the extracted spatial restriction elements as the geographic barrier entities.
[0058] Subsequently, the system discretizes the GIS space corresponding to the power outage affected area into a grid at a fixed spatial resolution to establish a spatial physical resistance distribution matrix. Based on the type of land cover within the discrete grid, the system assigns differentiated spread attenuation weights. For example, the resistance constant is set to 1.0 for the plains grid, 3.0 for the forest and hilly grids, 5.0 for the general water area grids, and 8.0 for the grids containing buildings and railways in built-up areas. For the core areas of completely insurmountable natural barriers and the boundaries of restricted areas, the system directly assigns a maximum resistance factor approaching infinity to form a spatial physical insulation wall, thereby constructing a refined two-dimensional resistance distribution model.
[0059] This invention details the steps for generating the initial power outage polygon through confined space expansion calculations. The system first performs data stripping and cleaning on the previously compiled set of power outage components, filtering out micro-components within the station that lack physical spatial attributes. The system then specifically extracts components with clearly defined WGS84 absolute geographic coordinates and designates them as initial wavefront seed points to trigger the spatial spread algorithm.
[0060] The system uses various sub-points as the origin of spatial radiation. Combining the expansion impedance coefficient calculated from the preceding mapping with the aforementioned spatial physical resistance distribution matrix, it advances layer by layer in a wavefront-like manner along the discrete grid, rigorously calculating the cumulative cost of spatial expansion. When the spreading wavefronts of multiple seed points meet in the same grid, the system adopts a minimum value principle, retaining the wavefront cumulative value with the minimum cost to reach that grid as the final cumulative cost for that point. The integral evolution function of the cumulative cost of expansion is expressed by the following algebraic formula:
[0061] in, Represents the arrival of the spreading wavefront at a two-dimensional spatial coordinate point. The cumulative cost over time; Represents starting from the initial seed point Proceed to the target point The minimum cost space path; Let be the differential arc length variable along the spatial propagation path.
[0062] The space physical resistance distribution matrix represents the differential path point. The mapping output shows the weight value of the ground feature resistance. It represents the global expansion impedance coefficient derived from the electrical severity characteristics.
[0063] The system frequently refreshes and monitors the algebraic sum of costs at each grid point on the advancing wavefront in the memory matrix. The system-defined boundary attenuation tolerance threshold is a pre-set constant based on historical outage spillover statistics or voltage drop tolerance limits in power grid dispatch specifications. For example, for a typical 10kV distribution network spillover scenario, this threshold can be set to a resistance integral value between 1000 and 1500. When the accumulated cost of a grid point in a certain direction reaches the system-defined boundary attenuation tolerance threshold, or when the advancing wavefront directly touches a blocking insulation boundary with maximum resistance, the system immediately interrupts the vector expansion calculation and explicitly marks the current grid point as the propagation stop point.
[0064] After all wavefront advancement actions are completed, the system extracts the coordinate set of the stopping points scattered on the outermost edge of the spread area. The system calls the Graham scan convex hull generation algorithm in computational geometry to construct an ordered, smooth envelope line along each outer stopping point, forming a closed outer envelope that encloses all connected affected grids. The system then sends this outer envelope coordinate set back to the GIS analysis engine for planar entity rendering, instantly generating the initial power outage polygon and thoroughly defining the physical extreme range of the fault impact at the underlying map logic.
[0065] In this embodiment, parallel virtual sandboxes refer to isolated computing environments created in the logical virtual memory space of the application process using process stack pointer allocation technology, each corresponding to a specific number of load transfer plans. Each sandbox has its own independent stack space and memory pointer mapping table, and the sandboxes do not share writable memory states, thus ensuring that the simulation processes of each plan do not interfere with each other, and that the simulation operations do not pollute the underlying main topology data that is running in real time. The underlying architecture and computing mechanism for concurrent simulation using parallel virtual sandboxes are described in detail. The system generates a series of load transfer plans that control the opening and closing states of circuit breakers based on the fault isolation strategy. To avoid polluting the underlying main topology data that is running in real time when evaluating these plans, the system requests instruction scheduling operations from the host's memory pool and directly isolates parallel virtual sandboxes in the logical virtual memory space of the application process using process stack pointer allocation technology, with a number equivalent to the number of load transfer plans. If a simulation timeout occurs in a sandbox due to topology reorganization failure or an infinite loop during concurrent simulation, the system will trigger an exception throwing mechanism to directly destroy the sandbox instance and release the memory pointer it occupies, so as to ensure the stable operation of the main process.
[0066] Within each allocated parallel virtual sandbox, the system does not immediately perform a full copy and reconstruction of the network topology data. Instead, it first initiates a differential comparison calculation of the topology state. The system delivers the switching control commands carried in the specific load transfer plan to the logic computing layer, simulating the application to the global hypergraph nested network model and capturing the topology changes caused by the plan operations.
[0067] The system re-performs hash compression on components experiencing state changes at a local level, extracts new hash values, and compares them with the original steady-state values to accurately screen out the affected set whose hash anchors have mutated. The screening logic for this affected set follows the following Boolean algebraic determination formula:
[0068] in, Representative to execute the The set of affected components extracted after screening following each load transfer plan; The partitioning unit matrix or topology node represents the local hash calculation in the global hypergraph nested network model. The system performs graph theory partitioning on the global model based on the physical feeder branches of the power grid or the boundaries of independent substations to generate corresponding partitioning units. ; This is a pre-defined strong collision-resistant hash algorithm function for the system.
[0069] The representative will be the first The action logic of each contingency plan is superimposed onto the component. The resulting look-ahead state attribute vector; This represents the original hash anchor value that the component resided in memory before the failure occurred; This is the bitwise XOR operator. When the result of the XOR operation is non-zero, the system immediately determines that the local hash anchor has been mutated and assigns the corresponding component to the affected set.
[0070] In this invention, the system, based on a precisely extracted affected set, triggers the underlying copy-on-write memory management mechanism within each parallel virtual sandbox to perform instantiation and reorganization. For those not included in the affected set... For the vast majority of the remaining network model data, the system uses virtual memory address mapping to directly mount read-only memory pointers, enabling multiple sandboxes to share the same underlying physical memory with zero overhead.
[0071] For local data in the global hypergraph nested network model that falls into the affected set, the system allocates a new independent stack space specifically within the corresponding parallel virtual sandbox. The system copies the original local data to this independent stack, and then forcibly writes the new state attributes corresponding to the load transfer plan onto this reorganized instance. This underlying architecture fundamentally avoids the risk of memory avalanche overflow during high-concurrency simulations, ensuring that each plan consumes only minimal addressing and memory copy overhead.
[0072] After instantiation and reorganization are completed concurrently through copy-on-write in each parallel virtual sandbox, a reconstructed network model with a completely independent logical structure has been built within each sandbox. The system uses each sandbox as an independent computational thread, activating the spatial analysis engine component. For the reconstructed global hypergraph nested network model, the system concurrently calls the aforementioned spatial spread cumulative cost calculation module, strictly based on the reconstructed connectivity boundaries, and independently re-executes the constrained spatial expansion calculation. After the spread stops, the system renders and encapsulates the generated envelope boundaries in real time, ultimately outputting the deduced polygons with clear spatial reference meaning within the corresponding sandbox process.
[0073] This embodiment details the entire process of extracting overlapping blind spots and outputting early warning information on weak grid structures. The system collects spatial data returned by all concurrently running parallel virtual sandboxes in the main process. The system is mounted to the GIS coordinate system and uniformly reads the closed outer boundary vector coordinate arrays of each derived polygon under the WGS84 projection standard.
[0074] The system calls the spatial geometry layer processing interface, which reads the vertex sequences of each polygon at the underlying level by parsing standard spatial data formats (such as GeoJSON or WKT). It then performs a Boolean operation on the topological intersection of all the aggregated derived polygon vector data. This operation essentially performs spatial coverage analysis on the geometric point set enclosed by multiple polygons to extract the non-eliminable overlapping blind spots. The spatial geometric intersection calculation for extracting overlapping blind spots follows the following set theory intersection formula:
[0075] in, This represents the overlapping blind zone polygon region finally extracted through spatial geometric intersection calculation; The total number of load transfer plans that are executed concurrently in the simulation. Use the index variable for recursive execution.
[0076] Representative by the first The system generates a set of spatial geometric points enclosed by polygons generated from independent simulations in parallel virtual sandboxes. By performing rigorous intersection calculations on the polygons generated from all the simulations, the extracted surface region strictly represents the "absolute dead zone" where power cannot be restored even after exhausting all switchover plans.
[0077] In this invention, after the system extracts the overlapping blind zone, it must reverse-project the data remaining at the pure GIS geographic dimension back to the power grid data asset layer with topological connectivity logic. The system constructs an inversion mapping function, using the spatial closed polygon formed by the outer envelope of the overlapping blind zone, to initiate a penetrating query request to the underlying ledger database with entity coordinates in the global hypergraph nested network model.
[0078] The system maps the geospatial coordinate range covered by the overlapping blind zone back to the underlying model. By determining the topological relationships involving intersections, it extracts nodes from the global hypergraph nested network model that fall within this region. This inversion mapping extraction mechanism follows the spatial location determination formula:
[0079] in, This represents the set of weak network nodes extracted after inversion mapping. This represents the macroscopic node set in the global hypergraph nested network model. The micro-station hyperedge set with unified boundary coordinates in the representative model; To iterate through the specific device node objects extracted from the model, when belong Furthermore, when the spatial inclusion condition is met, the system simultaneously unpacks all micro-device nodes nested within the hyperedge of the micro-station and includes them in the system. gather.
[0080] This represents the extraction of the specific device node. The underlying ledger's set of geographical latitude and longitude coordinates read in real time; To represent a complete containment or intersection relationship of entities in the topological space, the system first uses bounding box collision detection for fast coarse screening, and then calls the ray penetration algorithm to make precise determination of polygon inside and outside for entities that fall within the bounding box. This represents the overlapping blind zone region extracted by the preceding Boolean intersection calculation.
[0081] After completing cross-dimensional extraction and matching, the system forcibly labels the network nodes that fall into the blind zone. The system directly injects high-level warning labels into the underlying ledger attribute columns of each device, clearly marking them as systemic power supply weaknesses within the current network structure. Finally, the system encapsulates the weakness warning information packet, including the specific device code, its corresponding feeder, and the area of the overlapping blind zone, and transmits it to the human-machine interface screen or dispatcher workstation in the control center for comprehensive output and display.
[0082] In this embodiment, corresponding to the aforementioned GIS topology-based power outage spatial simulation method, the present invention also provides a GIS topology-based power outage spatial simulation device that is abstracted and encapsulated at the logical architecture level. This device operates based on the underlying hardware and software interaction layer and, in terms of functional unit division, includes a model building module, a tracking and mapping module, a spatial expansion calculation module, a concurrent inference module, and an early warning inversion module. The modules communicate with each other through a high-speed memory message queue within the system and use standard JSON format serialization to transmit topology state data and polygon vector coordinates.
[0083] The model building module is responsible for calling the underlying database to read the ledger, performing multi-dimensional coordinate analysis and connection protocol encapsulation, and constructing a global hypergraph nested network model covering the external network structure and the wiring within the micro-stations. The tracing and mapping module is configured with a graph theory traversaler and algebraic calculation interface to respond to fault events, obtain the set of power outage components through topology tracing in the global hypergraph nested network model, and convert the electrical severity characteristics of the fault point into the spatial scale extended impedance coefficient.
[0084] The spatial expansion calculation module is equipped with a calculus equation solving engine. Combining geographically blocked entities and expansion impedance coefficients, it performs confined spatial expansion calculations starting from the set of power outage components, generating an initial power outage polygon that defines the initial power outage range. The concurrent simulation module has a built-in memory address allocator and state comparator for generating load transfer plans. It uses parallel virtual sandboxes to perform independent concurrent simulations of the global hypergraph nested network model based on each plan, outputting the simulation polygons corresponding to each plan. The early warning inversion module is equipped with a Boolean algebra operator to perform topological intersection calculations on multiple simulation polygons to extract overlapping blind zones, mapping the spatial geometry back to the ledger nodes, and outputting network structure weakness early warning information.
[0085] In this invention, to provide underlying physical support for the aforementioned methods and devices, an electronic device is also provided. This electronic device mainly consists of a processor, a graphics processing unit, a memory, and an internal system communication bus in its hardware topology. To ensure high-concurrency real-time simulation effects, the processor is configured with at least an 8-core architecture, and the memory is configured with at least 16GB of high-speed RAM. The processor and graphics processing unit perform high-speed instruction handshakes via a PCIe standard bus, and the memory uses DDR architecture random access memory to ensure high-frequency copy-on-write operations. The processor, as the core arithmetic logic unit, integrates a multi-core computing architecture, dedicated to executing high-concurrency copy-on-write memory instructions and complex spatial algebraic geometric superposition calculations. The graphics processing unit is specifically used to accelerate the rendering of primitive surface entities at the underlying level of the GIS spatial analysis engine. The memory includes non-volatile read-only memory and high-speed random access memory, used to persistently store GIS base map data, maintain global hypermap nested network model instances, and is responsible for allocating physically isolated runtime stack space to each parallel virtual sandbox during simulation.
[0086] When the processor of this electronic device drives the execution of the above concurrent deduction logic, the total time consumption of its underlying concurrent execution strictly follows the following time complexity evaluation function:
[0087] in, The total time taken for the underlying hardware of electronic devices to complete a full multi-plan assessment; This represents the initialization time for the system to perform initial topology tracing, hash value generation, and memory hash mutation screening. The index set representing the load transfer plans generated by the system. This is an index for the specific plans in the set.
[0088] The representative processor is for the first The time it takes for a sandbox to perform a copy-on-write operation on a locally affected memory block; Representing the The time taken for an independent thread within each sandbox to re-execute the space expansion integral operation. Operators embody the concurrency isolation mechanism under a multi-core architecture, indicating that the total time in the contingency planning stage is no longer a linear sum of the time consumed by each contingency plan, but depends on the single contingency plan branch with the heaviest computing load or the widest spread area. This represents the computation time required for the processor to collect data and ultimately perform the polygon intersection calculation. Through this hardware execution architecture, the system completely avoids the cumulative latency problem inherent in traditional serial queuing deduction.
[0089] In this embodiment, the present invention also provides a computer-readable storage medium. This storage medium has continuous or discrete physical tracks or flash memory blocks internally allocated, and stores a machine language-level computer instruction set that can be executed under a Linux or Windows operating system runtime environment. When this instruction set is loaded into the cache and executed by the processor of the aforementioned electronic device, it forces the instruction set to call the system's underlying memory controller and primitive rendering unit at the hardware level, thus completely implementing all data transformation steps of the aforementioned power outage spatial simulation method based on GIS topology with a strict logical timing sequence. The specific physical form of this storage medium includes disks, solid-state drive arrays, optical discs, or other physical carriers with long-term power outage data retention capabilities.
[0090] In summary, the method and apparatus provided in the embodiments of the present invention do not depend on a specific power grid scale in terms of their graph theory model and spatial expansion logic. Therefore, they are fully and equally applicable to various voltage levels such as 220kV, 110kV, 35kV, and 10kV, and are widely compatible with spatial extrapolation analysis of urban dense distribution networks and rural wide-area transmission networks.
[0091] To verify the effectiveness and performance advantages of the method of this invention, a system-level simulation test model was constructed using typical 10kV medium-voltage distribution network ledger data from a certain city. The simulation test set the power grid scale to include 12 main grid substations, 215 distribution rooms and ring main units, approximately 50,000 macroscopic line segments and equipment nodes, and approximately 15,000 microscopic components (busbars, circuit breakers, etc.) within the substations. The simulation computing environment was equivalent to a conventional power grid dispatching workstation equipped with an 8-core CPU and 16GB of memory. The test scenario was set to simulate a permanent fault at the 10kV feeder outlet of a core 110kV substation, with the system generating 50 different load transfer and switching plans based on control rules. The numerical simulation and algorithm complexity of the method of this invention were compared with traditional conventional power outage simulation methods. The simulation test results are as follows: Regarding topology tracing and spatial rendering accuracy: Traditional methods simplify substations into single nodes for black-box processing, making it difficult to penetrate and identify the status of micro-equipment within the substation; furthermore, the use of fixed geometric buffers for drawing circles results in a deviation rate of approximately 28.5% between the generated outage area and the actual disaster area (easily crossing actual boundaries such as rivers and non-powered areas). In contrast, this invention relies on a global hypergraph nested model to achieve refined tracing down to the level of specific circuit breakers and disconnectors within the substation in terms of data logic; simultaneously, thanks to the constrained expansion algorithm of electrical feature mapping and spatial physical resistance matrix, the generated outage polygon effectively matches the real terrain attenuation law, and simulation tests show that the deviation rate of the actual disaster boundary is reduced to approximately 3.2%.
[0092] Regarding concurrent computation and memory management across multiple contingency plans: Faced with 50 complex load transfer contingency plans, the traditional serial queuing simulation scheme takes approximately 115.0 seconds to complete a full evaluation. Furthermore, based on the spatial complexity of the data structure, if the network topology of 50,000 nodes is fully and deeply copied 50 times, the peak simulation memory usage reaches approximately 18.5GB, easily triggering a system memory overflow risk. In contrast, this invention employs a parallel virtual sandbox combined with a low-level copy-on-write mechanism. Based on multi-core concurrency theory, its total simulation time is only about 3.1 seconds, improving computational efficiency by nearly 37 times. Moreover, because read-only sharing of memory pointers for unaffected network data is achieved between sandboxes, the peak simulation memory consumption remains at approximately 0.65GB, a sharp drop of nearly 96% in memory usage, effectively ensuring stable high-concurrency operation under massive data from the underlying architecture.
[0093] Regarding the identification of systemic weak nodes in the power grid: traditional solutions can typically only assess the connectivity of individual contingency plans one by one, making it difficult to effectively define the overlapping dead zones of the overall power grid. This invention introduces a topological Boolean intersection operation, capable of spatially intersecting 50 concurrently generated post-calculation polygons, thereby geometrically identifying overlapping blind zones. Furthermore, it utilizes a ray-penetration algorithm to back-map to the underlying ledger, accurately locating and outputting three systemic weak equipment nodes in the simulation scenario that are still difficult to restore power to under the coverage of existing contingency plans.
[0094] In summary, the simulation test data shows that the present invention not only reduces the time for evaluating contingency plans for massive nodes from minutes to seconds, effectively overcoming the memory bottleneck caused by multiple concurrency plans, but also significantly improves the real physical fit of the power outage space boundary, proving that it has significant technological progress.
[0095] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for simulating power outage space based on GIS topology, characterized in that, include: Construct a global hypergraph nested network model that encompasses both the external network structure and the internal wiring of micro-stations; In response to a fault event, the set of power outage components is obtained by topology tracing in the global hypergraph nested network model, and the electrical severity characteristics of the fault point are mapped to the extended impedance coefficient. By combining the geographical blocking entity with the expansion impedance coefficient, and taking the set of power outage components as the starting point, a confined space expansion calculation is performed to generate an initial power outage polygon. Starting from the boundary node of the set of power outage components, search for the normally open tie switch in the global hypergraph nested network model, and generate a load transfer plan based on the power restoration constraints. Use a parallel virtual sandbox to perform concurrent deduction on the global hypergraph nested network model based on each plan, and output the deduction polygon corresponding to each plan. Perform topological Boolean operations on multiple derived polygons to extract overlapping blind areas, and then backmap the overlapping blind areas to the global hypergraph nested network model to output network weakness early warning information.
2. The power outage spatial simulation method based on GIS topology according to claim 1, characterized in that, Constructing the global hypergraph nested network model includes: The external network structure with geographic coordinates is abstracted into macroscopic nodes and regular edges; The micro-station wiring without absolute geographic coordinates is encapsulated as a micro-station hyperedge containing a locally isomorphic mapping matrix. By combining the macroscopic nodes, the regular edges, and the microscopic intra-station hyperedges, the global hypergraph nested network model is constructed.
3. The power outage spatial simulation method based on GIS topology according to claim 2, characterized in that, Topology tracing in the global hypergraph nested network model includes: Locate the fault initiation point and trace electrical connectivity; If the tracing path is in the external network structure, then traverse along the regular edges; if the superedge within the microstation is reached, then activate the local isomorphic mapping matrix for dimensionality reduction calculation until the switch in the off state is reached. All components traversed along the summary path constitute the power outage component set.
4. The power outage spatial simulation method based on GIS topology according to claim 2, characterized in that, After constructing the global hypergraph nested network model, the following is also included: Extract the state attribute vectors of the macroscopic node and the hyperedge within the microscopic station; A unique hash anchor is generated by calculating the state attribute vector using a hash algorithm to represent the current steady state of the global hypergraph nested network model.
5. The power outage spatial simulation method based on GIS topology according to claim 1, characterized in that, Mapping the electrical severity characteristics of a fault point to an expanded impedance coefficient includes: The voltage level of the fault point and its topological depth in the global hypergraph nested network model are extracted as the electrical severity features. Based on the mapping function, and combining the basic environmental impedance and topology depth weight, the electrical severity characteristics are converted into the extended impedance coefficient in the GIS space.
6. The power outage spatial simulation method based on GIS topology according to claim 1, characterized in that, The geographically blocked entity is obtained in the following way: Natural barriers and non-power supply areas extracted from the GIS base map are defined as the geographic blocking entities, and a spatial physical resistance distribution matrix is established for them.
7. The power outage spatial simulation method based on GIS topology according to claim 6, characterized in that, The initial power outage polygon is generated by performing confined space expansion calculations, including: Extract the components with geographical coordinates from the power outage component set as seed points, and calculate the cumulative cost of spatial expansion by combining the expansion impedance coefficient and the spatial physical resistance distribution matrix. When the accumulated cost reaches a preset threshold or touches the blocking boundary, the expansion stops, and the outer envelope is formed by connecting each stopping point. The initial power outage polygon is then rendered.
8. The power outage spatial simulation method based on GIS topology according to claim 4, characterized in that, Concurrent simulations are performed using parallel virtual sandboxes, including: Allocate parallel virtual sandboxes in memory corresponding to the number of load transfer plans; Calculate the topology state changes caused by the operation of each load transfer plan, and filter out the affected set where the hash anchor point has mutated; In the corresponding parallel virtual sandbox, only the local data of the global hypergraph nested network model corresponding to the affected set is instantiated and reorganized by copy-on-write, while the unaffected data is shared through memory pointers.
9. The power outage spatial simulation method based on GIS topology according to claim 8, characterized in that, Output the derived polygons for each contingency plan, including: After the instantiation and reorganization are completed concurrently in each parallel virtual sandbox, the confined space expansion calculation is performed independently on the reconstructed global hypergraph nested network model, and the corresponding deduced polygon is output.
10. The method for simulating power outage space based on GIS topology according to claim 1, characterized in that, Extract overlapping blind spots and output early warning information for weak grid structures, including: In the GIS coordinate system, perform spatial geometric intersection calculation on all the derived polygons to extract the non-eliminable overlapping blind areas; Using the inversion mapping function, the geographic space covered by the overlapping blind area is mapped back to the global hypergraph nested network model, and the nodes in the global hypergraph nested network model that fall into the region are extracted; The extracted nodes are marked as weak links in the grid planning and then output as a whole.
