Power grid simulation generator mode control method and device, equipment and storage medium
By automatically determining the subsystem and generator names in the RSCAD copy document and generating a lockout mode program, the problem of low efficiency in generator mode setting in the power grid simulation model is solved, and fast and efficient generator mode control is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
- Filing Date
- 2022-05-30
- Publication Date
- 2026-06-16
AI Technical Summary
In existing technologies, the generator mode setting in power grid simulation models is inefficient, causing the power grid simulation models to malfunction. In particular, the mode needs to be manually set before and after downloading the model to the RTDS real-time simulator, which is time-consuming and inefficient.
By identifying the location of subsystem text modules and generator names in the RSCAD copy document, a runnable lock-mode program is generated to automatically lock the generator to rated speed mode, avoiding manual settings for each generator individually.
It enables rapid and efficient mode control of all generators, improves the operating efficiency of the power grid simulation model, and reduces the time required for manual intervention.
Smart Images

Figure CN115051413B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor control, and more specifically, to generator mode control methods, devices, equipment, and storage media for power grid simulation. Background Technology
[0002] With the continuous increase in electricity demand, the power system is also developing rapidly, and its scale is constantly expanding. Real-time power grid simulation is needed to ensure the safety of this massive system during operation. Currently, RSCAD software is used for power grid simulation, allowing for the download and running of simulation models and monitoring of their operational status.
[0003] Currently, a power grid simulation model contains hundreds or even thousands of generators. If the simulation starts with the generators in torque mode, all variables in each generator's registers need to be calculated from 0, requiring a large number of unstable step sizes. This can easily lead to data overflow, causing the power grid simulation model to malfunction. Therefore, before downloading the power grid simulation model from RSCAD software to the RTDS (Real Time Digital Simulator), the state of each generator in the simulation model needs to be set to rated speed. After downloading the power grid simulation model to the RTDS, the state of each generator should then be set to torque mode for normal operation.
[0004] Manually setting the mode for each generator model individually would result in a time-consuming and inefficient generator mode locking process.
[0005] Therefore, in order to ensure that the power grid simulation model can operate efficiently and normally, it is necessary to perform efficient mode control on all generators in the power grid simulation model. Summary of the Invention
[0006] In view of the above problems, this application is made to provide a generator mode control method, apparatus, equipment and storage medium for power grid simulation, so as to improve the efficiency of generator mode control.
[0007] To achieve the above objectives, the following specific solutions are proposed:
[0008] A generator mode control method for power grid simulation includes:
[0009] In the RSCAD copy document of the power grid simulation, each subsystem text module is determined according to the position of the subsystem title field, and a subsystem name is created for the subsystem text module. The RSCAD copy document contains several subsystem title fields.
[0010] For each subsystem text module, the line position of each generator name is determined based on the line position of each generator identifier in the subsystem text module, and the generator name is extracted.
[0011] Based on the names of each subsystem and the names of each generator in the text module of each subsystem, the locking modes of each generator are laid out, and an operable locking mode program for each generator is generated.
[0012] Run the runnable lock mode program to lock each generator to rated speed mode.
[0013] Optionally, determining each subsystem text module based on the position of the subsystem title field and creating a subsystem name for each subsystem text module includes:
[0014] Determine several first target rows, each of which contains a subsystem title field;
[0015] For the first target row containing the header field of each subsystem:
[0016] The content located between the first target line and the next first target line is determined as the subsystem text module of the subsystem title field;
[0017] The subsystem name of the subsystem text module is determined based on the position of the subsystem title field of the subsystem text module in each first target line.
[0018] Add the subsystem name of the subsystem text module after the subsystem title field of the subsystem text module.
[0019] Optionally, based on the line position of each generator identifier in the subsystem text module, the line position of each generator name is determined, and the generator name is extracted, including:
[0020] Determine a number of second target lines, each second target line containing the generator identifier in the subsystem text module;
[0021] For each second target row, determine that the second row following the second target row is the row containing the generator name, and extract the generator name from the row containing the generator name.
[0022] Optionally, the step of laying out the locking modes of each generator based on the names of each subsystem and the generator names in the subsystem text module corresponding to each subsystem name, and generating an executable locking mode program for each generator, includes:
[0023] In the RSCAD editing control file for power grid simulation, the generator mode master control text is generated based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name.
[0024] In the RSCAD editing and execution file of the power grid simulation, a program for locking the waveform to be recorded for each generator is created based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name.
[0025] In the RSCAD editing execution file, the waveform of the generator mode master control text in the RSCAD editing control file is recorded, thereby activating the waveform recording lock mode program into a runnable lock mode program.
[0026] Optionally, generating the generator mode master control text based on the names of each subsystem and the generator names in the subsystem text module corresponding to each subsystem name includes:
[0027] For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, the subsystem name and the generator name are input into the pre-established generator mode control text frame to obtain the generator mode control text fragment of the generator name.
[0028] The generator mode control text fragments of each generator name in the subsystem text module corresponding to each subsystem name are summarized to obtain the generator mode system control text fragment of the subsystem name.
[0029] The generator mode system control text fragments of each subsystem name are summarized to obtain the generator mode master control text.
[0030] Optionally, the step of creating the waveform locking mode program for each generator based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name includes:
[0031] For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, input the subsystem name and the generator name into the pre-established locked mode recorded waveform text frame to obtain the generator locked mode recorded waveform text segment of the generator name.
[0032] Summarize the generator lock mode waveform text fragments of each generator name in the subsystem text module corresponding to each subsystem name to obtain the system lock mode waveform text fragment of the subsystem name.
[0033] The system lock mode text fragments of each subsystem name are summarized to obtain the program for the lock mode of the waveform to be recorded.
[0034] Optionally, the method further includes:
[0035] Based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, the unlocking modes of each generator are laid out, and an operable unlocking mode program for each generator is generated.
[0036] Run the runnable unlock mode program to set each generator to torque mode.
[0037] A generator mode control device for power grid simulation includes:
[0038] The subsystem module determination unit is used to determine each subsystem text module in the RSCAD copy document of the power grid simulation according to the position of each subsystem title field, and to create a subsystem name for the subsystem text module. The RSCAD copy document contains several subsystem title fields.
[0039] The generator name extraction unit is used to determine the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extract the generator name;
[0040] The lock mode program generation unit is used to lay out the lock mode of each generator according to the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name, and generate an operable lock mode program for each generator.
[0041] The lock-mode program execution unit is used to run the runnable lock-mode program to lock each generator to the rated speed mode.
[0042] Optionally, the subsystem module determining unit includes:
[0043] The first target row determination unit is used to determine a number of first target rows in the RSCAD copy document of the power grid simulation, each first target row containing a subsystem title field;
[0044] The subsystem text module determination unit is used to determine, in the RSCAD copy document, for each subsystem title field, the content located between the first target line and the next first target line, which is the subsystem text module of the subsystem title field;
[0045] The subsystem name determination unit is used to determine the subsystem name of the subsystem text module in the RSCAD copy document, for each subsystem title field in the first target line, based on the position of the subsystem title field of the subsystem text module in each first target line.
[0046] The subsystem name addition unit is used to add the subsystem name of the subsystem text module after the subsystem title field of the subsystem text module in the RSCAD copy document, for each subsystem title field in the first target line.
[0047] Optionally, the generator name extraction unit includes:
[0048] The second target line determination unit is used to determine a number of second target lines for each subsystem text module, and each second target line contains the generator identifier in the subsystem text module.
[0049] The generator name extraction unit is used to determine, for each second target line in each subsystem text module, the second line following the second target line is the line where the generator name is located, and to extract the generator name from the line where the generator name is located.
[0050] Optionally, the lock mode program generation unit includes:
[0051] The master control text generation unit is used to generate the master control text of the generator mode in the RSCAD editing control file of the power grid simulation, based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name.
[0052] The waveform recording program generation unit is used to create the waveform recording locking mode program for each generator in the RSCAD editing and execution file of the power grid simulation, based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name.
[0053] The waveform recording program activation unit is used to activate the waveform recording lock mode program into an operable lock mode program by recording waveforms of the generator mode master control text in the RSCAD editing execution file.
[0054] Optionally, the overall control text generation unit includes:
[0055] The first master control text generation subunit is used to input the subsystem name and the generator name into a pre-established generator mode control text frame for each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, so as to obtain the generator mode control text fragment of the generator name.
[0056] The second master control text generation subunit is used to summarize the generator mode control text fragments of each generator name in the subsystem text module corresponding to each subsystem name, and obtain the generator mode system control text fragment of the subsystem name.
[0057] The third master control text generation subunit is used to summarize the generator mode system control text fragments of each subsystem name to obtain the generator mode master control text.
[0058] Optionally, the waveform recording program generation unit includes:
[0059] The first waveform recording program generation subunit is used to input the subsystem name and the generator name into a pre-established locked mode waveform recording text frame for each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, so as to obtain the generator locked mode waveform recording text fragment of the generator name.
[0060] The second waveform recording program generation subunit is used to summarize the generator locking mode waveform text fragments of each generator name in the subsystem text module corresponding to each subsystem name, and obtain the system locking mode waveform text fragment of the subsystem name.
[0061] The third subunit for generating the waveform to be recorded is used to summarize the waveform text fragments of the system lock mode of each subsystem name to obtain the waveform lock mode program.
[0062] Optionally, the device may also include:
[0063] The unlocking mode program generation unit is used to lay out the unlocking modes of each generator according to the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, and generate an operable unlocking mode program for each generator.
[0064] The unlock mode program execution unit is used to run the runnable unlock mode program and set each generator to torque mode.
[0065] A generator mode control device for power grid simulation includes a memory and a processor;
[0066] The memory is used to store programs;
[0067] The processor is used to execute the program to implement the various steps of the generator mode control method for power grid simulation as described above.
[0068] A readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the various steps of the generator mode control method as described above in the power grid simulation.
[0069] By employing the above technical solution, this application determines each subsystem text module in the RSCAD copy document of the power grid simulation based on the position of the title field of each subsystem, and creates a subsystem name for each subsystem text module. For each subsystem text module, the line position of the generator name is determined based on the line position of the generator identifier, and the generator name is extracted. Based on each subsystem name and the generator names in the corresponding subsystem text module, the locking modes of each generator are laid out, generating a runnable locking mode program for each generator. Running the runnable locking mode program locks each generator to its rated speed mode. Therefore, by finding all subsystems in the power grid simulation model from the RSCAD copy document and identifying all generator names within each subsystem, it is possible to aggregate the generator names and lay out the locking modes for each generator. This allows for unified control of all generators. By running the runnable locking mode program that integrates all generators, it is possible to quickly lock all generators to their rated speed mode without manually setting the mode for each generator individually, greatly improving the efficiency of generator mode control. Attached Figure Description
[0070] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0071] Figure 1 A schematic flowchart of generator mode control in power grid simulation is provided for an embodiment of this application;
[0072] Figure 2 A schematic diagram of a device structure for generator mode control in power grid simulation provided in an embodiment of this application;
[0073] Figure 3 This is a schematic diagram of the structure of a generator mode control device for power grid simulation provided in an embodiment of this application. Detailed Implementation
[0074] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0075] The proposed solution can be implemented based on a terminal with data processing capabilities, such as a computer, server, or cloud platform.
[0076] Next, combined Figure 1 The generator mode control method for power grid simulation in this application may include the following steps:
[0077] S110. In the RSCAD copy document of the power grid simulation, determine the text module of each subsystem according to the position of the title field of each subsystem, and create a subsystem name for the text module of the subsystem.
[0078] It is understandable that each subsystem text module can have a title, and the content of the subsystem text module follows the title. Therefore, each subsystem text module can be determined based on the position of the title field of each subsystem.
[0079] Specifically, the RSCAD copy document for power grid simulation can be a file with the ".dft" extension, hereinafter referred to as a .dft file. The subsystem title field can have a fixed name, such as "SUBSYSTEM-TITLE". The RSCAD copy document for power grid simulation can contain several subsystem title fields. The name of the created subsystem can be based on the line position of the corresponding subsystem title field. For example, if a subsystem title field is located on line 56 of the RSCAD copy document, then its subsystem text module can be named "Subsystem#56".
[0080] S120. For each subsystem text module, determine the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extract the generator name.
[0081] Specifically, the generator identifier can be a fixed name, such as "lf_rtds_sharc_sld_MACV31".
[0082] Within the same subsystem, different generators may have different generator identifiers in the subsystem text module.
[0083] It is understandable that the relative distance between the generator name and the generator identifier can be fixed. For example, the generator name may be on the nth line after the generator identifier, where n is a fixed value. Therefore, the line position of each generator name can be determined based on the line position of each generator identifier in the subsystem text module.
[0084] S130. Based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, the locking modes of each generator are laid out, and an operable locking mode program for each generator is generated.
[0085] Understandably, after extracting the names of each generator, all generator names can be aggregated, all generators can be processed uniformly, the locking modes of all generators can be configured, and the modes of each generator can be uniformly controlled.
[0086] Specifically, in RSCAD's manual control lock mode window, you can enter the name of each generator and the name of the subsystem corresponding to the text module of each generator name to generate and extract the runnable lock mode program for each generator.
[0087] S140. Run the runnable lock mode program to lock each generator to rated speed mode.
[0088] Specifically, the Runtime software can be used to run programs in locked mode.
[0089] The generator mode control method for power grid simulation provided in this embodiment determines each subsystem text module in the RSCAD copy document of the power grid simulation based on the position of the title field of each subsystem, and creates a subsystem name for each subsystem text module. For each subsystem text module, the row position of the generator name is determined based on the row position of the generator identifier, and the generator name is extracted. Based on each subsystem name and the generator names in the corresponding subsystem text module, the locking modes of each generator are laid out, generating a runnable locking mode program for each generator. Running the runnable locking mode program locks each generator to its rated speed mode. Therefore, by finding all subsystems in the power grid simulation model from the RSCAD copy document and identifying all generator names within each subsystem, the locking modes of each generator can be aggregated and laid out. This allows for unified control of all generators. By running the runnable locking mode program that integrates all generators, it achieves rapid locking of all generators to their rated speed mode without the need for manual setting of each generator's mode, greatly improving the efficiency of generator mode control.
[0090] In some embodiments of this application, the process of determining each subsystem text module based on the position of the subsystem title field, as mentioned in the above embodiments, and creating a subsystem name for the subsystem text module is described. This process may include:
[0091] S1. Determine several first target rows, each of which contains a subsystem header field.
[0092] Specifically, the first target line can represent the line containing the subsystem title. In the RSCAD dft file for power grid simulation, search for lines containing the "SUBSYSTEM-TITLE" field, and identify several lines containing "SUBSYSTEM-TITLE" as the first target line.
[0093] Next, we will take the first target row containing the title field of each subsystem as a special case.
[0094] S2. Determine the content located between the first target line and the next first target line, which is the subsystem text module of the subsystem title field.
[0095] Understandably, each subsystem text module is separated by a subsystem title field, meaning that a single subsystem text module is located between two subsystem title fields.
[0096] For example, if the first target line in the dft file is located at line 46, and the next target line after the first target line is at line 58, then the content from line 47 to line 57 is the subsystem text module of the subsystem title field corresponding to the first target line.
[0097] S3. Determine the subsystem name of the subsystem text module based on the position of the subsystem title field of the subsystem text module in each first target line.
[0098] Specifically, the first target lines can be ranked according to their position in the dft file, and the subsystem names of the subsystem text modules can be named according to the ranking order.
[0099] For example, if the first target line in the DFT file is located at line 10, line 20, and line 30 respectively, then the first target line in line 10 is ranked as 1, the first target line in line 20 is ranked as 2, and the first target line in line 30 is ranked as 3. Then the subsystem name of the subsystem text module corresponding to the system title field in line 10 can be "Subsystem#1", and the subsystem name of the subsystem text module corresponding to the system title field in line 20 can be "Subsystem#2".
[0100] S4. Add the subsystem name of the subsystem text module after the subsystem title field of the subsystem text module.
[0101] For example, for a subsystem text module named "Subsystem#1", you can add "Subsystem#1" after the system title field "SUBSYSTEM-TITLE" in its corresponding first target line to get the new first target line "SUBSYSTEM-TITLE: Subsystem#1".
[0102] The generator mode control method for power grid simulation provided in this embodiment determines each first target row, identifies the content between two adjacent first target rows as subsystem text modules, and names each subsystem text module differently, providing an important analysis object for extracting generator names.
[0103] In some embodiments of this application, the process of determining the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extracting the generator name, as mentioned in the above embodiments, is described. This process may include:
[0104] S1. Determine several second target lines, each second target line containing the generator identifier in the subsystem text module.
[0105] Specifically, the second target line can represent the line containing the generator identifier. In the subsystem text module, search for lines containing the field "lf_rtds_sharc_sld_MACV31", and identify several lines containing "lf_rtds_sharc_sld_MACV31" as the second target line.
[0106] S2. For each second target row, determine that the second row following the second target row is the row containing the generator name, and extract the generator name from the row containing the generator name.
[0107] For example, if the second target line is line 15 in the dft file, then line 17 contains the generator name, and the generator name can be extracted from line 17 of the dft file.
[0108] The generator mode control method for power grid simulation provided in this embodiment determines each second target row and, based on the position of the second target row, determines the generator name row two rows after the second target row, extracts the generator name, thereby enabling the extraction of the generator names corresponding to all generators in the power grid simulation from the DFT file, which facilitates unified processing of mode control for all generators.
[0109] In some embodiments of this application, the process of laying out the locking modes of each generator according to the names of each subsystem and the generator names in the subsystem text module corresponding to each subsystem name, and generating the runnable locking mode program for each generator, is described. This process may include:
[0110] S1. In the RSCAD editing control file of the power grid simulation, generate the generator mode master control text according to the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name.
[0111] Specifically, the RSCAD editing control file for power grid simulation can be a file with the ".sib" extension, hereinafter referred to as a sib file.
[0112] The process of generating the generator mode master control text based on the names of each subsystem and the generator names in the corresponding subsystem text module can include the following steps:
[0113] S11. For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, input the subsystem name and the generator name into the pre-established generator mode control text frame to obtain the generator mode control text fragment of the generator name.
[0114] Specifically, in the sib file, a pre-established generator mode control text frame can be entered. The generator mode control text frame can indicate that a specified generator will be controlled to a specified coordinate position. Therefore, the generator mode control text frame can also include custom input of the generator's coordinate position. For example, if the coordinate value (60, 0) is entered into the generator mode control text frame, after the generator mode control text fragment is executed, the corresponding generator can be placed at the position of coordinate (60, 0).
[0115] Based on this, the coordinates of the generator corresponding to the next generator name can be determined by the coordinates of the generator corresponding to the current generator name and the fixed size and specifications of the generator.
[0116] S12. Summarize the generator mode control text fragments of each generator name in the subsystem text module corresponding to each subsystem name to obtain the generator mode system control text fragment of the subsystem name.
[0117] S13. Summarize the generator mode system control text fragments of each subsystem name to obtain the generator mode master control text.
[0118] S2. In the RSCAD editing and execution file of the power grid simulation, create the waiting wave locking mode program for each generator according to the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name.
[0119] Specifically, the RSCAD editing executable file for power grid simulation can be a file with the ".scr" extension, hereinafter referred to as a .scr file.
[0120] The process of creating the waveform locking mode program for each generator based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name may include the following steps:
[0121] S21. For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, input the subsystem name and the generator name into the pre-established locked mode to be recorded waveform text frame to obtain the generator locked mode to be recorded waveform text segment of the generator name.
[0122] Specifically, in the .scr file, a pre-established lock-mode waveform text frame can be entered. The lock-mode waveform text frame can contain waveform locking instructions for generators. Therefore, by inputting the subsystem name and the generator name from the corresponding subsystem text module into the lock-mode waveform text frame, waveform locking instructions for the specified generator can be generated.
[0123] Among them, the waveform recording lock instruction can be a lock instruction that cannot be executed before the waveform of the sib file is recorded from the scr file.
[0124] S22. Summarize the generator lock mode text fragments of each generator name in the subsystem text module corresponding to each subsystem name to obtain the system lock mode text fragment of the subsystem name.
[0125] S23. Summarize the text fragments of the system lock mode to be recorded for each subsystem name to obtain the program of the lock mode to be recorded.
[0126] S3. In the RSCAD editing execution file, by recording the waveform of the generator mode master control text in the RSCAD editing control file, the waveform recording lock mode program is activated as an operable lock mode program.
[0127] Understandably, after opening the .sib file using the Runtime software, the user can monitor the mode status images of each generator corresponding to the generator mode master control text. All generators can be selected as the operation targets, and waveform recording can be performed on the generator mode master control text in the .scr file. The waveform recording lock mode program in the .scr file will then be activated as an executable lock mode program for execution. Subsequently, if the same operation needs to be performed on each generator again, waveform recording is unnecessary; the executable lock mode program can be run directly.
[0128] The generator mode control method for power grid simulation provided in this embodiment can convert the generator mode master control text in the sib file and the waveform lock mode program to be recorded in the scr file into an operable lock mode program by recording waveforms in the generator mode master control text in the sib file. This enables the unified batch locking of each generator in the power grid simulation to the rated speed mode.
[0129] Considering that after downloading the power grid simulation model to RTDS, it is necessary to convert each generator to torque mode in batches to ensure the power grid simulation model can function properly, some embodiments of this application provide a control method for batch setting the generator modes of the power grid simulation to torque mode. Specifically, this method may include the following steps:
[0130] S210. In the RSCAD copy document of the power grid simulation, determine the text module of each subsystem according to the position of the title field of each subsystem, and create a subsystem name for the text module of the subsystem.
[0131] S220. For each subsystem text module, determine the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extract the generator name.
[0132] The steps S210-S220 described above correspond one-to-one with steps S110-S120 in the previous embodiments. Please refer to the above description for details, which will not be repeated here.
[0133] S230. Based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, lay out the unlocking modes of each generator and generate the runnable unlocking mode program for each generator.
[0134] Specifically, the generator mode master control text in the sib file and the unlock mode program to be recorded in the scr file can be edited, and the generator mode master control text in the sib file can be recorded in the scr file to convert the unlock mode program to be recorded into an executable unlock mode program.
[0135] The process of editing the generator mode master control text in the sib file is described in steps S11-S13 of the aforementioned embodiment, and will not be repeated here.
[0136] The process of editing the unlock mode program to be recorded in the .scr file can include the following steps:
[0137] S2301. For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, input the subsystem name and the generator name into the pre-established unlock mode to be recorded waveform text frame to obtain the generator unlock mode to be recorded waveform text segment of the generator name.
[0138] Specifically, in the .scr file, a pre-built text frame for the unlocking mode to be recorded can be entered. The text frame for the unlocking mode to be recorded can contain the unlocking command for the generator. Therefore, by entering the subsystem name and the generator name from the corresponding subsystem text module into the text frame for the unlocking mode to be recorded, the unlocking command for the specified generator can be generated.
[0139] S2302. Summarize the generator unlocking mode text fragments of each generator name in the subsystem text module corresponding to each subsystem name to obtain the system unlocking mode text fragment of the subsystem name.
[0140] S2303. Summarize the text fragments of the system lock mode to be recorded for each subsystem name to obtain the program for unlocking the system lock mode.
[0141] S240. Run the runnable unlock mode program to set each generator to torque mode.
[0142] The generator mode control method for power grid simulation provided in this embodiment can convert the generator mode master control text in the sib file and the unlock mode program to be recorded in the scr file into an operable unlock mode program by recording the generator mode master control text in the sib file in the scr file. This enables the unified batch setting of each generator in the power grid simulation to torque mode.
[0143] The apparatus for implementing generator mode control in grid simulation provided in the embodiments of this application will be described below. The apparatus for implementing generator mode control in grid simulation described below can be referred to in correspondence with the method for implementing generator mode control in grid simulation described above.
[0144] See Figure 2 , Figure 2This is a schematic diagram of a device for implementing generator mode control for power grid simulation, as disclosed in an embodiment of this application.
[0145] like Figure 2 As shown, the device may include:
[0146] The subsystem module determination unit 11 is used to determine each subsystem text module in the RSCAD copy document of the power grid simulation according to the position of each subsystem title field, and to create a subsystem name for the subsystem text module. The RSCAD copy document contains several subsystem title fields.
[0147] The generator name extraction unit 12 is used to determine the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extract the generator name;
[0148] The lock mode program generation unit 13 is used to lay out the lock mode of each generator according to the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name, and generate an operable lock mode program for each generator.
[0149] Lock-up mode program execution unit 14 is used to run the runnable lock-up mode program to lock each generator to rated speed mode.
[0150] Optionally, the subsystem module determining unit 11 includes:
[0151] The first target row determination unit is used to determine a number of first target rows in the RSCAD copy document of the power grid simulation, each first target row containing a subsystem title field;
[0152] The subsystem text module determination unit is used to determine, in the RSCAD copy document, for each subsystem title field, the content located between the first target line and the next first target line, which is the subsystem text module of the subsystem title field;
[0153] The subsystem name determination unit is used to determine the subsystem name of the subsystem text module in the RSCAD copy document, for each subsystem title field in the first target line, based on the position of the subsystem title field of the subsystem text module in each first target line.
[0154] The subsystem name addition unit is used to add the subsystem name of the subsystem text module after the subsystem title field of the subsystem text module in the RSCAD copy document, for each subsystem title field in the first target line.
[0155] Optionally, the generator name extraction unit 12 includes:
[0156] The second target line determination unit is used to determine a number of second target lines for each subsystem text module, and each second target line contains the generator identifier in the subsystem text module.
[0157] The generator name extraction unit is used to determine, for each second target line in each subsystem text module, the second line following the second target line is the line where the generator name is located, and to extract the generator name from the line where the generator name is located.
[0158] Optionally, the lock mode program generation unit 13 includes:
[0159] The master control text generation unit is used to generate the master control text of the generator mode in the RSCAD editing control file of the power grid simulation, based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name.
[0160] The waveform recording program generation unit is used to create the waveform recording locking mode program for each generator in the RSCAD editing and execution file of the power grid simulation, based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name.
[0161] The waveform recording program activation unit is used to activate the waveform recording lock mode program into an operable lock mode program by recording waveforms of the generator mode master control text in the RSCAD editing execution file.
[0162] Optionally, the overall control text generation unit includes:
[0163] The first master control text generation subunit is used to input the subsystem name and the generator name into a pre-established generator mode control text frame for each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, so as to obtain the generator mode control text fragment of the generator name.
[0164] The second master control text generation subunit is used to summarize the generator mode control text fragments of each generator name in the subsystem text module corresponding to each subsystem name, and obtain the generator mode system control text fragment of the subsystem name.
[0165] The third master control text generation subunit is used to summarize the generator mode system control text fragments of each subsystem name to obtain the generator mode master control text.
[0166] Optionally, the waveform recording program generation unit includes:
[0167] The first waveform recording program generation subunit is used to input the subsystem name and the generator name into a pre-established locked mode waveform recording text frame for each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, so as to obtain the generator locked mode waveform recording text fragment of the generator name.
[0168] The second waveform recording program generation subunit is used to summarize the generator locking mode waveform text fragments of each generator name in the subsystem text module corresponding to each subsystem name, and obtain the system locking mode waveform text fragment of the subsystem name.
[0169] The third subunit for generating the waveform to be recorded is used to summarize the waveform text fragments of the system lock mode of each subsystem name to obtain the waveform lock mode program.
[0170] Optionally, the device may also include:
[0171] The unlocking mode program generation unit is used to lay out the unlocking modes of each generator according to the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, and generate an operable unlocking mode program for each generator.
[0172] The unlock mode program execution unit is used to run the runnable unlock mode program and set each generator to torque mode.
[0173] The generator mode control device for power grid simulation provided in this application embodiment can be applied to devices for generator mode control in power grid simulation, such as terminals: mobile phones, computers, etc. Optionally, Figure 3 The hardware block diagram of the generator mode control device in power grid simulation is shown. (Refer to...) Figure 3 The hardware structure of the generator mode control device for power grid simulation may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.
[0174] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;
[0175] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
[0176] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;
[0177] The memory stores a program, which the processor can call. The program is used for:
[0178] In the RSCAD copy document of the power grid simulation, each subsystem text module is determined according to the position of the subsystem title field, and a subsystem name is created for the subsystem text module. The RSCAD copy document contains several subsystem title fields.
[0179] For each subsystem text module, the line position of each generator name is determined based on the line position of each generator identifier in the subsystem text module, and the generator name is extracted.
[0180] Based on the names of each subsystem and the names of each generator in the text module of each subsystem, the locking modes of each generator are laid out, and an operable locking mode program for each generator is generated.
[0181] Run the runnable lock mode program to lock each generator to rated speed mode.
[0182] Optionally, the refined and extended functions of the program can be found in the description above.
[0183] This application embodiment also provides a storage medium that can store a program suitable for execution by a processor, the program being used for:
[0184] In the RSCAD copy document of the power grid simulation, each subsystem text module is determined according to the position of the subsystem title field, and a subsystem name is created for the subsystem text module. The RSCAD copy document contains several subsystem title fields.
[0185] For each subsystem text module, the line position of each generator name is determined based on the line position of each generator identifier in the subsystem text module, and the generator name is extracted.
[0186] Based on the names of each subsystem and the names of each generator in the text module of each subsystem, the locking modes of each generator are laid out, and an operable locking mode program for each generator is generated.
[0187] Run the runnable lock mode program to lock each generator to rated speed mode.
[0188] Optionally, the refined and extended functions of the program can be found in the description above.
[0189] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0190] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0191] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of generator mode control for power grid simulation, characterized in that, include: In the RSCAD copy document of the power grid simulation, each subsystem text module is determined according to the position of the subsystem title field, and a subsystem name is created for the subsystem text module. The RSCAD copy document contains several subsystem title fields. For each subsystem text module, the line position of each generator name is determined based on the line position of each generator identifier in the subsystem text module, and the generator name is extracted. Based on the names of each subsystem and the names of each generator in the text module of each subsystem, the locking modes of each generator are laid out, and an operable locking mode program for each generator is generated. Run the runnable lock mode program to lock each generator to rated speed mode; The step of laying out the locking modes of each generator based on the names of each subsystem and the generator names in the corresponding subsystem text module, and generating a runnable locking mode program for each generator, includes: In the RSCAD editing control file for power grid simulation, the generator mode master control text is generated based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name. In the RSCAD editing and execution file of the power grid simulation, a program for locking the waveform to be recorded for each generator is created based on the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name. In the RSCAD editing execution file, the waveform of the generator mode master control text in the RSCAD editing control file is recorded, thereby activating the waveform recording lock mode program into a runnable lock mode program.
2. The method of claim 1, wherein, The process of determining each subsystem text module based on the position of the title field of each subsystem and creating a subsystem name for each subsystem text module includes: Determine several first target rows, each of which contains a subsystem title field; For the first target row containing the header field of each subsystem: The content located between the first target line and the next first target line is determined as the subsystem text module of the subsystem title field; The subsystem name of the subsystem text module is determined based on the position of the subsystem title field of the subsystem text module in each first target line. Add the subsystem name of the subsystem text module after the subsystem title field of the subsystem text module.
3. The method of claim 1, wherein, Based on the line position of each generator identifier in the subsystem text module, determine the line position of each generator name, and extract the generator name, including: Determine a number of second target lines, each second target line containing the generator identifier in the subsystem text module; For each second target row, determine that the second row following the second target row is the row containing the generator name, and extract the generator name from the row containing the generator name.
4. The method of claim 1, wherein, The step of generating the generator mode master control text based on the names of each subsystem and the generator names in the subsystem text module corresponding to each subsystem name includes: For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, the subsystem name and the generator name are input into the pre-established generator mode control text frame to obtain the generator mode control text fragment of the generator name. The generator mode control text fragments of each generator name in the subsystem text module corresponding to each subsystem name are summarized to obtain the generator mode system control text fragment of the subsystem name. The generator mode system control text fragments of each subsystem name are summarized to obtain the generator mode master control text.
5. The method of claim 1, wherein, The procedure for creating the waveform locking mode for each generator based on the name of each subsystem and the generator names in the corresponding subsystem text module includes: For each subsystem name and each generator name in the subsystem text module corresponding to each subsystem name, input the subsystem name and the generator name into the pre-established locked mode recorded waveform text frame to obtain the generator locked mode recorded waveform text segment of the generator name. Summarize the generator lock mode waveform text fragments of each generator name in the subsystem text module corresponding to each subsystem name to obtain the system lock mode waveform text fragment of the subsystem name. The system lock mode text fragments of each subsystem name are summarized to obtain the program for the lock mode of the waveform to be recorded.
6. The method of claim 1, wherein, Also includes: Based on the names of each subsystem and the names of each generator in the subsystem text module corresponding to each subsystem name, the unlocking modes of each generator are laid out, and an operable unlocking mode program for each generator is generated. Run the runnable unlock mode program to set each generator to torque mode.
7. A generator mode control device for power system simulation, characterized by comprising: The device, applied to the generator mode control method for power grid simulation as described in claim 1, comprises: The subsystem module determination unit is used to determine each subsystem text module in the RSCAD copy document of the power grid simulation according to the position of each subsystem title field, and to create a subsystem name for the subsystem text module. The RSCAD copy document contains several subsystem title fields. The generator name extraction unit is used to determine the line position of each generator name based on the line position of each generator identifier in the subsystem text module, and extract the generator name; The lock mode program generation unit is used to lay out the lock mode of each generator according to the name of each subsystem and the name of each generator in the subsystem text module corresponding to each subsystem name, and generate an operable lock mode program for each generator. The program execution unit is used to run the runnable locking mode program and lock each generator to the rated speed mode.
8. A generator mode control device for power grid simulation, characterized in that, Including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the generator mode control method for power grid simulation as described in any one of claims 1-6.
9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the various steps of the generator mode control method for power grid simulation as described in any one of claims 1-6.