A PMS-based PSCAD regional power grid electromagnetic transient simulation model automatic generation method

By using an automated method based on PMS and Python, a high-precision electromagnetic transient simulation model of a regional power grid is generated, which solves the problems of low efficiency and low accuracy in existing technologies and realizes the automatic generation of efficient and accurate electromagnetic transient simulation models.

CN114201862BActive Publication Date: 2026-01-27STATE GRID FUJIAN ELECTRIC POWER RES INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111442587.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2026-01-27
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Existing technologies struggle to efficiently generate high-precision electromagnetic transient simulation models for regional power grids. Manual modeling is time-consuming and has a high error rate, while model conversion methods result in large simulation errors, failing to meet the research needs for overvoltage and overcurrent caused by the integration of new energy sources into the grid.

Method used

Based on the equipment parameters of the PMS information system, an electromagnetic transient simulation model is automatically generated using Python and PSCAD Automation Library. This includes equipment parameter extraction, verification, correction, and model generation. Data processing and automatic model generation are achieved through Python programs.

Benefits of technology

It improves model generation efficiency and accuracy, reduces human error rate, and provides high-quality electromagnetic transient simulation models, providing a fast and reliable foundation for fault analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201862B_ABST
    Figure CN114201862B_ABST
Patent Text Reader

Abstract

The application provides a PMS-based PSCAD regional power grid electromagnetic transient simulation model automatic generation method, including the following steps; step S1, deriving a device parameter table of the regional power grid from the PMS; step S2, extracting device parameters required for electromagnetic transient modeling from the device parameter table; step S3, based on the extracted device parameters, establishing an element library, and performing data checking, correction and conversion on the device parameters; step S4, based on the data checking result, performing parameter correction by the user; step S5, based on Python and PSCAD Automation Library, generating a PSCAD engineering file, and dividing the regions according to the number and scale of substations; step S6, generating internal transformer models and setting parameters for each substation; step S7, adding connecting lines between substations according to a line table; the application can realize the rapid generation of the regional power grid electromagnetic transient model based on the existing device parameters of the PMS information system and by using tools such as Python and PSCAD Automation Library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system simulation technology, and in particular to an automatic generation method for PSCAD regional power grid electromagnetic transient simulation models based on PMS. Background Technology

[0002] With the widespread integration of power electronic equipment into power systems and the expansion of interconnected power grids, the necessity and complexity of electromagnetic transient simulation models have increased. Manual modeling is insufficient to efficiently handle the tedious and complex task of creating regional power grid electromagnetic transient simulation models, thus creating a demand for automated electromagnetic transient simulation model generation methods. Existing automated generation methods are mostly based on model conversion, that is, converting existing electromechanical transient models into electromagnetic transient models. However, compared to electromechanical transient models, electromagnetic transient models have higher requirements for the dimensionality and precision of model parameters, and model conversion methods will introduce certain simulation errors. Automating the generation of electromagnetic transient models using detailed equipment parameters from existing information systems can effectively improve model accuracy, significantly reduce modeling time and labor costs, and improve simulation analysis efficiency.

[0003] With the increasing scale of new energy grid connection and the proliferation of power electronic devices, problems such as overvoltage and overcurrent caused by faults have become a research focus. These issues have a smaller time scale, necessitating the establishment of electromagnetic transient simulation models. However, regional power grids are large in scale and involve numerous devices, making manual modeling time-consuming and prone to errors. A common approach is to convert existing electromechanical transient models into electromagnetic transient models, achieving automatic model generation. However, electromagnetic transient models require higher accuracy from component models and a greater number of parameters. Directly using parameters from existing electromechanical transient models will result in low accuracy of the converted model, failing to meet the needs of subsequent research. Summary of the Invention

[0004] This invention proposes an automatic generation method for electromagnetic transient simulation models of regional power grids based on PMS and PSCAD. Based on existing equipment parameters in the PMS information system, and using tools such as Python and PSCAD Automation Library, it can realize the rapid generation of electromagnetic transient models of regional power grids.

