Power grid equipment model construction method and device based on JSON configuration

By defining electrical primitive models using JSON configuration files, the problems of insufficient transparency and limited flexibility in electrical simulation primitives are solved, achieving high transparency and flexible expansion of power grid equipment models.

CN121435461APending Publication Date: 2026-01-30CHENGDU ZHONGAN ELECTRICAL
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511423664.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2026-01-30

AI Technical Summary

Technical Problem

In existing technologies, electrical simulation primitives lack transparency and flexibility, which requires high coding skills from developers and makes primitive expansion difficult.

Method used

The electrical primitive model is defined using a JSON configuration file, including primitive appearance, connection ports, and form configuration. The power grid equipment model is generated by reading, validating, parsing, and drawing.

Benefits of technology

It improves the transparency and flexibility of primitives, reduces the difficulty of primitive expansion, and allows developers to expand without modifying the code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121435461A_ABST
    Figure CN121435461A_ABST
Patent Text Reader

Abstract

The invention discloses a power grid equipment model construction method and device based on JSON configuration, and the method comprises the following steps: S1, analyzing a physical model of actual power grid equipment, and generating physical descriptions of the power grid equipment in combination with industry consensus, including physical descriptions of graphic appearance, topological capability and physical attributes; s2, based on the physical description in the step S1, correspondingly defining a JSON configuration file of the electrical primitive model, including definition of primitive appearance, connection ports and form configuration; s3, creating or updating the primitives through configuration reading, configuration verification, configuration analysis and drawing execution on the basis of a JSON configuration file configured by the primitive appearances, connection ports and forms of the electrical primitives; according to the method, the topology configuration software can be quickly established, the definition of each type of primitive is transparent to the outside, and the method has the flexible expansion capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power network topology simulation technology, and more specifically to a method and apparatus for constructing a power grid equipment model based on JSON configuration. Background Technology

[0002] Constructing a power grid topology model is a fundamental step in power grid simulation analysis. Currently, the solution for this task is to define various electrical elements by writing graphical drawing methods in the software, and then implement functions such as network configuration.

[0003] However, existing technical solutions have the following problems:

[0004] 1) Insufficient transparency of primitives: Electrical simulation is a relatively complex profession. Existing technical solutions completely encapsulate the abstraction and definition of components into the code. Other developers or software users can only use the components proficiently by relying on complete introduction documents.

[0005] 2) Insufficient flexibility: As the industry develops, the types of electrical equipment are constantly expanding, so the flexible expansion capability of electrical simulation elements must be considered; however, existing technologies must be implemented through coding when expanding electrical elements, which places high demands on the coding ability and professional understanding of developers, increasing the difficulty of element expansion and reducing flexibility.

[0006] Therefore, how to improve the transparency of primitives and reduce the difficulty of primitive expansion to enhance flexibility is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0007] In view of this, the present invention provides a method and apparatus for constructing a power grid equipment model based on JSON configuration to solve the technical problems mentioned in the background art.

[0008] To achieve the above objectives, the present invention adopts the following technical solution:

[0009] A method for constructing a power grid equipment model based on JSON configuration includes the following steps:

[0010] S1. Analyze the physical model of actual power grid equipment, combine it with industry consensus, and generate a physical description of the power grid equipment, including physical descriptions of its graphical appearance, topology capabilities, and physical attributes;

[0011] S2. Based on the physical description in step S1, define the corresponding JSON configuration file for the electrical element model, including defining the element appearance, connection ports, and form configuration;

[0012] S3. Based on the JSON configuration file of the appearance, connection ports and form configuration of electrical elements, the system creates or updates elements by reading the configuration, validating the configuration, parsing the configuration and performing drawing, thus completing the generation of the power grid equipment model.

[0013] Preferably, in step S2, the primitive appearance is defined in a JSON configuration file based on the physical description of the graphic appearance in step S1. It is a composite graphic composed of basic graphic combinations. The key attributes of each basic graphic include the type of the graphic, the ID of the graphic, and the style of the graphic.

[0014] Graphic types include circles, rectangles, ellipses, paths, text, and images;

[0015] The ID of a graphic is used to identify sub-graphics;

[0016] The style of the graphic, including but not limited to color, lines, and size.

[0017] Preferably, the connection port is defined in a JSON configuration file based on the physical description of the topology capability, which is used to realize the topology connection between elements through the connection port graph;

[0018] The connection port includes the port's unique identifier, the port's position relative to the main graphic, and the port type, which can be either input or output.

[0019] Preferably, the form configuration is based on a JSON configuration file that defines the physical description of physical attributes. This file is used to parse and render a form component, through which the user sets parameters for specific graphic elements.

[0020] Preferably, step 3 includes the following:

[0021] S31. Read the JSON configuration file of the electrical elements and perform JSON configuration validation;

[0022] S32. Analyze the configuration of each sub-graphic and draw each sub-graphic;

[0023] S33. After all sub-graphics have been drawn, parse the connection port configuration and draw the connection ports;

[0024] S34. After drawing the ports, parse the form configuration and save it to the element context to complete the creation or update of elements, which is the generated power grid equipment model.

