Automatic Modeling Method, Device and Electronic Equipment for Static Equivalent of Power System
Through the automated static equivalent modeling method of power system, component templates and configuration template files are used to replace nodes, and equivalent calculations are combined with DAT and SWI files to generate static equivalent models, which solves the problem of time-consuming, labor-intensive and accurate traditional modeling, and improves modeling efficiency and accuracy.
Patent Information
- Application Number
- CN202510058816.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-01-14
AI Technical Summary
Traditional artificial static equivalent modeling of power systems is time-consuming, labor-intensive, and low-resolution, and low modeling efficiency, especially in electromagnetic transient simulation, which is insufficient computer memory and computing speed.
It provides a method for automatic modeling of static equivalent values of power systems. By receiving component template files and configuration template files, replacing preset equivalent nodes, combining DAT subfiles and SWI subfiles to perform static equivalent values of external systems, generating equivalent result files, and performing parameter analysis and post-processing, and automatically generating static equivalent models.
The automation of static equivalent modeling of the power system is realized, reducing human intervention, improving modeling efficiency and accuracy, reducing human error, and improving simulation accuracy.
Smart Images

Figure CN119938618B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system simulation, and particularly to a method, device and electronic device for automatically modeling static equivalence of a power system. Background Art
[0002] With the development of the power industry, the national power grid has gradually formed a huge interconnected system, improving the quality of electric energy and the reliability of power supply. However, such a huge interconnected system makes the computer simulation of the power system more complex. Especially when performing electromagnetic transient simulation on the power system, the memory and computing speed of the computer often cannot meet the rapid requirements, so it is necessary to resort to the equivalent method to replace the parts of the power system that are not of interest (i.e., the external system), and only retain the parts that need to be studied (i.e., the internal system), so that the scale of simulation calculation can be greatly reduced and the operation time can be saved.
[0003] In the related art, when using the static equivalent parameters of the power grid for electromagnetic transient simulation modeling, generally, it is necessary to manually operate the SCCP software to perform network static equivalent calculation on the power system, and store the calculation results in the equivalent result file. Then, the simulation personnel manually build a static equivalent model in the PSCAD electromagnetic transient software according to the equivalent result file. In practical applications, the above process of manually implementing the static equivalent modeling of the power system not only takes time and effort, but also is prone to introducing human errors, affecting the accuracy of the simulation results. At the same time, when there are multiple equivalent result files, it is necessary to repeat the modeling in the PSCAD electromagnetic transient software multiple times, resulting in low modeling efficiency.
[0004] It can be seen that the traditional scheme of manually implementing the static equivalent modeling of the power system has the problems of time-consuming, laborious, low accuracy and low modeling efficiency. Summary of the Invention
[0005] The present invention provides a method, device and electronic device for automatically modeling static equivalence of a power system, so as to solve the defects of the traditional scheme of manually implementing the static equivalent modeling of the power system, which is time-consuming, laborious, low in accuracy and low in modeling efficiency.
[0006] On the one hand, the present invention provides a method for automatically modeling static equivalence of a power system, including:
[0007] Receiving a pre-constructed component template file, a configuration template file, input equivalent nodes of the power system and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and a SWI sub-file;
[0008] Replacing the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file;
[0009] Based on the computing configuration file, the DAT sub-file, and the SWI sub-file, a file group is constructed;
[0010] Call the core computing module to perform external system static equivalence on the file group, and generate an equivalent result file;
[0011] Perform parameter parsing on the equivalent result file, and update the component template file based on the result of the parameter parsing to obtain a model component file;
[0012] Perform post-processing on the model component file to generate a static equivalent model.
[0013] According to the power system static equivalence automatic modeling method provided by the present invention, based on the computing configuration file, the DAT sub-file, and the SWI sub-file, a file group is constructed, including:
[0014] Call the power flow calculation module to perform power flow calculation on the DAT sub-file to obtain a calculation result file;
[0015] Combine the computing configuration file, the DAT sub-file, the calculation result file, and the SWI sub-file into a file group.
[0016] According to the power system static equivalence automatic modeling method provided by the present invention, perform parameter parsing on the equivalent result file, and update the component template file based on the result of the parameter parsing to obtain a model component file, including:
[0017] Parse the equivalent parameters in the equivalent result file to obtain the result of parameter parsing;
[0018] Convert the equivalent parameters in the result of the parameter parsing into named values;
[0019] Based on the type of the equivalent parameter, determine the target component corresponding to the input equivalent node;
[0020] Add the target component to the component template file, and delete the original components in the component template to obtain a model component file.
[0021] According to the power system static equivalence automatic modeling method provided by the present invention, the equivalent parameters include: node type parameters and branch type parameters;
[0022] The node type parameters include: the voltage amplitude and phase angle of the Thevenin equivalent power supply to the ground of the input equivalent node, and the positive sequence and zero sequence equivalent impedances;
[0023] The branch type parameters include: the positive sequence and zero sequence equivalent impedances between the input equivalent nodes.
[0024] According to the power system static equivalent automatic modeling method provided by the present invention, post-processing is performed on the model component file to generate a static equivalent model, including:
[0025] Based on a preset adjustment principle, adjust the layout coordinates of at least some target components in the model component file to obtain a corrected component file;
[0026] Perform format conversion on the file content of the corrected component file to generate a static equivalent model.
[0027] According to the power system static equivalent automatic modeling method provided by the present invention, the preset adjustment principle includes:
[0028] Make the key structures within each sub-component of the target component form correct connection relationships, and ensure that there is a set distance between each sub-component of the target component.
[0029] According to the power system static equivalent automatic modeling method provided by the present invention, the construction process of the component template file includes:
[0030] Create a new template example in the PSCAD software to generate a pscx file;
[0031] Modify the file suffix name of the pscx file to obtain a component template file.
[0032] According to the power system static equivalent automatic modeling method provided by the present invention, the construction process of the configuration template file includes:
[0033] Select a set of DAT template files and SWI template files to obtain a template file to be calculated;
[0034] Set the calculation conditions of the template file to be calculated, and input at least one example equivalent node for equivalent calculation;
[0035] Generate a configuration template file corresponding to the calculation conditions in the same directory as the DAT template file.
[0036] On the other hand, the present invention also provides a power system static equivalent automatic modeling device, including:
[0037] A receiving module, configured to receive a pre-constructed component template file, a configuration template file, input equivalent nodes of a power system, and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and an SWI sub-file;
[0038] A replacement module, configured to replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file;
[0039] A building module for building a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file;
[0040] An equivalent value module for calling a core calculation module to perform external system static equivalence on the file group and generate an equivalent result file;
[0041] A parsing module for parsing parameters of the equivalent result file and updating the component template file based on the result of the parameter parsing to obtain a model component file;
[0042] A processing module for post-processing the model component file to generate a static equivalent model.
[0043] On the other hand, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements any one of the above-mentioned power system static equivalence automatic modeling methods.
[0044] The power system static equivalence automatic modeling method, device, and electronic device provided by the present invention receive a pre-constructed component template file, a configuration template file, input equivalent nodes of a power system, and a data file to be calculated; replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; build a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file; call a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file; parse the parameters of the equivalent result file and update the component template file based on the result of the parameter parsing to obtain a model component file; finally, perform post-processing on the model component file to generate a static equivalent model. Since the entire modeling process can be automatically implemented based on the pre-constructed template files and related data, the modeling process is more time-saving and labor-saving, the modeling efficiency is effectively improved, and the human intervention is reduced, making the modeling process more accurate and reliable. Description of the Drawings
[0045] To more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0046] Figure 1 It is a flowchart of the power system static equivalence automatic modeling method provided by the embodiment of the present invention;
[0047] Figure 2It is a schematic diagram of the interface for users to input equivalent nodes and select the directory where the data file to be calculated is located;
[0048] Figure 3 It is a schematic diagram of the structure of a template example;
[0049] Figure 4 It is a schematic diagram of the corresponding setting interface when calculating conditions are selected;
[0050] Figure 5 It is a schematic diagram of the structure of the static equivalent model obtained after automatic conversion;
[0051] Figure 6 It is a schematic diagram of the structure of the power system static equivalent automatic modeling device provided by the embodiment of the present invention;
[0052] Figure 7 It is a schematic diagram of the structure of the electronic device provided by the embodiment of the present invention. Specific Embodiments
[0053] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without making creative efforts based on the embodiments in the present invention belong to the scope of protection of the present invention.
[0054] This embodiment relates to the field of power system simulation and can be specifically applied to the scenario of static equivalent modeling of a power system.
[0055] The PSD (Power System Department) power system analysis software tool is a large-scale power system analysis software package developed by the China Electric Power Research Institute, abbreviated as the PSD software or PSD program, which includes many subprograms such as the PSD-BPA power flow and transient stability program (abbreviated as BPA) and the PSD-SCCP power system short-circuit current calculation program (abbreviated as SCCP).
[0056] As the main input files of the PSD software, the DAT file and the SWI file respectively contain the basic data for power flow calculation and the basic data for stability calculation of the power system. The BPA program performs power flow calculation based on the DAT file and outputs the results. The "network equivalence" function of the SCCP program can perform multi-point network equivalence of the power system based on the power flow calculation results according to the network topology and component parameters provided by the DAT file and the SWI file and the power flow calculation results of the BPA, select one or more nodes to be equivalent, and can give the Thevenin equivalent to the ground (series connection of an ideal voltage source and an equivalent impedance) of each node and the equivalent mutual impedance between each node.
[0057] When using the PSCAD (Power Systems Computer Aided Design) electromagnetic transient software for simulation, it is necessary to manually build an external system static equivalent model according to the equivalent results of the SCCP program to carry out subsequent research. The manual modeling process is cumbersome and error-prone, seriously affecting the simulation efficiency and accuracy. In addition, due to the numerous power flow modes in PSD, external system static equivalence needs to be performed for each power flow mode and re-modeled in the PSCAD electromagnetic transient software, resulting in a huge amount of repetitive work.
[0058] It is not difficult to find that the traditional scheme of manually realizing the static equivalence modeling of power systems has problems of time-consuming, laborious, low accuracy and low modeling efficiency.
[0059] Accordingly, the embodiments of the present invention provide a solution to the above problems. The following combines Figures 1 to 7 to describe in detail the power system static equivalent automatic modeling method, device and electronic device provided by the embodiments of the present invention.
[0060] Figure 1 is a schematic flowchart of the power system static equivalent automatic modeling method provided by the embodiments of the present invention.
[0061] As Figure 1 shown, for the power system static equivalent automatic modeling method provided by the embodiments of the present invention, the execution subject can be a computer or a server with data receiving and sending and data processing functions. The above method mainly includes the following steps:
[0062] Step 110: Receive a pre-constructed component template file, a configuration template file, and input equivalent nodes of the power system and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and a SWI sub-file.
[0063] It can be understood that the component template file and the configuration template file can be pre-made by software developers and subsequently used as internal files for the automatic modeling process provided in this embodiment for programs within the execution subject to call.
[0064] In this embodiment, the DAT sub-file contains the basic data for power system power flow calculation, and the SWI sub-file contains the basic data for power system stability calculation.
[0065] In practical applications, the input equivalent nodes of the power system can be entered by the user in the program interface, and the data file to be calculated can be input in the form of the user selecting the specific file directory.
[0066] Figure 2Exemplarily, four input equivalent nodes, namely Mengdeling 51, Mengbazhong 51, MengChunkun 51, and MengHetao 51, that have been entered in the program interface are shown, as well as the directories where the two sub-files, the DAT sub-file (i.e., the example.dat in Figure 2 ) and the SWI sub-file (i.e., the example.swi in Figure 2 ), selected by the user are located.
[0067] Step 120: Replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file.
[0068] Suppose the content in the configuration template file is as follows:
[0069] .Setting Arguments
[0070] <PROGRAM_SETTING>
[0071] PARAM_ONE 1 1 1 1 1 1 0 0
[0072] PARAM_TWO 0 0 0 1 0 0 0
[0073] PARAM_THR 1.000 0.000 0.800 0.313 0.680 1.000 0.650 0.720 0.650 0.720
[0074] PARAM_FOU O 0 0 0 1 0.000001000 0 1 1 1 1 1.000000000 0
[0075] PARAM_OUT 0 0 1 2
[0076] PARAM_IEC 0 1 1 1 0
[0077] < / PROGRAM_SETTING>
[0078] .Network Simplifying Arguments
[0079] <MULTI_NODE_EQUAL>
[0080] B"Generator G1” 16.50 "Mengke Town 21" 230.00
[0081] < / MULTI_NODE_EQUAL>
[0082] Use Figure 2After replacing the preset equivalent nodes in the above configuration template file with the four input equivalent nodes shown in the figure, the file content is as follows:
[0083] .Setting Arguments
[0084] <PROGRAM_SETTING>
[0085] PARAM_ONE 1 1 1 1 1 1 0 0
[0086] PARAM_TWO 0 0 0 1 0 0 0
[0087] PARAM_THR 1.000 0.000 0.800 0.313 0.680 1.000 0.650 0.720 0.650 0.720
[0088] PARAM_FOU O 0 0 0 1 0.0000010000 1 1 1 1 1.0000000000
[0089] PARAM_OUT 0 0 1 2
[0090] PARAM_IEC 0 1 1 1 0
[0091] < / PROGRAM_SETTING>
[0092] .Network Simplifying Arguments
[0093] <MULTI_NODE_EQUAL>
[0094] B"Mond Ridge 51" 525.00 “Mengba Zhong 51" 525.00 "Mengchun Kun 51" 525.00 "Meng Hetao 51" 525.00
[0095] < / MULTI_NODE_EQUAL>
[0096] Step 130: Based on the calculation configuration file, DAT sub-file, and SWI sub-file, construct a file group.
[0097] In this embodiment, the file group consists of a set of files composed of multiple files, which can provide effective data basis for the subsequent external system static equivalence link.
[0098] Step 140: Call the core calculation module to perform external system static equivalence on the file group and generate an equivalent result file.
[0099] In this embodiment, the core calculation module SCCPC.exe of the PSD-SCCP program can be called to perform external system static equivalence on the file group to generate an equivalence result file, that is, a lis file. The file content of the equivalence result file can be specifically referred to in Table 1 below.
[0100] Table 1 File Content of Equivalence Result File
[0101]
[0102] Step 150: Parse the parameters of the equivalence result file, and update the component template file based on the result of the parameter parsing to obtain a model component file.
[0103] In this embodiment, the parameter parsing link mainly parses the equivalence parameters in the equivalence result file, so as to provide a data basis for the subsequent processing link.
[0104] Step 160: Perform post-processing on the model component file to generate a static equivalence model.
[0105] The solution provided in this embodiment aims to realize automatic equivalent modeling from PSD to PSCAD. By automatically reading the equivalence result file and generating a static equivalence model, the equivalent modeling process can be simplified, the errors caused by manual modeling can be reduced, and the simulation accuracy and efficiency can be improved.
[0106] In one embodiment, the construction process of the component template file includes:
[0107] First, create a template case in the PSCAD software to generate a pscx file.
[0108] Then, modify the file suffix name of the pscx file to obtain the component template file.
[0109] In practical applications, a template case (i.e., a pscx file) can be created in the PSCAD software. As Figure 3 shown, this template case includes an ideal voltage source 210, a three-phase mutually coupled wire 220, and an electrical node label 230, and is saved as template.pscx. Then, modify the file suffix name to become template.xml to obtain an xml format file, that is, the component template file.
[0110] In one embodiment, the construction process of the configuration template file specifically includes:
[0111] First, select a group of DAT template files and SWI template files to obtain the template file to be calculated.
[0112] Then, set the calculation conditions of the template file to be calculated, and input at least one example equivalent node for equivalent calculation.
[0113] Finally, a configuration template file corresponding to the calculation conditions is generated in the same directory as the DAT template file.
[0114] In practical applications, the SCCP program interface can be opened, and a set of DAT template files and SWI template files can be randomly selected. For example, Figure 4 as shown, check the calculation conditions in the setting interface, then input at least one example equivalent node, perform equivalent calculation, and a CTR configuration file corresponding to the calculation conditions will be generated in the same directory as the DAT template file. Rename this file to template.CTR to obtain the configuration template file.
[0115] In one embodiment, a file group is constructed based on the calculation configuration file, DAT sub-file, and SWI sub-file, specifically including:
[0116] First, call the power flow calculation module to perform power flow calculation on the DAT sub-file to obtain a calculation result file.
[0117] In this embodiment, the power flow calculation module pfnt.exe of the PSD-BPA program can be called to perform power flow calculation on the DAT sub-file in the current directory.
[0118] Then, combine the calculation configuration file, DAT sub-file, calculation result file, and SWI sub-file into a file group.
[0119] It can be understood that by constructing a file group, multiple files can be grouped into a set of file groups, thereby facilitating the subsequent calling process of the file group.
[0120] In one embodiment, parameter parsing is performed on the equivalent result file, and the component template file is updated based on the result of the parameter parsing to obtain a model component file, specifically including:
[0121] The first step is to parse the equivalent parameters in the equivalent result file to obtain the result of the parameter parsing.
[0122] In a specific implementation, the equivalent parameters may specifically include: node type parameters and branch type parameters;
[0123] Among them, the node type parameters include: the voltage amplitude and phase angle of the Thevenin equivalent power supply to the ground of the input equivalent node, as well as the positive sequence and zero sequence equivalent impedances.
[0124] The branch type parameters include: the positive sequence and zero sequence equivalent impedances between the input equivalent nodes.
[0125] The second step is to convert the equivalent parameters in the result of the parameter parsing into nominal values.
[0126] In the third step, based on the type of equivalent parameters, determine the target components corresponding to the input equivalent nodes.
[0127] In the fourth step, add the target components to the component template file, and delete the original components in the component template to obtain the model component file.
[0128] In practical applications, the template.xml file (i.e., the component template file) in the program startup directory can be copied to the current directory, and the XmlDocument class is used to open the template.xml file. Taking the xml formats of the three components, namely the three-phase ideal voltage source, the three-phase coupling line, and the electrical node label in this file as templates, the Thevenin equivalent power supply to the ground of the parsed input equivalent nodes and the mutual impedance between the input equivalent nodes are used as target components and added to the component template file in xml format, and then the original components are deleted.
[0129] In the xml file, the Thevenin equivalent power supply to the ground of the input equivalent nodes consists of a three-phase ideal voltage source, a three-phase coupling line, and an electrical node label; the mutual impedance between the input equivalent nodes consists of a three-phase coupling line and two electrical node labels. Fill the name attribute of the electrical node label with the corresponding equivalent node name. If there are Chinese characters in the equivalent node name, the Chinese characters need to be converted to pinyin. If there are spaces in the equivalent node name, the spaces need to be converted to "_".
[0130] In one embodiment, post-process the model component file to generate a static equivalent model, specifically including:
[0131] First, based on the preset adjustment principle, adjust the layout coordinates of at least some of the target components in the model component file to obtain a corrected component file.
[0132] In a specific implementation, the preset adjustment principle specifically includes:
[0133] Make the key structures in each sub-component of the target component form a correct connection relationship, and there is a set distance between each sub-component of the target component.
[0134] In this embodiment, the adjustment process mainly makes a three-phase ideal voltage source, a three-phase coupling line, and an electrical node label that make up the Thevenin equivalent power supply form a correct connection relationship, and makes a three-phase coupling line and two electrical node labels that make up the mutual impedance form a correct connection relationship. At the same time, there is a certain interval between each component and they do not overlap with each other.
[0135] Then, convert the format of the file content of the corrected component file to generate a static equivalent model.
[0136] In practical applications, the corrected component file obtained after adjustment needs to be renamed to a.dat file name. If there are Chinese characters in the file name, they need to be converted to pinyin. If there are spaces in the node name, the spaces need to be converted to "_". Finally, the file suffix is changed from "xml" to "pscx", and the pscx file is opened using the PSCAD software to obtain the static equivalent model. Figure 5 An exemplary static equivalent model obtained after automatic conversion is shown.
[0137] The automatic modeling method for power system static equivalence provided by the embodiments of the present invention aims to achieve automatic equivalent modeling from PSD to PSCAD. Specifically, a program can be written using the C# programming language to automatically call the PSD-BPA program for power flow calculation. According to the power flow calculation results and the input equivalent nodes input by the user, the PSD-SCCP program is automatically called for external system static equivalence. The equivalent parameters in the equivalent result file (i.e., the lis file) are automatically parsed to generate the corresponding PSCAD model components, and they are automatically laid out and connected to form a complete static equivalent model. This method avoids the problem of cumbersome manual operation steps through automated processing, reduces human errors, realizes the seamless docking of PSD file data and the PSCAD model, and improves the efficiency of equivalent modeling.
[0138] Based on the same general inventive concept, the present invention also protects an automatic modeling device for power system static equivalence. The following describes the automatic modeling device for power system static equivalence provided by the present invention, and the automatic modeling device for power system static equivalence described below can be mutually referred to with the automatic modeling method for power system static equivalence described above.
[0139] As Figure 6 shown, an automatic modeling device for power system static equivalence provided by the embodiments of the present invention specifically includes:
[0140] A receiving module 310, configured to receive a pre-constructed component template file, a configuration template file, the input equivalent nodes of the power system, and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and a SWI sub-file.
[0141] A replacement module 320, configured to replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file.
[0142] A construction module 330, configured to construct a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file.
[0143] An equivalence module 340, configured to call a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file.
[0144] The parsing module 350 is configured to parse the parameters of the equivalent result file and update the component template file based on the result of the parameter parsing, so as to obtain the model component file.
[0145] The processing module 360 is configured to perform post-processing on the model component file to generate a static equivalent model.
[0146] In the power system static equivalent automatic modeling device provided by the embodiment of the present invention, since the entire modeling process can be automatically realized according to the pre-constructed template file and related data, the modeling process is more time-saving and labor-saving, the modeling efficiency is effectively improved, and the human intervention is reduced, so the accuracy and reliability of the modeling process are higher.
[0147] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0148] Figure 7 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
[0149] As Figure 7 shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 430 to execute the power system static equivalent automatic modeling method provided by each of the above embodiments. The method includes: receiving a pre-constructed component template file, a configuration template file, and input equivalent nodes and data files to be calculated of the power system; wherein, the data file to be calculated includes a DAT sub-file and an SWI sub-file; replacing the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; constructing a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file; calling a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file; parsing the parameters of the equivalent result file, and updating the component template file based on the result of the parameter parsing to obtain a model component file; performing post-processing on the model component file to generate a static equivalent model.
[0150] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0151] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the power system static equivalent automatic modeling method provided in the above-mentioned embodiments. The method includes: receiving a pre-constructed component template file, a configuration template file, and the input equivalent nodes and data files to be calculated of the power system; wherein, the data file to be calculated includes a DAT sub-file and an SWI sub-file; replacing the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; based on the calculation configuration file, the DAT sub-file, and the SWI sub-file, constructing a file group; calling a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file; performing parameter parsing on the equivalent result file, and updating the component template file based on the result of the parameter parsing to obtain a model component file; and performing post-processing on the model component file to generate a static equivalent model.
[0152] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for automatically modeling the static equivalence of a power system provided in the above-mentioned various embodiments. The method includes: receiving a pre-constructed component template file, a configuration template file, input equivalent nodes of the power system, and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and a SWI sub-file; replacing the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; constructing a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file; calling a core calculation module to perform static equivalence of an external system on the file group to generate an equivalent result file; performing parameter parsing on the equivalent result file, and updating the component template file based on the result of the parameter parsing to obtain a model component file; performing post-processing on the model component file to generate a static equivalent model.
[0153] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0154] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solutions, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for automatically modeling static equivalence of a power system, characterized in that Including: Receiving a pre-built component template file, a configuration template file, input equivalent nodes of a power system, and a data file to be calculated; wherein, the data file to be calculated contains a DAT sub-file and a SWI sub-file; Replacing preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; Based on the calculation configuration file, the DAT sub-file, and the SWI sub-file, constructing a file group; Invoking a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file; Performing parameter parsing on the equivalent result file, and updating the component template file based on the result of the parameter parsing to obtain a model component file; Performing post-processing on the model component file to generate a static equivalent model.
2. The static equivalent automatic modeling method for a power system according to claim 1, wherein Based on the calculation configuration file, the DAT sub-file, and the SWI sub-file, constructing a file group, including: Invoking a power flow calculation module to perform power flow calculation on the DAT sub-file to obtain a calculation result file; Combining the calculation configuration file, the DAT sub-file, the calculation result file, and the SWI sub-file into a file group.
3. The static equivalent automatic modeling method for a power system according to claim 1, characterized in that Performing parameter parsing on the equivalent result file, and updating the component template file based on the result of the parameter parsing to obtain a model component file, including: Parsing equivalent parameters in the equivalent result file to obtain the result of parameter parsing; Converting the equivalent parameters in the result of the parameter parsing into named values; Based on the type of the equivalent parameters, determining a target component corresponding to the input equivalent node; Adding the target component to the component template file, and deleting the original components in the component template to obtain a model component file.
4. The static equivalent automatic modeling method for a power system according to claim 3, characterized in that The equivalent parameters include: node type parameters and branch type parameters; The node type parameters include: voltage amplitude and phase angle of the Thevenin equivalent power supply to ground of the input equivalent node, and positive sequence and zero sequence equivalent impedances; The branch type parameters include: positive sequence and zero sequence equivalent impedances between the input equivalent nodes.
5. The static equivalent automatic modeling method for a power system according to claim 1, wherein Performing post-processing on the model component file to generate a static equivalent model, including: Based on a preset adjustment principle, adjusting the layout coordinates of at least some target components in the model component file to obtain a corrected component file; Converting the file content of the corrected component file to generate a static equivalent model.
6. The static equivalent automatic modeling method for a power system according to claim 5, characterized in that The preset adjustment principle includes: Making the key structures in each sub-component of the target component form a correct connection relationship, and making there be a set distance between each sub-component of the target component.
7. The static equivalent automatic modeling method for a power system according to claim 1, characterized in that The construction process of the component template file includes: Creating a template example in PSCAD software to generate a pscx file; Modifying the file suffix name of the pscx file to obtain a component template file.
8. The static equivalent automatic modeling method for a power system according to claim 1, characterized in that The construction process of the configuration template file includes: Selecting a group of DAT template files and SWI template files to obtain a data file to be calculated; Setting calculation conditions for the data file to be calculated, and inputting at least one example equivalent node for equivalent calculation; Generating a configuration template file corresponding to the calculation conditions in the same directory as the DAT template file.
9. A static equivalent automatic modeling device for a power system, characterized in that, Including: A receiving module, configured to receive a pre-constructed component template file, a configuration template file, input equivalent nodes of a power system, and a data file to be calculated; wherein, the data file to be calculated includes a DAT sub-file and a SWI sub-file; A replacement module, configured to replace preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; A construction module, configured to construct a file group based on the calculation configuration file, the DAT sub-file, and the SWI sub-file; An equivalent module, configured to call a core calculation module to perform external system static equivalence on the file group to generate an equivalent result file; An analysis module, configured to perform parameter analysis on the equivalent result file and update the component template file based on the result of the parameter analysis to obtain a model component file; A processing module, configured to perform post-processing on the model component file to generate a static equivalent model.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the power system static equivalence automatic modeling method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for automatically generating BPA calculation file based on actual measurement topology and measured data
CN102567603A
Method and device for converting BPA electromechanical transient model into ADPSS electromagnetic transient model
CN115293073A