[0005] The present invention adopts the following technical solution.

[0006] An automatic generation method for PSCAD regional power grid electromagnetic transient simulation model based on PMS, characterized by the following steps;

[0007] Step S1: Export the equipment parameter table of the regional power grid from the PMS;

[0008] Step S2: Extract the equipment parameters required for electromagnetic transient modeling from the equipment parameter table;

[0009] Step S3: Based on the extracted equipment parameters, establish a component library and perform data verification, correction, and conversion on the equipment parameters;

[0010] Step S4: The user corrects the parameters based on the data verification results;

[0011] Step S5: Based on Python and PSCAD Automation Library, generate PSCAD project files and divide the area according to the number and scale of substations;

[0012] Step S6: Generate models of internal transformers and other components for each substation and set parameters;

[0013] Step S7: Add inter-substation connection lines according to the line table.

[0014] In step S1, the equipment parameter table includes a transformer parameter table and a line parameter table.

[0015] In step S2, the verification methods include: parameter format verification, parameter rationality verification, and data integrity verification;

[0016] When correcting data, missing or erroneous data is supplemented using typical parameters and prompts are set for it.

[0017] The equipment parameters required for modeling described in step S2 are automatically obtained by the PMS in steps S1 and S2. The detailed and accurate data already available in the PMS is used to improve the efficiency of data preparation in the early stage of modeling and the accuracy of equipment parameters.

[0018] In step S3, a Python program is used to automatically verify, correct, convert, and statistically analyze the device parameters. The specific method is as follows:

[0019] Step A1: Based on the data extracted in step S2, establish a transformer component library, a line component library, and a substation component library, and collect basic information.

[0020] Step A2: Perform format verification on each component library parameter to determine whether the parameter values ​​meet the specific format requirements;

[0021] Step A3: Verify the rationality of the parameters for each component library;

[0022] Step A4: Verify the data integrity of each component library parameter;

[0023] Step A5: Convert the format of existing parameters to meet the requirements of PSCAD data;

[0024] Step A6: For parameter data items with incorrect format, unreasonable parameters, or missing data, replace them with typical parameters, and record the form name, row number, column number, error condition, and replacement strategy of the parameter. Output a report for easy manual correction later.

[0025] Step A7: Output the forms and statistical information reports for each component library.

[0026] The basic information in step A1 includes the number of transformers, the number of lines, and the number of substations;

[0027] The format verification in step A2 includes determining whether the numerical parameter is a number, whether the "phase" parameter is "A", "B", or "C", and whether the "capacity ratio" parameter is in the format of "high voltage side capacity / medium voltage side capacity / low voltage side capacity".

[0028] The rationality check in step A3 includes checking whether the parameter values ​​are within a reasonable range and checking whether the logical relationship between different parameters of the same device is satisfied.

[0029] The data integrity check in step A4 includes checking for missing parameters, missing transformers, and missing lines.

[0030] The format conversion in step A5 includes converting parameters based on unit changes and adjusting parameter formats based on format differences.

[0031] In step S4, when the user manually corrects the component library form according to the parameter verification prompts, the manual correction operation includes correcting erroneous parameters and supplementing missing data; when the user corrects the component library form in a non-manual way, the application program directly corrects the data to perform electromagnetic transient simulation modeling.

[0032] Steps S5 to S7 constitute the electromagnetic transient simulation modeling process, which is automatically completed by Python calling the PSACD Automation Library.

[0033] The electromagnetic transient simulation modeling process includes generating project files, setting project parameters, adding components such as transformers and lines, and setting component parameters.

[0034] When using electromagnetic transient simulation models for substation modeling, follow these steps:

[0035] Step B1: For all transformers in the substation, perform the following operations step by step according to the transformer type to generate a model and set parameters; the transformer types include: three-phase three-winding transformer, three-phase two-winding transformer, three-phase three-winding autotransformer, and single-phase three-winding autotransformer; the parameters required for modeling and the parameter settings vary depending on the transformer type;

