Electromagnetic transient simulation control loop parallel computing method and related device
By splitting the control link based on the maximum number of beats and allowing maximum delay in electromagnetic transient simulation, parallel calculation is achieved, and the problem of long calculation time of electromagnetic transient simulation control link is solved, which significantly improves the simulation calculation Real-time.
Patent Information
- Application Number
- CN202411577048.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-11-06
AI Technical Summary
The existing electromagnetic transient simulation control link has a long calculation time, which affects the real-time performance of simulation. The existing automatic network division and matrix decomposition methods have limited effects in reducing calculation time.
Based on the allowable maximum delay and simulation step length of the electromagnetic transient simulation model, the maximum number of beats is calculated, and the calculation link of the control element is sorted according to the calculation time length, split into parallel computing sub-links, and implemented through the decoupling of beats. parallel computing.
The calculation time of the control component calculation link is significantly reduced, and the real-time performance of electromagnetic transient simulation calculation is improved. By splitting the serial calculation into parallel calculations, the calculation time is shortened to the original 1/N.
Smart Images

Figure CN119294132A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system simulation, and in particular to a parallel calculation method for an electromagnetic transient simulation control loop and a related device. Background Art
[0002] In the field of electromagnetic transient simulation, parallel computing plays an important role in improving the real-time performance of policy tasks. The calculation process of electromagnetic transient simulation generally follows the order of electrical component calculation, control component calculation, and matrix solution. When the number of electrical nodes in the simulation model is large, the control link components are numerous, and the network topology is complex, the overall time required for simulation calculation also increases, which seriously affects the real-time performance of the simulation.
[0003] In order to improve the real-time performance of electromagnetic transient simulation calculations, automatic networking and optimized matrix calculation methods are usually adopted. Automatic networking is to cluster the model with complex network topology and split it into multiple smaller components. On the one hand, it can realize parallel calculation of different components, and on the other hand, it can reduce the matrix dimension during matrix calculation, thereby achieving the purpose of reducing the calculation time as a whole. However, the optimization effect of automatic networking is heavily dependent on the automatic networking algorithm. The unreasonable networking results have a very limited effect on reducing the matrix calculation time. Optimizing matrix calculation means further using different matrix decomposition methods when solving the matrix, thereby reducing the calculation time, but the effect of different matrix decomposition methods on reducing the calculation time is also very limited. Therefore, how to reduce the calculation time of the electromagnetic transient simulation control link and improve the real-time performance of electromagnetic transient simulation calculations is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0004] The present invention provides an electromagnetic transient simulation control loop parallel calculation method and related device, which are used to solve the technical problem that the existing electromagnetic transient simulation control link calculation time is long and affects the real-time performance of the simulation.
[0005] In view of this, a first aspect of the present invention provides a parallel calculation method for an electromagnetic transient simulation control loop, comprising the following steps:
[0006] S1. Calculate the maximum number of beats based on the maximum allowable delay and simulation step size of the control loop of the electromagnetic transient simulation model;
[0007] S2, sorting the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence;
[0008] S3, selecting the control element calculation link with the longest calculation time in the calculation link sequence as the target link;
[0009] S4, inserting the maximum number of single-beat delay links into the target link, dividing the target link into the maximum number of parallel computing sub-links, wherein the computing time lengths of the maximum number of parallel computing sub-links are equal;
[0010] S5, comparing whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time, if so, executing step S6, if not, executing step S7;
[0011] S6, the electromagnetic transient simulation model control loop beat decoupling is completed, and during the electromagnetic transient simulation process, the target link is split according to the splitting method of step S4 for parallel calculation;
[0012] S7, retaining the split of the target link, determining whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, if so, executing step S8, if not, executing step S9;
[0013] S8, inserting the single-beat delay links of the maximum number of beats into the next control element calculation link with the longest calculation time, dividing the next control element calculation link with the longest calculation time into the maximum number of parallel calculation sub-links, taking the next control element calculation link with the longest calculation time as the target link, and returning to step S6;
[0014] S9. Take the next control element calculation link with the longest calculation time as the target link, and return to step S4.
[0015] Optionally, the maximum beat number is calculated as follows:
[0016]
[0017] Where N is the maximum number of beats, is the floor function, To allow for maximum delay, is the simulation step size.
[0018] Optionally, before step S1, the following steps are also included:
[0019] S0. Based on user-side requirements, configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop.
[0020] Optionally, in step S2, each of the control element calculation links in the calculation link sequence is calculated independently and in parallel.
[0021] Optionally, in step S1, the sorting is in descending order.
[0022] A second aspect of the present invention provides an electromagnetic transient simulation control loop parallel computing device, comprising the following modules:
[0023] A beat number calculation module is used to calculate the maximum beat number based on the maximum allowable delay and simulation step of the electromagnetic transient simulation model control loop;
[0024] A sorting module, used for sorting the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence;
[0025] A link selection module, used for selecting a control element calculation link with the longest calculation time in the calculation link sequence as a target link;
[0026] A link splitting module, used for inserting the maximum number of single-beat delay links in the target link, dividing the target link into the maximum number of parallel computing sub-links, wherein the computing time lengths of the maximum number of parallel computing sub-links are equal;
[0027] A comparison module, used for comparing whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time, if so, executing the output module, if not, executing the judgment module;
[0028] The output module is used to complete the beat decoupling of the control loop of the electromagnetic transient simulation model, and split the target link according to the splitting method of the link splitting module for parallel calculation during the electromagnetic transient simulation process;
[0029] The judgment module is used to retain the split of the target link, judge whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, and if so, execute the last link processing module, and if not, execute the loop module;
[0030] The end link processing module is used to insert the single-beat delay links of the maximum number of beats into the next control element calculation link with the longest calculation time, divide the next control element calculation link with the longest calculation time into the maximum number of beats of parallel calculation sub-links, take the next control element calculation link with the longest calculation time as the target link, and jump to the output module;
[0031] The loop module is used to take the next control element calculation link with the longest calculation time as the target link and jump to the link splitting module.
[0032] Optionally, the maximum beat number is calculated as follows:
[0033]
[0034] Where N is the maximum number of beats, is the floor function, To allow for maximum delay, is the simulation step size.
[0035] Optionally, it also includes:
[0036] The simulation parameter configuration module is used to configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop based on user-side requirements.
[0037] Optionally, in the sorting module, each of the control element calculation links in the calculation link sequence is calculated independently and in parallel.
[0038] A third aspect of the present invention provides an electromagnetic transient simulation control loop parallel computing device, the device comprising a processor and a memory:
[0039] The memory is used to store program code and transmit the program code to the processor;
[0040] The processor is used to execute the electromagnetic transient simulation control loop parallel calculation method described in any one of the first aspects according to the instructions in the program code.
[0041] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the electromagnetic transient simulation control loop parallel calculation method described in any one of the first aspects.
[0042] It can be seen from the above technical solutions that the electromagnetic transient simulation control loop parallel calculation method provided by the present invention has the following advantages:
[0043] The electromagnetic transient simulation control loop parallel calculation method provided by the present invention first determines the maximum number of beats based on the maximum allowable delay and simulation step of the electromagnetic transient simulation model control loop, then sorts the control element calculation links according to the length of the calculation time, and adopts a beat decoupling method to split the original serial control element calculation link into N parallel calculation sub-links starting from the control element calculation link with the longest calculation time, so as to realize parallel calculation of different sub-links, shorten the calculation time of the control element calculation link to 1 / N of the original, significantly reduce the calculation time of the control element calculation link, improve the real-time performance of the electromagnetic transient simulation calculation, and solve the technical problem that the existing electromagnetic transient simulation control link has a long calculation time and affects the real-time performance of the simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic flow chart of a parallel calculation method for an electromagnetic transient simulation control loop provided in an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a calculation process of an electromagnetic transient simulation control element provided in an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of control loop beat decoupling provided in an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of a control loop beat decoupling effect provided in an embodiment of the present invention;
[0049] Figure 5 It is a structural schematic diagram of a parallel computing device for electromagnetic transient simulation control loop provided in an embodiment of the present invention;
[0050] Figure 6 The present invention provides a schematic diagram of the structure of an electromagnetic transient simulation control loop parallel computing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0052] For easier understanding, see Figure 1 The present invention provides an embodiment of a parallel computing method for an electromagnetic transient simulation control loop, comprising the following steps:
[0053] Step S1, calculating the maximum number of beats based on the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop.
[0054] It should be noted that, in the present invention, the maximum allowable delay of the electromagnetic transient simulation model control loop set by the user is first and simulation step size , calculate the maximum number of beats N. The formula for calculating the maximum number of beats is:
[0055]
[0056] Where N is the maximum number of beats, is the floor function, To allow for maximum delay, is the simulation step size.
[0057] In one embodiment, before executing step S1, step S0 is first executed:
[0058] Step S0: Based on user-side requirements, configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop.
[0059] User-side requirements are introduced, and the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop are set according to the user-side requirements, so as to reasonably determine the maximum number of beats, reduce the calculation time of the control link within an acceptable calculation error, and improve the real-time performance of the electromagnetic transient simulation calculation.
[0060] Step S2: sorting the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence.
[0061] It should be noted that in practical applications, the control element calculation links of the electromagnetic transient simulation model control loop can be sorted in descending order or in ascending order according to the length of time. To improve the search efficiency, the control element calculation links of the electromagnetic transient simulation model control loop are sorted in descending order according to the length of execution time to obtain the calculation link sequence. ,in, Calculate the link for the i-th control element. Therefore, the calculation link for the first control element is , That is, the control element calculation link that takes the longest time to calculate. Each control element calculation link is calculated independently and in parallel.
[0062] Step S3: Select the control element calculation link with the longest calculation time in the calculation link sequence as the target link.
[0063] It should be noted that the real-time performance of electromagnetic transient simulation is subject to the link with the longest calculation time. Therefore, the control element calculation link with the longest calculation time in the calculation link sequence is selected as the target link to start splitting.
[0064] Step S4: inserting a maximum number of single-beat delay links into the target link, and dividing the target link into a maximum number of parallel computing sub-links, wherein the computing time lengths of the maximum number of parallel computing sub-links are equal.
[0065] It should be noted that, taking descending sorting as an example, the link is calculated from the first control element in the link sequence (i.e. ) starts, the control element calculates the link Insert a single-beat delay link with the maximum number of beats N in the calculation link of the control element Divide into N parallel computing sub-links , where the computation time of N parallel computation sub-links is Equal, that is , Calculate links for control elements The calculation time of the i-th control element calculation link The split is similar. If the control element calculates the link If the execution time of each element contained in is equal, then it is only necessary to insert a single-shot delay link at each N equally divided position in the link.
[0066] like Figure 2 As shown in the figure, in the electromagnetic transient simulation calculation process, there are n independent and parallel control element calculation links in the control element calculation process that needs to be performed in each simulation step. For example, the link contains control elements, element 1, element They are the first and last control elements of the link, respectively. The link calculation follows a serial order, first calculating element 1, then element 2, and so on until element The calculation is completed, indicating that the link calculation is completed. Since the serial calculation order seriously affects the real-time performance of the calculation, the electromagnetic transient simulation control loop parallel calculation method with beat decoupling provided in the present invention can be used to shorten the calculation time of the control loop. Figure 3 As shown, according to the maximum beat number N obtained in step S1, the link is calculated with the first control element For example, according to step S3, Insert N single-shot delay links into Split into N parallel computing sub-links , the positions where N single-shot delay links are inserted satisfy the N parallel computing sub-links The calculation time is equal.
[0067] Step S5, compare whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time, if so, execute step S6, if not, execute step S7.
[0068] It should be noted that Take N single-shot delay links as an example to compare the control element calculation link Is a parallel computing sublink Calculation time Is it greater than or equal to the next control element calculation link (i.e. ) calculation time .
[0069] like , then the control element calculates the link splitting process ends and enters step S6. The execution time of the parallel computing sub-link is greater than or equal to the unsplit control element computing link. Execution time, then there is no need to continue to disassemble as well as The control element calculation link behind is the longest calculation time. The parallel computing sub-links are divided into two sub-links, and the real-time performance of the system is limited by the link with the longest computing time. At this point, the electromagnetic transient simulation model control loop beat decoupling is completed, and the process jumps to step S6. Figure 4 As shown. At this time, N parallel computing sub-links Beat decoupling is achieved, and parallel calculation can be performed without following the serial calculation order, thus shortening the calculation time of the link to 1 / N of the original time. .
[0070] like , then execute step S7. If the control element calculates the link The execution time of the parallel computing sub-link is shorter than that of the unsplit control element computing link. The execution time of the control element calculation link is Therefore, it is necessary to jump to step S7 to continue splitting the control element calculation link .
[0071] Similarly, for the split i-th control element, calculate the link , then the judgment is still .
[0072] Step S6, the electromagnetic transient simulation model control loop beat decoupling is completed, and during the electromagnetic transient simulation process, the target link is split according to the splitting method of step S4 for parallel calculation.
[0073] It should be noted that the electromagnetic transient simulation model control loop beat decoupling is completed, and during the electromagnetic transient simulation process, the selected target link is split according to the splitting method of step S4 for parallel calculation.
[0074] Step S7, retain the split of the target link, determine whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, if so, execute step S8, if not, execute step S9.
[0075] It should be noted that, after the target link is split, if the execution time of the parallel computing sub-link of the target link is less than the execution time of the next unsplit control element computing link with the longest computing time, the split of the target link is retained, and then it is determined whether the next control element computing link with the longest computing time is the control element computing link with the shortest computing time in the computing link sequence. If so, since each control element computing link can be split at most once, when the next control element computing link with the longest computing time is the control element computing link with the shortest computing time in the computing link sequence, it is necessary to jump to step S8. When the next control element computing link with the longest computing time is not the control element computing link with the shortest computing time in the computing link sequence, it is necessary to jump to step S9.
[0076] Step S8, insert a single-beat delay link with the maximum number of beats in the next control element calculation link with the longest calculation time, divide the next control element calculation link with the longest calculation time into parallel calculation sub-links with the maximum number of beats, take the next control element calculation link with the longest calculation time as the target link, and return to step S6.
[0077] It should be noted that when the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, since the calculation time of the parallel calculation sub-link of the target link is less than the calculation time of the next control element calculation link with the longest calculation time, that is to say, the real-time performance of the electromagnetic transient simulation is subject to the control element calculation link with the shortest calculation time in the calculation link sequence, and the maximum number of single-beat delay links are directly inserted into the control element calculation link with the shortest calculation time, and the control element calculation link with the shortest calculation time is divided into the maximum number of parallel calculation sub-links, and then the control element calculation link with the shortest calculation time is used as the target link, and the process returns to step S6. After executing step S8, the splitting of all control element calculation links in the calculation link sequence is completed, and there is no need to continue the electromagnetic transient simulation model control loop beat decoupling.
[0078] Step S9: Take the next control element calculation link with the longest calculation time as the target link, and return to step S4.
[0079] It should be noted that when in step S7, it is determined that the next control element calculation link with the longest calculation time is not the control element calculation link with the shortest calculation time in the calculation link sequence, it means that there are currently at least two control element calculation links with the shortest calculation time that have not been split. Therefore, it is necessary to take the next control element calculation link with the longest calculation time as the target link, and then return to step S4.
[0080] The electromagnetic transient simulation control loop parallel calculation method provided by the present invention first determines the maximum number of beats based on the maximum allowable delay and simulation step of the electromagnetic transient simulation model control loop, then sorts the control element calculation links according to the length of the calculation time, and adopts a beat decoupling method to split the original serial control element calculation link into N parallel calculation sub-links starting from the control element calculation link with the longest calculation time, so as to realize parallel calculation of different sub-links, shorten the calculation time of the control element calculation link to 1 / N of the original, significantly reduce the calculation time of the control element calculation link, improve the real-time performance of the electromagnetic transient simulation calculation, and solve the technical problem that the existing electromagnetic transient simulation control link has a long calculation time and affects the real-time performance of the simulation.
[0081] For easier understanding, see Figure 5 The present invention provides an embodiment of a parallel computing device for an electromagnetic transient simulation control loop, comprising the following modules:
[0082] A beat number calculation module is used to calculate the maximum beat number based on the maximum allowable delay and simulation step of the electromagnetic transient simulation model control loop;
[0083] A sorting module is used to sort the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence;
[0084] A link selection module, used for selecting a control element calculation link with the longest calculation time in the calculation link sequence as a target link;
[0085] A link splitting module is used to insert a single-beat delay link of the maximum number of beats in the target link, and divide the target link into parallel computing sub-links of the maximum number of beats, wherein the computing time lengths of the parallel computing sub-links of the maximum number of beats are equal;
[0086] A comparison module is used to compare whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time. If so, the output module is executed; if not, the judgment module is executed;
[0087] The output module is used to complete the beat decoupling of the control loop of the electromagnetic transient simulation model. During the electromagnetic transient simulation process, the target link is split according to the splitting method of the link splitting module for parallel calculation;
[0088] A judgment module is used to retain the split of the target link, judge whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, and if so, execute the last link processing module, and if not, execute the loop module;
[0089] The last link processing module is used to insert a single-beat delay link of the maximum number of beats in the next control element calculation link with the longest calculation time, divide the next control element calculation link with the longest calculation time into parallel calculation sub-links with the maximum number of beats, take the next control element calculation link with the longest calculation time as the target link, and jump to the output module;
[0090] The loop module is used to take the next control element calculation link with the longest calculation time as the target link and jump to the link splitting module.
[0091] In one embodiment, the maximum beat number is calculated as follows:
[0092]
[0093] Where N is the maximum number of beats, is the floor function, To allow for maximum delay, is the simulation step size.
[0094] In one embodiment, it further includes:
[0095] The simulation parameter configuration module is used to configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop based on user-side requirements.
[0096] In one embodiment, in the sorting module, each control element calculation link in the calculation link sequence is calculated independently and in parallel.
[0097] For easier understanding, see Figure 6 The present invention also provides an embodiment of an electromagnetic transient simulation control loop parallel computing device, the device comprising a processor and a memory:
[0098] The memory is used to store the program code and transmit the program code to the processor;
[0099] The processor is used to execute any one of the implementation methods of the aforementioned electromagnetic transient simulation control loop parallel computing method embodiments according to the instructions in the program code.
[0100] The present invention also provides an embodiment of a computer-readable storage medium, which is used to store program code, and the program code is used to execute any one of the aforementioned embodiments of the electromagnetic transient simulation control loop parallel computing method.
[0101] The present invention also provides an embodiment of a computer program product including instructions, which, when executed on a computer, enables the computer to execute any one of the aforementioned embodiments of the electromagnetic transient simulation control loop parallel computing method.
[0102] The electromagnetic transient simulation control loop parallel computing device, equipment, computer-readable storage medium and computer program product including instructions provided in the present invention are all used to execute the electromagnetic transient simulation control loop parallel computing method provided in the present invention. The principle and technical effects achieved are the same as those of the electromagnetic transient simulation control loop parallel computing method provided in the present invention, and will not be repeated here.
[0103] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 parallel calculation method for electromagnetic transient simulation control loop, characterized in that: The following steps are involved: S1. Calculate the maximum number of beats based on the maximum allowable delay and simulation step size of the control loop of the electromagnetic transient simulation model; S2, sorting the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence; S3, selecting the control element calculation link with the longest calculation time in the calculation link sequence as the target link; S4, inserting the maximum number of single-beat delay links into the target link, dividing the target link into the maximum number of parallel computing sub-links, wherein the computing time lengths of the maximum number of parallel computing sub-links are equal; S5, comparing whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time, if so, executing step S6, if not, executing step S7; S6, the electromagnetic transient simulation model control loop beat decoupling is completed, and during the electromagnetic transient simulation process, the target link is split according to the splitting method of step S4 for parallel calculation; S7, retaining the split of the target link, determining whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, if so, executing step S8, if not, executing step S9; S8, inserting the single-beat delay links of the maximum number of beats into the next control element calculation link with the longest calculation time, dividing the next control element calculation link with the longest calculation time into the maximum number of parallel calculation sub-links, taking the next control element calculation link with the longest calculation time as the target link, and returning to step S6; S9. Take the next control element calculation link with the longest calculation time as the target link, and return to step S4.
2. The electromagnetic transient simulation control loop parallel computing method according to claim 1 is characterized in that: The calculation formula of the maximum beat number is: Where N is the maximum number of beats, is the floor function, To allow for maximum delay, is the simulation step size.
3. The electromagnetic transient simulation control loop parallel computing method according to claim 1, characterized in that: Before step S1, the method further includes: S0. Based on user-side requirements, configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop.
4. The electromagnetic transient simulation control loop parallel computing method according to claim 1, characterized in that: In step S2, each of the control element calculation links in the calculation link sequence is calculated independently and in parallel.
5. The electromagnetic transient simulation control loop parallel computing method according to claim 1, characterized in that: In step S1, the sorting is in descending order.
6. A parallel computing device for electromagnetic transient simulation control loop, characterized in that: Includes the following modules: A beat number calculation module is used to calculate the maximum beat number based on the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop; A sorting module, used for sorting the control element calculation links of the electromagnetic transient simulation model control loop according to the length of time to obtain a calculation link sequence; A link selection module, used for selecting a control element calculation link with the longest calculation time in the calculation link sequence as a target link; A link splitting module, used for inserting the maximum number of single-beat delay links in the target link, dividing the target link into the maximum number of parallel computing sub-links, wherein the computing time lengths of the maximum number of parallel computing sub-links are equal; A comparison module, used for comparing whether the calculation time of the parallel calculation sub-link of the target link is greater than or equal to the calculation time of the next control element calculation link with the longest calculation time, if so, executing the output module, if not, executing the judgment module; The output module is used to complete the beat decoupling of the control loop of the electromagnetic transient simulation model, and split the target link according to the splitting method of the link splitting module for parallel calculation during the electromagnetic transient simulation process; The judgment module is used to retain the split of the target link, judge whether the next control element calculation link with the longest calculation time is the control element calculation link with the shortest calculation time in the calculation link sequence, and if so, execute the last link processing module, and if not, execute the loop module; The end link processing module is used to insert the single-beat delay links of the maximum number of beats into the next control element calculation link with the longest calculation time, divide the next control element calculation link with the longest calculation time into the maximum number of beats of parallel calculation sub-links, take the next control element calculation link with the longest calculation time as the target link, and jump to the output module; The loop module is used to take the next control element calculation link with the longest calculation time as the target link and jump to the link splitting module.
7. The electromagnetic transient simulation control loop parallel computing device according to claim 6, characterized in that: Also includes: The simulation parameter configuration module is used to configure the maximum allowable delay and simulation step size of the electromagnetic transient simulation model control loop based on user-side requirements.
8. The electromagnetic transient simulation control loop parallel computing device according to claim 6, characterized in that: In the sorting module, each of the control element calculation links in the calculation link sequence is calculated independently and in parallel.
9. A parallel computing device for electromagnetic transient simulation control loop, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the electromagnetic transient simulation control loop parallel calculation method described in any one of claims 1-5 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the electromagnetic transient simulation control loop parallel computing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
FPGA-based doubly-fed wind motor electromagnetic transient simulation method and simulation system
CN110334407A
Power electronic system cluster simulation implementation method based on loop current method
CN115618775A
Electric power system electromagnetic transient simulation parallel computing acceleration method and related device
CN117707770A
Fine-grained sub-network-based electromagnetic transient efficient simulation method and system for DFIG (Distributed Feedback Induction Generator) wind power plant
CN118468600A
Automatic subnetting method for electromagnetic transient grid simulation and computer storage medium
WO2017101295A1