[0025] A power grid equipment model building system based on JSON configuration, based on the aforementioned method for building a power grid equipment model based on JSON configuration, includes: a physical description acquisition module, an electrical element model definition module, a configuration reading module, a configuration verification module, a configuration parsing module, and a drawing execution module;

[0026] The electrical element model definition module includes an element appearance definition unit, a connection port definition unit, and a form definition unit;

[0027] The physical description acquisition module is used to analyze the physical model of actual power grid equipment, combine industry consensus, and generate physical descriptions of power grid equipment, including physical descriptions of graphical appearance, topology capabilities, and physical attributes.

[0028] The electrical element model definition module is used to define the appearance of elements, connection ports and form configurations based on physical description through element appearance definition unit, connection port definition unit and form definition unit, respectively, to complete the electrical element model definition and obtain JSON configuration file;

[0029] The module includes a configuration reading module, a configuration verification module, a configuration parsing module, and a drawing execution module. These modules are used to create or update elements based on the JSON configuration file containing the appearance of electrical elements, connection ports, and form configurations. The module reads, verifies, parses, and executes the drawing process.

[0030] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned method for constructing a power grid device model based on JSON configuration.

[0031] A processing terminal includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the aforementioned method for constructing a power grid equipment model based on JSON configuration.

[0032] As can be seen from the above technical solution, compared with the prior art, the present invention discloses a method and apparatus for constructing a power grid equipment model based on JSON configuration, which has the following beneficial effects:

[0033] Transparency: The JSON data format excels in readability and versatility, and is often used for web communication and file configuration. Users can understand the relevant information of electrical elements by viewing the JSON configuration.

[0034] High flexibility: The definition of electrical elements is completed by implementing the JSON configuration parsing method in the code (virtual machine concept); subsequent expansion or modification only requires operation on the JSON configuration, without modifying the code. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0036] Figure 1 A schematic diagram illustrating a method for constructing a power grid equipment model based on JSON configuration provided by the present invention;

[0037] Figure 2 The flowchart for creating or updating primitives provided by this invention;

[0038] Figure 3 This is a schematic diagram of the power grid equipment elements and topology provided by the present invention. Detailed Implementation

[0039] The technical solutions of 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.

[0040] This invention discloses a method for constructing a power grid equipment model based on JSON configuration, such as... Figure 1 This includes the following steps:

[0041] S1. Analyze the physical model of actual power grid equipment, combine it with industry consensus, and generate a physical description of the power grid equipment, including physical descriptions of its graphical appearance, topology capabilities, and physical attributes;

[0042] S2. Based on the physical description in step S1, define the corresponding JSON configuration file for the electrical element model, including defining the element appearance, connection ports, and form configuration;

[0043] S3. Based on the JSON configuration file of the appearance, connection ports and form configuration of electrical elements, the system creates or updates elements by reading the configuration, validating the configuration, parsing the configuration and performing drawing, thus completing the generation of the power grid equipment model.

[0044] To further implement the above technical solution, in step S2, the appearance of the graphic elements is defined in a JSON configuration file based on the physical description of the graphic appearance in step S1. It is a composite graphic composed of basic graphic elements. The key attributes of each basic graphic element include the type of the graphic, the ID of the graphic, and the style of the graphic.

[0045] Graphic types include circles, rectangles, ellipses, paths, text, and images;

[0046] The ID of a graphic is used to identify sub-graphics;

[0047] The style of the graphic, including but not limited to color, lines, and size.

[0048] To further implement the above technical solution, the connection port defines a JSON configuration file based on the physical description of topology capabilities, which is used to realize the topology connection between elements through the connection port graph;

[0049] The connection port includes the port's unique identifier, the port's position relative to the main graphic, and the port type, which can be either input or output.

[0050] To further implement the above technical solution, the form configuration is based on a physical description definition JSON configuration file of physical attributes, which is used to parse and render a form component, and the user sets parameters for specific graphic elements through the form component.

[0051] To further implement the above technical solutions, such as Figure 2 The specific content of step S3 includes:

[0052] S31. Read the JSON configuration file of the electrical elements and perform JSON configuration validation;

[0053] S32. Analyze the configuration of each sub-graphic and draw each sub-graphic;

[0054] S33. After all sub-graphics have been drawn, parse the connection port configuration and draw the connection ports;

[0055] S34. After drawing the ports, parse the form configuration and save it to the element context to complete the creation or update of elements, which is the generated power grid equipment model.

[0056] In practical applications, based on the power grid equipment model generated by this invention, topology configuration software can be quickly built to complete the construction of the power grid topology model.

[0057] A power grid equipment model building system based on JSON configuration, and a power grid equipment model building method based on JSON configuration, includes: a physical description acquisition module, an electrical element model definition module, a configuration reading module, a configuration verification module, a configuration parsing module, and a drawing execution module;

[0058] The electrical element model definition module includes an element appearance definition unit, a connection port definition unit, and a form definition unit;

[0059] The physical description acquisition module is used to analyze the physical model of actual power grid equipment, combine industry consensus, and generate physical descriptions of power grid equipment, including physical descriptions of graphical appearance, topology capabilities, and physical attributes.