[0036] Step B2: Obtain the parameters required for modeling from the transformer component library;

[0037] Step B3: Obtain the transformer coordinates calculated in step S5, and add the corresponding type of transformer element at the specified location;

[0038] Step B4: Set the parameters of the PSCAD transformer model. The parameters include: transformer name, capacity, frequency, connection method, Δ / Y connection lead-lag relationship, short-circuit impedance, whether it is an ideal transformer, no-load loss, load loss, tap position, parameter display method on the image, rated voltage, and whether to consider saturation characteristics.

[0039] Step B5: Name the simulation variables. The names should include: three-phase / single-phase current of three / double winding, three-phase / single-phase flux linkage, and three-phase / single-phase excitation current. The naming format is "variable name_transformer name".

[0040] Step B6: Add a grounding element to the grounding winding;

[0041] Step B7: Set the transformer tap changer;

[0042] Step B8: Add transformer measurement variables to facilitate subsequent simulation observation;

[0043] Step B9: Based on the substation structure and transformer coordinates, add connecting lines to connect the transformers inside the substation.

[0044] Step B9 includes the following steps;

[0045] Step B91: Scan the circuit component library and perform the following operations for each circuit to add a model;

[0046] Step B92: Use Python to call the mhrc.automation module, add the circuit model, and set the frequency, line length, resistance, and reactance parameters;

[0047] Step B93: Find the names of the substations at both ends of the line, add data signals accordingly, and connect the transformer model and the line model.

[0048] Compared with traditional modeling methods, the present invention has at least the following beneficial technical effects:

[0049] 1. The sheer number of devices involved in regional power grids and the vast amount of parameters required for electromagnetic transient simulation make data collection a complex and cumbersome process. This invention generates electromagnetic transient models based on existing data from information systems, effectively reducing the workload. Furthermore, the equipment parameters already available in the information system are complete and accurate; compared to generation strategies that convert electromechanical transient models, the model generated by this invention has higher accuracy.

[0050] 2. This invention verifies and corrects data exported from information systems and records the verification results, thereby improving the effectiveness of the generated model and reducing problems such as unusable generated models and difficulties in error troubleshooting due to parameter errors or missing parameters. At the same time, this invention retains the function of allowing users to further modify model parameters to adapt to some special situations.

[0051] 3. This invention uses Python and PSCAD Automation Library tools to automatically generate regional power grid electromagnetic transient models based on data exported from PMS. While improving the efficiency of model generation, it reduces the error rate caused by human error, and provides a good model foundation for subsequent fault analysis and other processes. It has high practical and economic value.

[0052] The method described in this invention automatically generates a PSCAD regional power grid electromagnetic transient simulation model based on existing PMS data, and has the following advantages:

[0053] (1) PMS contains detailed and accurate data on power grid equipment, which can be directly used for electromagnetic transient simulation modeling. Based on this, this method verifies the completeness and rationality of the data according to engineering experience, which further improves the data availability and modeling efficiency.

[0054] (2) The entire process of this method is implemented using Python programming. The program automatically reads data, verifies parameters, and generates PSCAD simulation models, greatly improving modeling efficiency.

[0055] The method described in this invention addresses the challenges of large-scale and low-accuracy electromagnetic transient simulation models for regional power grids. Based on existing equipment parameters in a power management system (PMS) and tools such as Python and the PSCAD Automation Library, it automatically generates electromagnetic transient simulation models. This method overcomes the problems of low accuracy and low efficiency associated with traditional automatic modeling methods, offering advantages such as high efficiency, high accuracy, ease of operation, and strong flexibility. This method has significant engineering application value and can bring substantial economic benefits. Attached Figure Description

[0056] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:

[0057] Appendix Figure 1 This is a flowchart illustrating the present invention. Detailed Implementation

[0058] As shown in the figure, an automatic generation method for PSCAD regional power grid electromagnetic transient simulation model based on PMS is characterized by the following steps;

[0059] Step S1: Export the equipment parameter table of the regional power grid from the PMS; including transformer parameter table, line parameter table, etc.

