Electric power system static equivalent automatic modeling method and device and electronic equipment
Through the automated static equivalent modeling method of power system, the traditional artificial modeling problem of time-consuming and labor-intensive and low accuracy is solved, and an efficient and accurate modeling process is achieved.
Patent Information
- Application Number
- CN202510058816.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-14
AI Technical Summary
Traditional artificial solutions for realizing static equivalent modeling of power systems are time-consuming, labor-intensive, and low-resolution and low-modeling efficiency.
It provides a method for automatic modeling of static equivalent values of power system. By receiving pre-constructed component template files and configuration template files, as well as input equivalent nodes and data files to be calculated in the power system, it automatically builds a file group, calls the core calculation module to perform static equivalent values of external systems, generates equivalent result files, and performs parameter analysis to update the component template files, and finally generates a static equivalent model.
The automation of static equivalent modeling of the power system is realized, which reduces human intervention, improves modeling efficiency and accuracy, and reduces human error.
Smart Images

Figure CN119938618A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system simulation, and in particular to a method, device and electronic equipment for automatic modeling of static equivalent values 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, which has improved 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 complicated, especially when performing electromagnetic transient simulation of the power system, the computer's memory and computing speed often cannot meet the fast requirements, so it is necessary to resort to the equivalent method to replace the uninteresting parts of the power system (i.e., the external system) and only keep the parts that need to be studied (i.e., the internal system), which can greatly reduce the scale of simulation calculations and save computing time.
[0003] In the related art, when the static equivalent parameters of the power grid are used for electromagnetic transient simulation modeling, it is generally necessary to manually operate the SCCP software to perform network static equivalent calculations 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 based on the equivalent result file. In practical applications, the above-mentioned manual operation to achieve the static equivalent modeling of the power system is not only time-consuming and labor-intensive, but also prone to 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 multiple times in the PSCAD electromagnetic transient software, resulting in low modeling efficiency.
[0004] It can be seen that the traditional scheme of manually implementing static equivalent modeling of power systems has the problems of being time-consuming and labor-intensive, low in accuracy and low in modeling efficiency. Summary of the invention
[0005] The present invention provides a method, device and electronic equipment for automatic modeling of static equivalent value of power system, which are used to solve the defects of traditional scheme of manually realizing static equivalent value modeling of power system, such as being time-consuming and labor-intensive, having low accuracy and low modeling efficiency.
[0006] In one aspect, the present invention provides a method for automatic modeling of static equivalent values of a power system, comprising: Receiving pre-built component template files and configuration template files as well as 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 value nodes in the configuration template file with the input equivalent value 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 the core calculation module to perform external system static equivalence on the file group and generate an equivalence 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; The model component files are post-processed to generate a static equivalent model.
[0007] According to the automatic modeling method for static equivalent value of power system provided by the present invention, based on the calculation configuration file, the DAT sub-file and the SWI sub-file, a file group is constructed, including: Calling the power flow calculation module to perform power flow calculation on the DAT sub-file to obtain a calculation result file; The calculation configuration file, the DAT sub-file, the calculation result file and the SWI sub-file are combined into a file group.
[0008] According to the static equivalent automatic modeling method for a power system provided by the present invention, the equivalent result file is subjected to parameter parsing, and the component template file is updated based on the result of the parameter parsing to obtain a model component file, including: Parsing the 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; Determining a target element corresponding to the input equivalent node based on the type of the equivalent parameter; The target component is added to the component template file, and the original component in the component template is deleted to obtain a model component file.
[0009] According to the static equivalent automatic modeling method for power system provided by the present invention, the equivalent parameters include: node type parameters and branch type parameters; The node class parameters include: voltage amplitude and phase angle of the Thevenin equivalent power supply to the ground of the input equivalent node and positive sequence and zero sequence equivalent impedance; The branch parameters include: positive-sequence and zero-sequence equivalent impedances between input equivalent nodes.
[0010] According to the method for automatic modeling of static equivalent value of power system provided by the present invention, the model component file is post-processed to generate a static equivalent model, including: Based on a preset adjustment principle, adjusting the layout coordinates of at least part of the target components in the model component file to obtain a revised component file; The file content of the correction component file is formatted and a static equivalent model is generated.
[0011] According to the automatic modeling method for static equivalent value of power system provided by the present invention, the preset adjustment principle includes: The key structures in each sub-element of the target element are correctly connected, and a set distance exists between each sub-element of the target element.
[0012] According to the automatic modeling method for static equivalent value of power system provided by the present invention, the construction process of the component template file includes: Create a new template example in PSCAD software and generate a pscx file; The file suffix of the pscx file is modified to obtain a component template file.
[0013] According to the automatic modeling method for static equivalent value of power system provided by the present invention, the construction process of the configuration template file includes: Select a set of DAT template files and SWI template files to obtain the template files to be calculated; Setting calculation conditions of the template file to be calculated, and inputting at least one example equivalent node for equivalent calculation; A configuration template file corresponding to the calculation condition is generated in the same directory as the DAT template file.
[0014] On the other hand, the present invention also provides a static equivalent automatic modeling device for a power system, comprising: A receiving module, used for receiving a pre-built component template file and a configuration template file, as well as an input equivalent node 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; A replacement module, used to replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; A construction module, used for constructing a file group based on the calculation configuration file, the DAT sub-file and the SWI sub-file; An equivalence module is used to call a core calculation module to perform external system static equivalence on the file group and generate an equivalence result file; A parsing module, used for 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; The processing module is used to post-process the model component file to generate a static equivalent model.
[0015] On the other hand, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned methods for automatic static equivalent modeling of a power system is implemented.
[0016] The method, device and electronic device for automatic modeling of static equivalent of power system provided by the present invention receive pre-built component template files and configuration template files as well as input equivalent nodes and data files to be calculated of the power system; replace the preset equivalent nodes in the configuration template file with input equivalent nodes to obtain a calculation configuration file; construct a file group based on the calculation configuration file, DAT sub-file and SWI sub-file; call the core calculation module to perform static equivalent of the external system on the file group to generate an equivalent result file; 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; finally, post-process the model component file to generate a static equivalent model. Since the entire modeling process can be automatically implemented based on the pre-built template file and related data, the modeling process is more time-saving and labor-saving, the modeling efficiency is effectively improved, and human intervention is reduced, and the accuracy and reliability of the modeling process are higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flowchart of a method for automatic modeling of static equivalent values of a power system provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of the interface for the user to input equivalent nodes and select the directory where the data file to be calculated is located; Figure 3 It is a structural diagram of the template example; Figure 4 This is a schematic diagram of the setting interface corresponding to when the calculation conditions are checked; Figure 5 It is a structural diagram of the static equivalent model obtained after automatic conversion; Figure 6 It is a structural schematic diagram of a static equivalent automatic modeling device for a power system provided by an embodiment of the present invention; Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] This embodiment relates to the field of power system simulation, and can be specifically applied to a scenario of static equivalent modeling of a power system.
[0021] PSD (Power System Department) power system analysis software tool is a large-scale power system analysis software package developed by China Electric Power Research Institute, referred to as PSD software or PSD program, which includes many subprograms such as PSD-BPA power flow and transient stability program (BPA for short), PSD-SCCP power system short-circuit current calculation program (SCCP for short), etc.
[0022] As the main input files of PSD software, DAT files and SWI files contain the basic data for power flow calculation and stability calculation of the power system respectively. BPA program performs power flow calculation and outputs the results based on DAT files. The "network equivalent" function of SCCP program can perform multi-point network equivalent of the power system based on the power flow calculation results according to the network topology and component parameters provided by DAT files and SWI files and the power flow calculation results of BPA. By selecting one or more nodes that need to be equivalent, the equivalent of each node to the ground (ideal voltage source and equivalent impedance in series) and the equivalent mutual impedance between each node can be given.
[0023] When using PSCAD (Power Systems Computer Aided Design) electromagnetic transient software for simulation, it is necessary to manually build a static equivalent model of the external system based on the equivalent results of the SCCP program before conducting subsequent research. The manual modeling process is cumbersome and error-prone, which seriously affects the simulation efficiency and accuracy. In addition, due to the large number of PSD power flow modes, each power flow mode requires an external system static equivalent and remodeling in PSCAD electromagnetic transient software, which results in a huge amount of repetitive work.
[0024] It is not difficult to find that the traditional artificial solution of static equivalent modeling of power system is time-consuming, labor-intensive, low in accuracy and low in modeling efficiency. Accordingly, the embodiments of the present invention provide solutions to the above problems. Figures 1 to 7The detailed scheme of the method, device and electronic equipment for automatic modeling of static equivalent of power system provided by the embodiment of the present invention is described.
[0025] Figure 1 It is a flow chart of a method for automatic modeling of static equivalent values of a power system provided in an embodiment of the present invention.
[0026] like Figure 1 As shown, the static equivalent automatic modeling method for a power system provided by an embodiment of the present invention can be executed by a computer or server with data receiving and data processing functions. The method mainly includes the following steps: Step 110: receiving pre-built component template files and configuration template files as well as input equivalent nodes of the power system and data files to be calculated; wherein the data files to be calculated include DAT sub-files and SWI sub-files.
[0027] It is understandable that the component template file and the configuration template file can be pre-made by a software developer, and then used as internal files of the automatic modeling process provided in this embodiment for program calls within the execution body.
[0028] In this embodiment, the DAT sub-file contains basic data for power system flow calculation, and the SWI sub-file contains basic data for power system stability calculation.
[0029] In practical applications, the input equivalent nodes of the power system can be input by the user in the program interface, and the data files to be calculated can be input in the form of a directory where the user selects the specific files.
[0030] Figure 2 The four input equivalent nodes Mengdeling 51, Mengbazhong 51, Mengchunkun 51, and Menghetao 51 that have been entered in the program interface are shown as examples, as well as the DAT subfile selected by the user (i.e. Figure 2 dat) and SWI subfiles (i.e. Figure 2 The directory where the two sub-files (example.swi) are located.
[0031] Step 120: Replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file.
[0032] Assume that the content in the configuration template file is as follows: .Setting Arguments <PROGRAM_SETTING> PARAM_ONE 1 1 1 1 1 1 0 0 PARAM_TWO 0 0 0 1 0 0 0 PARAM_THR 1.000 0.000 0.800 0.313 0.680 1.000 0.650 0.720 0.650 0.720 PARAM_FOU O 0 0 0 1 0.000001000 0 1 1 1 1 1.000000000 0 PARAM_OUT 0 0 1 2 PARAM_IEC 0 1 1 1 0 < / PROGRAM_SETTING> .Network Simplifying Arguments <MULTI_NODE_EQUAL> B "Generator G1" 16.50 "Monk Town 21" 230.00 < / MULTI_NODE_EQUAL> use Figure 2 After replacing the preset equivalent nodes in the above configuration template file with the four input equivalent nodes shown in the file, the file content is as follows: .Setting Arguments <PROGRAM_SETTING> PARAM_ONE 1 1 1 1 1 1 0 0 PARAM_TWO 0 0 0 1 0 0 0 PARAM_THR 1.000 0.000 0.800 0.313 0.680 1.000 0.650 0.720 0.650 0.720 PARAM_FOU O 0 0 0 1 0.0000010000 1 1 1 1 1.0000000000 PARAM_OUT 0 0 1 2 PARAM_IEC 0 1 1 1 0 < / PROGRAM_SETTING> .Network Simplifying Arguments <MULTI_NODE_EQUAL> B"Mondeling 51" 525.00"Mongolia Central 51" 525.00"Mongolia Chunkun 51" 525.00"Mongolia Hetao 51" 525.00 < / MULTI_NODE_EQUAL> Step 130: construct a file group based on the calculation configuration file, the DAT sub-file and the SWI sub-file.
[0033] In this embodiment, the file group is a set of files consisting of multiple files, which can provide effective data basis for the subsequent static equivalent link of the external system.
[0034] Step 140: Call the core calculation module to perform external system static equivalence on the file group and generate an equivalence result file.
[0035] In this embodiment, the core computing 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, namely, a lis file. The specific file content of the equivalence result file can be seen in Table 1 below.
[0036] Table 1 File contents of equivalent result file
[0037] Step 150: Parameter analysis is performed on the equivalent result file, and the component template file is updated based on the result of the parameter analysis to obtain a model component file.
[0038] In this embodiment, the parameter parsing step mainly parses the equivalent parameters in the equivalent result file, so as to provide data basis for subsequent processing steps.
[0039] Step 160: Post-process the model component file to generate a static equivalent model.
[0040] The solution provided in this embodiment aims to realize automatic equivalent modeling from PSD to PSCAD. By automatically reading the equivalent result file and generating a static equivalent 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.
[0041] In one embodiment, the process of constructing a component template file includes: First, create a new template example in PSCAD software and generate a pscx file.
[0042] Then, modify the file suffix of the pscx file to obtain the component template file.
[0043] In practical applications, you can create a new template case (pscx file) in PSCAD software, such as Figure 3As shown, the template example includes an ideal voltage source 210, a three-phase coupled conductor 220 and an electrical node label 230, which is saved as template.pscx, and then the file suffix is modified to template.xml to obtain an XML format file, that is, a component template file.
[0044] In one embodiment, the process of constructing the configuration template file specifically includes: Firstly, a set of DAT template files and SWI template files are selected to obtain the template files to be calculated.
[0045] Then, the calculation conditions of the template file to be calculated are set, and at least one example equivalent node is input for equivalent calculation.
[0046] Finally, a configuration template file corresponding to the calculation conditions is generated in the same directory as the DAT template file.
[0047] In actual application, you can open the SCCP program interface and select a set of DAT template files and SWI template files at will, such as Figure 4 As shown, check the calculation conditions in the setting interface, then enter at least one sample equivalent node to perform equivalent calculation. A CTR configuration file corresponding to the calculation conditions will be generated in the same directory as the DAT template file. Rename the file to template.CTR to obtain the configuration template file.
[0048] In one embodiment, based on the calculation configuration file, the DAT sub-file and the SWI sub-file, a file group is constructed, specifically including: First, call the power flow calculation module to perform power flow calculation on the DAT sub-file to obtain the calculation result file.
[0049] In this embodiment, the power flow calculation module pfnt.exe of the PSD-BPA program may be called to perform power flow calculation on the DAT sub-file in the current directory.
[0050] Then, the calculation configuration file, the DAT sub-file, the calculation result file, and the SWI sub-file are combined into a file group.
[0051] It is understandable 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.
[0052] In one embodiment, the equivalent result file is parameter parsed, and the component template file is updated based on the result of the parameter parsing to obtain the model component file, which specifically includes: The first step is to parse the equivalent parameters in the equivalent result file to obtain the result of parameter parsing.
[0053] In a specific implementation, the equivalent parameters may specifically include: node type parameters and branch type parameters; The node parameters include: the voltage amplitude and phase angle of the Thevenin equivalent power source to the ground of the input equivalent node, and the positive-sequence and zero-sequence equivalent impedances.
[0054] Branch parameters include: positive-sequence and zero-sequence equivalent impedances between input equivalent nodes.
[0055] The second step is to convert the equivalent parameters in the result of parameter parsing into named values.
[0056] The third step is to determine the target component corresponding to the input equivalent node based on the type of equivalent parameter.
[0057] The fourth step is to add the target component to the component template file and delete the original component in the component template to obtain the model component file.
[0058] In actual applications, you can copy the template.xml file (i.e., component template file) in the program startup directory to the current directory, use the XmlDocument class to open the template.xml file, use the XML format of the three-phase ideal voltage source, three-phase coupled line, and electrical node label in the file as a template, and use the parsed Thevenin equivalent power source to ground of the input equivalent node and the mutual impedance between each input equivalent node as the target element, add them to the component template file in XML format, and then delete the original element.
[0059] In the xml file, the Thevenin equivalent power source to the ground of the input equivalent node is composed of a three-phase ideal voltage source, a three-phase coupled line and an electrical node label; the mutual impedance between the input equivalent nodes is composed of a three-phase coupled line and two electrical node labels. The name attribute of the electrical node label is filled in with the corresponding equivalent node name. If there are Chinese characters in the equivalent node name, they need to be converted into pinyin. If there are spaces in the equivalent node name, the spaces need to be converted into "_".
[0060] In one embodiment, post-processing the model component file to generate a static equivalent model specifically includes: Firstly, based on a preset adjustment principle, the layout coordinates of at least part of the target components in the model component file are adjusted to obtain a revised component file.
[0061] In a specific implementation, the preset adjustment principle specifically includes: The key structures in each sub-element of the target element are correctly connected, and a set distance exists between each sub-element of the target element.
[0062] In this embodiment, the adjustment process mainly forms a correct connection relationship between a three-phase ideal voltage source, a three-phase coupled line and an electrical node label constituting the Thevenin equivalent power supply, and forms a correct connection relationship between a three-phase coupled line and two electrical node labels constituting the mutual impedance, while ensuring that there is a certain interval between the various components and they do not overlap with each other.
[0063] Then, the format of the file content of the correction component file is converted to generate a static equivalent model.
[0064] In practical applications, the modified component file obtained after adjustment needs to be renamed to the 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". Use PSCAD software to open the pscx file to obtain a static equivalent model. Figure 5 The static equivalent model obtained after automatic conversion is shown as an example.
[0065] The static equivalent automatic modeling method of the power system provided by the embodiment of the present invention is intended to realize the automatic equivalent modeling from PSD to PSCAD. Specifically, the program can be written in C# programming language to automatically call the PSD-BPA program for power flow calculation, and automatically call the PSD-SCCP program for external system static equivalent according to the power flow calculation results and the input equivalent nodes input by the user, automatically parse the equivalent parameters in the equivalent result file (i.e., lis file), generate the corresponding PSCAD model components, and automatically layout and connect them to form a complete static equivalent model. This method avoids the problem of cumbersome manual operation steps through automated processing, reduces human errors, realizes seamless connection between PSD file data and PSCAD model, and improves the efficiency of equivalent modeling.
[0066] Based on the same general inventive concept, the present invention also protects a static equivalent automatic modeling device for an electric power system. The static equivalent automatic modeling device for an electric power system provided by the present invention is described below. The static equivalent automatic modeling device for an electric power system described below and the static equivalent automatic modeling method for an electric power system described above can be referenced to each other.
[0067] like Figure 6 As shown, an embodiment of the present invention provides a static equivalent automatic modeling device for a power system, specifically comprising: The receiving module 310 is used to receive pre-built component template files and configuration template files as well as input equivalent nodes of the power system and data files to be calculated; wherein the data files to be calculated include DAT sub-files and SWI sub-files.
[0068] The replacement module 320 is used to replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain the calculation configuration file.
[0069] The construction module 330 is used to construct a file group based on the calculation configuration file, the DAT sub-file and the SWI sub-file.
[0070] The equalization module 340 is used to call the core calculation module to perform external system static equalization on the file group and generate an equalization result file.
[0071] The parsing module 350 is used to perform parameter parsing on the equivalent result file, and update the component template file based on the result of the parameter parsing to obtain the model component file.
[0072] The processing module 360 is used to post-process the model component files to generate a static equivalent model.
[0073] The static equivalent automatic modeling device for the power system provided by the embodiment of the present invention can automatically implement the entire modeling process based on a pre-built template file and related data, so the modeling process is more time-saving and labor-saving, the modeling efficiency is effectively improved, and human intervention is reduced, and the accuracy and reliability of the modeling process are higher.
[0074] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0075] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0076] like Figure 7As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein 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 logic instructions in the memory 430 to execute the static equivalent automatic modeling method of the power system provided by the above-mentioned embodiments, the method comprising: receiving a pre-built component template file and a configuration template file as well as an input equivalent node and a data file to be calculated of the power system; wherein the data file to be calculated includes a DAT sub-file and a SWI sub-file; replacing the preset equivalent node in the configuration template file with the input equivalent node 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 the core calculation module to perform static equivalent of the 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.
[0077] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0078] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program 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 static equivalent automatic modeling method of the power system provided by the above-mentioned embodiments, the method including: receiving a pre-built component template file and a configuration template file as well as an input equivalent node and a data file to be calculated of the power system; 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 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 the core calculation module to perform external system static equivalent on the file group to generate an equivalent result file; performing parameter analysis on the equivalent result file, and updating the component template file based on the result of the parameter analysis to obtain a model component file; post-processing the model component file to generate a static equivalent model.
[0079] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for automatic static equivalent modeling of an electric power system provided in the above-mentioned embodiments, the method comprising: receiving a pre-constructed component template file and a configuration template file as well as an input equivalent node and a data file to be calculated of the electric power system; 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 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 equivalent 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; post-processing the model component file to generate a static equivalent model.
[0080] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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.
[0082] 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 it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatic modeling of static equivalent of power system, characterized in that: include: Receiving pre-built component template files and configuration template files as well as 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 value nodes in the configuration template file with the input equivalent value 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 the core calculation module to perform external system static equivalence on the file group and generate an equivalence 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; The model component files are post-processed to generate a static equivalent model.
2. The method for automatic modeling of static equivalent value of power system according to claim 1, characterized in that: Based on the calculation configuration file, the DAT sub-file and the SWI sub-file, a file group is constructed, including: Calling the power flow calculation module to perform power flow calculation on the DAT sub-file to obtain a calculation result file; The calculation configuration file, the DAT sub-file, the calculation result file and the SWI sub-file are combined into a file group.
3. The method for automatic modeling of static equivalent value of power system according to claim 1, characterized in that: 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, including: Parsing the 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; Determining a target element corresponding to the input equivalent node based on the type of the equivalent parameter; The target component is added to the component template file, and the original component in the component template is deleted to obtain a model component file.
4. The method for automatic modeling of static equivalent value of power system according to claim 3 is characterized in that: The equivalent parameters include: node type parameters and branch type parameters; The node class parameters include: voltage amplitude and phase angle of the Thevenin equivalent power supply to the ground of the input equivalent node and positive sequence and zero sequence equivalent impedance; The branch parameters include: positive-sequence and zero-sequence equivalent impedances between input equivalent nodes.
5. The method for automatic modeling of static equivalent value of power system according to claim 1, characterized in that: Post-processing the model component file to generate a static equivalent model, including: Based on a preset adjustment principle, adjusting the layout coordinates of at least part of the target components in the model component file to obtain a revised component file; The file content of the correction component file is formatted and a static equivalent model is generated.
6. The method for automatic modeling of static equivalent values of a power system according to claim 5, characterized in that: The preset adjustment principles include: The key structures in each sub-element of the target element are correctly connected, and a set distance exists between each sub-element of the target element.
7. The method for automatic modeling of static equivalent value of power system according to claim 1, characterized in that: The construction process of the component template file includes: Create a new template example in PSCAD software and generate a pscx file; The file suffix of the pscx file is modified to obtain a component template file.
8. The method for automatic modeling of static equivalent value of power system according to claim 1, characterized in that: The construction process of the configuration template file includes: Select a set of DAT template files and SWI template files to obtain the template files to be calculated; Setting calculation conditions of the template file to be calculated, and inputting at least one example equivalent node for equivalent calculation; A configuration template file corresponding to the calculation condition is generated in the same directory as the DAT template file.
9. A static equivalent automatic modeling device for a power system, characterized in that: include: A receiving module, used for receiving a pre-built component template file and a configuration template file, as well as an input equivalent node 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; A replacement module, used to replace the preset equivalent nodes in the configuration template file with the input equivalent nodes to obtain a calculation configuration file; A construction module, used for constructing a file group based on the calculation configuration file, the DAT sub-file and the SWI sub-file; An equivalence module is used to call the core calculation module to perform external system static equivalence on the file group and generate an equivalence result file; A parsing module, used for 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; The processing module is used to post-process the model component file to generate a static equivalent model.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for automatic static equivalent modeling of a power system as claimed in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method for automatically generating BPA calculation file based on actual measurement topology and measured data
CN102567603A
PSD-BPA auxiliary switch-based electric power system external equivalent method
CN108062449A
Method and device for converting BPA electromechanical transient model into ADPSS electromagnetic transient model
CN115293073A
Direct current power transmission system electromagnetic transient automatic modeling method based on template rule
CN117763808A
File generation method, device, server, and storage medium
WO2018145635A1