[0060] The electrical element model definition module is used to define the appearance of elements, connection ports and form configurations based on physical description through element appearance definition unit, connection port definition unit and form definition unit, respectively, to complete the electrical element model definition and obtain JSON configuration file;

[0061] The module includes a configuration reading module, a configuration verification module, a configuration parsing module, and a drawing execution module. These modules are used to create or update elements based on the JSON configuration file containing the appearance of electrical elements, connection ports, and form configurations. The module reads, verifies, parses, and executes the drawing process.

[0062] In another embodiment, topology simulation software is implemented using technologies such as JSON, JavaScript, and HTML. This includes: defining electrical equipment elements through JSON configuration; parsing the configuration via encoding, calling rendering methods, and rendering various graphics; and combining push-drag and click-to-connect interactions to implement topology functions, such as... Figure 3 This embodiment uses the method proposed in this invention to quickly build topology configuration software, and the definitions of various graphic elements are transparent to the outside world, with flexible expansion capabilities.

[0063] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a method for constructing a power grid device model based on JSON configuration.

[0064] A processing terminal includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements a method for constructing a power grid device model based on JSON configuration.

[0065] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0066] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for constructing a power grid device model based on a JSON configuration, characterized in that, The method comprises the following steps: S1. Analyzing the physical model of the actual power grid equipment, combining industry consensus, generating a physical description of the power grid equipment, including a physical description of the graphical appearance, topology capability and physical properties; S2. Based on the physical description of step S1, define the JSON configuration file of the electrical diagram element model, including defining the appearance of the element, the connection port and the form configuration; S3. Based on the JSON configuration file of the appearance of the electrical diagram element, the connection port and the form configuration, create or update the element by reading the configuration, verifying the configuration, parsing the configuration and executing the drawing to complete the generation of the power grid equipment model.

2. The JSON configuration based power grid equipment model construction method of claim 1, wherein, In step S2, the appearance of the element is defined based on the JSON configuration file of the graphical appearance physical description of step S1, which is a composite graph of basic graph combination. The key attributes of each basic graph include the type of graph, the ID of graph and the style of graph; The type of graph includes circle, rectangle, ellipse, path, text and picture; The ID of graph is used to identify the subgraph; The style of graph includes but is not limited to color, line, size. 3.The method of claim 1, wherein, The connection port is defined based on the JSON configuration file of the topology capability physical description, which is used to realize the topology connection between elements through the connection port graph; The connection port includes the unique identification of the port, the position of the port relative to the main graph and the type of the port, and the type of the port includes input or output.

4. The JSON configuration based power grid equipment model construction method of claim 1, wherein, The form configuration is defined based on the JSON configuration file of the physical description of the physical properties, which is used to render a form component by parsing. The user sets parameters for specific elements through the form component.

5. The JSON configuration based power grid equipment model construction method of claim 1, wherein, The specific content of step S3 includes: S31. Read the JSON configuration file of the electrical diagram element and perform JSON configuration verification; S32. Parse each subgraph configuration and draw each subgraph; S33. After all subgraphs are drawn, parse the connection port configuration and draw the connection port; S34. After drawing the port, parse the form configuration and save it to the element context to complete the creation or update of the element, that is, the generated power grid equipment model. 6.A JSON configuration based power grid equipment model building system, characterized in that, The method comprises the following steps: The method comprises the following steps: The physical description acquisition module is used to analyze the physical model of the actual power grid equipment, combine industry consensus, and generate a physical description of the power grid equipment, including a physical description of the graphical appearance, topology capability and physical properties; The electrical diagram element model definition module is used to define the appearance of the element, the connection port and the form configuration through the element appearance definition unit, the connection port definition unit and the form definition unit based on the physical description, complete the definition of the electrical diagram element model, and obtain the JSON configuration file; The physical description acquisition module is used to analyze the physical model of the actual power grid equipment, combine industry consensus, and generate a physical description of the power grid equipment, including a physical description of the graphical appearance, topology capability and physical properties; The electrical diagram element model definition module is used to define the appearance of the element, the connection port and the form configuration through the element appearance definition unit, the connection port definition unit and the form definition unit based on the physical description, complete the definition of the electrical diagram element model, and obtain the JSON configuration file; The reading configuration module, the checking configuration module, the parsing configuration module and the executing drawing module are used to create or update the graphic element based on the JSON configuration file of the graphic element appearance, the connection port and the form configuration of the electric graphic element.

7. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the JSON configuration-based power grid equipment model construction method in any one of claims 1-5.

8. A processing terminal comprising a memory and a processor, the memory having stored therein a computer program executable on the processor, characterized in that, The processor executes the computer program to implement the JSON configuration-based power grid equipment model construction method in any one of claims 1-5.

Citation Information

Patent Citations

  • IEC (international electrotechnical commission) 61850-based visual graphics configuration method and IEC61850-based visual graphics configuration system

    CN103927332A

  • Power distribution network auxiliary planning method and system based on CIM model

    CN113468708A

  • Secondary communication topology simulation method and device of fusion terminal and storage medium

    CN115600396A

  • Distribution network feeder graph automatic generation method and system and storage medium

    CN118015122A