[0060] Step S2: Extract the equipment parameters required for electromagnetic transient modeling from the equipment parameter table. For the transformer parameter table, the following parameters should be extracted: equipment name, operating number, substation, bay unit, voltage level, number of phases, phase type, model, rated voltage, rated current, rated frequency, winding type, connection group number, rated capacity, voltage ratio, rated voltage (medium voltage), rated voltage (low voltage), rated current (medium voltage), rated current (low voltage), load loss (high voltage-low voltage), load loss (high voltage-medium voltage), load loss (medium voltage-low voltage), short-circuit impedance (high voltage-medium voltage), short-circuit impedance (high voltage-low voltage), short-circuit impedance (medium voltage-low voltage), no-load current, no-load loss, load loss (full load), neutral point connection method, medium-voltage side capacity, low-voltage side capacity, capacity ratio, etc. For the line parameter table, the following parameters should be extracted: line name, model, rated frequency, line length, resistance, reactance, susceptance, name of the starting substation, name of the ending substation, etc. Among them, transformer parameters are mainly used to establish substation simulation models, and line parameters are mainly used to determine the connection relationships between substations.

[0061] Step S3: Based on the extracted equipment parameters, establish a component library and perform data verification, correction, and conversion on the equipment parameters;

[0062] Step S4: The user corrects the parameters based on the data verification results;

[0063] Step S5: Based on Python and PSCAD Automation Library, generate PSCAD project files and divide the area according to the number and scale of substations;

[0064] Step S6: Generate models of internal transformers and other components for each substation and set parameters;

[0065] Step S7: Add inter-substation connection lines according to the line table.

[0066] In step S1, the equipment parameter table includes a transformer parameter table and a line parameter table.

[0067] In step S2, the verification methods include: parameter format verification, parameter rationality verification, and data integrity verification;

[0068] When correcting data, missing or erroneous data is supplemented using typical parameters and prompts are set for it.

[0069] The equipment parameters required for modeling described in step S2 are automatically obtained by the PMS in steps S1 and S2. The detailed and accurate data already available in the PMS is used to improve the efficiency of data preparation in the early stage of modeling and the accuracy of equipment parameters.

[0070] In step S3, a Python program is used to automatically verify, correct, convert, and statistically analyze the device parameters. The specific method is as follows:

[0071] Step A1: Based on the data extracted in Step S2, establish a transformer component library, a line component library, and a substation component library, and collect basic information. The substation component library is derived from the transformer component library, storing basic information such as the substation name, the number and type of transformers within the substation, etc. Simultaneously, collect basic information such as the number of transformers, lines, and substations.

[0072] Step A2: Perform format verification on each component library parameter to determine whether the parameter values ​​meet the specific format requirements;

[0073] Step A3: Verify the rationality of the parameters for each component library;

[0074] Step A4: Verify the data integrity of each component library parameter;

[0075] Step A5: Convert the format of existing parameters to meet the requirements of PSCAD data;

[0076] Step A6: For parameter data items with incorrect format, unreasonable parameters, or missing data, replace them with typical parameters, and record the form name, row number, column number, error condition, and replacement strategy of the parameter. Output a report for easy manual correction later.

[0077] Step A7: Output the forms and statistical information reports for each component library.

[0078] The basic information in step A1 includes the number of transformers, the number of lines, and the number of substations;

[0079] The format verification in step A2 includes determining whether the numerical parameter is a number, whether the "phase" parameter is "A", "B", or "C", and whether the "capacity ratio" parameter is in the format of "high voltage side capacity / medium voltage side capacity / low voltage side capacity".

[0080] The rationality check in step A3 includes checking whether the parameter values ​​are within a reasonable range and checking whether the logical relationship between different parameters of the same device is satisfied.

[0081] The data integrity check in step A4 includes checking for missing parameters, missing transformers, and missing lines.

[0082] The format conversion in step A5 includes converting parameters based on unit changes and adjusting parameter formats based on format differences.

[0083] In step S4, when the user manually corrects the component library form based on the parameter verification prompts, the manual correction includes correcting erroneous parameters and supplementing missing data. When the user corrects the component library form manually, the application program directly corrects the data for electromagnetic transient simulation modeling. This step is used to avoid erroneous program modifications caused by the actual values ​​of some equipment parameters exceeding the set range, and to address situations where the typical values ​​of some parameters have weak reference value. Alternatively, the user can skip this step and directly set typical values ​​using the program to proceed to the next modeling step.

[0084] Steps S5 to S7 constitute the electromagnetic transient simulation modeling process, which is automatically completed by Python calling the PSACD Automation Library.

[0085] The electromagnetic transient simulation modeling process includes generating project files, setting project parameters, adding components such as transformers and lines, and setting component parameters.

[0086] When using electromagnetic transient simulation models for substation modeling, follow these steps:

[0087] Step B1: For all transformers in the substation, perform the following operations step by step according to the transformer type to generate a model and set parameters; the transformer types include: three-phase three-winding transformer, three-phase two-winding transformer, three-phase three-winding autotransformer, and single-phase three-winding autotransformer; the parameters required for modeling and the parameter settings vary depending on the transformer type;

[0088] Step B2: Obtain the parameters required for modeling from the transformer component library;

[0089] Step B3: Obtain the transformer coordinates calculated in step S5, and add the corresponding type of transformer element at the specified location;

[0090] Step B4: Set the parameters of the PSCAD transformer model. The parameters include: transformer name, capacity, frequency, connection method, Δ / Y connection lead-lag relationship, short-circuit impedance, whether it is an ideal transformer, no-load loss, load loss, tap position, parameter display method on the image, rated voltage, and whether to consider saturation characteristics.

[0091] Step B5: Name the simulation variables. The names should include: three-phase / single-phase current of three / double winding, three-phase / single-phase flux linkage, and three-phase / single-phase excitation current. The naming format is "variable name_transformer name".

[0092] Step B6: Add a grounding element to the grounding winding;

[0093] Step B7: Set the transformer tap changer;

[0094] Step B8: Add transformer measurement variables to facilitate subsequent simulation observation;

[0095] Step B9: Based on the substation structure and transformer coordinates, add connecting lines to connect the transformers inside the substation.

[0096] Step B9 includes the following steps;

[0097] Step B91: Scan the circuit component library and perform the following operations for each circuit to add a model;

[0098] Step B92: Use Python to call the mhrc.automation module, add the circuit model, and set the frequency, line length, resistance, and reactance parameters;

[0099] Step B93: Find the names of the substations at both ends of the line, add data signals accordingly, and connect the transformer model and the line model.

[0100] The above content is only for illustrating the technical concept of the present invention and should not be construed as limiting the scope of protection of the present invention. Any modifications made to the technical solution based on the technical concept proposed in this invention shall fall within the scope of protection of the claims of this invention.

Claims

1. A method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS, characterized in that: Includes the following steps; Step S1: Export the equipment parameter table of the regional power grid from the PMS; Step S2: Extract the equipment parameters required for electromagnetic transient modeling from the equipment parameter table; Step S3: Based on the extracted equipment parameters, establish a component library and perform data verification, correction, and conversion on the equipment parameters; Step S4: The user corrects the parameters based on the data verification results; Step S5: Based on Python and PSCAD Automation Library, generate PSCAD project files and divide the area according to the number and scale of substations; Step S6: Generate internal transformer models for each substation and set parameters; Step S7: Add inter-substation connection lines according to the line table; Steps S5 to S7 are the electromagnetic transient simulation modeling process, which is automatically completed by Python calling the PSACD Automation Library. When using electromagnetic transient simulation models for substation modeling, follow these steps: Step B1: For all transformers in the substation, perform the following operations step by step according to the transformer type to generate a model and set parameters; the transformer types include: three-phase three-winding transformer, three-phase two-winding transformer, three-phase three-winding autotransformer, and single-phase three-winding autotransformer; the parameters required for modeling and the parameter settings vary depending on the transformer type; Step B2: Obtain the parameters required for modeling from the transformer component library; Step B3: Obtain the transformer coordinates calculated in step S5, and add the corresponding type of transformer element at the specified location; Step B4: Set the parameters of the PSCAD transformer model. The parameters include: transformer name, capacity, frequency, connection method, Δ / Y connection lead-lag relationship, short-circuit impedance, whether it is an ideal transformer, no-load loss, load loss, tap position, parameter display method on the image, rated voltage, and whether to consider saturation characteristics. Step B5: Name the simulation variables. The names should include: three-phase / single-phase current of three / double winding, three-phase / single-phase flux linkage, and three-phase / single-phase excitation current. The naming format is "variable name_transformer name". Step B6: Add a grounding element to the grounding winding; Step B7: Set the transformer tap changer; Step B8: Add transformer measurement variables to facilitate subsequent simulation observation; Step B9: Based on the substation structure and transformer coordinates, add connecting lines to connect the transformers inside the substation. Step B9 includes the following steps; Step B91: Scan the circuit component library and perform the following operations for each circuit to add a model; Step B92: Use Python to call the mhrc.automation module, add the circuit model, and set the frequency, line length, resistance, and reactance parameters; Step B93: Find the names of the substations at both ends of the line, add data signals accordingly, and connect the transformer model and the line model.

2. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: In step S1, the equipment parameter table includes a transformer parameter table and a line parameter table.

3. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: In step S2, the verification methods include: parameter format verification, parameter rationality verification, and data integrity verification; When correcting data, missing or erroneous data is supplemented using typical parameters and prompts are set for it.

4. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: The equipment parameters required for modeling described in step S2 are automatically obtained by the PMS in steps S1 and S2. The detailed and accurate data already available in the PMS is used to improve the efficiency of data preparation in the early stage of modeling and the accuracy of equipment parameters.

5. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: In step S3, a Python program is used to automatically verify, correct, convert, and statistically analyze the device parameters. The specific method is as follows: Step A1: Based on the data extracted in step S2, establish a transformer component library, a line component library, and a substation component library, and collect basic information. Step A2: Perform format verification on each component library parameter to determine whether the parameter values ​​meet the specific format requirements; Step A3: Verify the rationality of the parameters for each component library; Step A4: Verify the data integrity of each component library parameter; Step A5: Convert the format of existing parameters to meet the requirements of PSCAD data; Step A6: For parameter data items with incorrect format, unreasonable parameters, or missing data, replace them with typical parameters, and record the form name, row number, column number, error condition, and replacement strategy of the parameter. Output a report for easy manual correction later. Step A7: Output the forms and statistical information reports for each component library.

6. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 5, characterized in that: The basic information in step A1 includes the number of transformers, the number of lines, and the number of substations; The format verification in step A2 includes determining whether the numerical parameter is a number, whether the "phase" parameter is "A", "B", or "C", and whether the "capacity ratio" parameter is in the format of "high voltage side capacity / medium voltage side capacity / low voltage side capacity". The rationality check in step A3 includes checking whether the parameter values ​​are within a reasonable range and checking whether the logical relationship between different parameters of the same device is satisfied. The data integrity check in step A4 includes checking for missing parameters, missing transformers, and missing lines. The format conversion in step A5 includes converting parameters based on unit changes and adjusting parameter formats based on format differences.

7. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: In step S4, when a user manually corrects the form of the component library according to the parameter verification prompts, the manual correction operation includes correcting erroneous parameters and supplementing missing data. When users modify the component library form in a non-manual manner, the application directly corrects the data for electromagnetic transient simulation modeling.

8. The method for automatically generating a PSCAD regional power grid electromagnetic transient simulation model based on PMS according to claim 1, characterized in that: The electromagnetic transient simulation modeling process includes generating project files, setting project parameters, adding transformer and circuit components, and setting component parameters.

Citation Information

Patent Citations

  • Automatic generation method for electromagnetic transient visual simulation model of power system

    CN107664954A