Electromagnetic transient simulation CPU (Central Processing Unit) computing core resource dynamic scaling method and related device

By splitting the electromagnetic transient simulation task into sub-tasks and realizing dynamic resource scheduling, the problem of low resource utilization in the existing technology is solved, computing efficiency and simulation accuracy are improved, cost is reduced, and suitable for various power systems. Simulation scene.

CN119248507AInactive Publication Date: 2025-01-03ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411568854.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The resource utilization rate in existing electromagnetic transient simulation technologies is low, and resources cannot be dynamically adjusted to cope with the needs of different tasks, resulting in ineffective computing efficiency and waste of resources.

Method used

By splitting the electromagnetic transient simulation task into multiple relatively independent subtasks and defining the association relationship between data input and output, task scheduling and resource dynamic scheduling are realized to ensure the maximum utilization of resources.

Benefits of technology

It significantly improves computing efficiency and resource utilization, enhances system flexibility and scalability, improves simulation accuracy and reliability, and reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248507A_ABST
    Figure CN119248507A_ABST
Patent Text Reader

Abstract

The invention discloses an electromagnetic transient simulation CPU computing core resource dynamic scaling method and a related device, and the method comprises the steps: obtaining an electromagnetic transient simulation task, and splitting the electromagnetic transient simulation task into a plurality of relatively independent subtasks; data transmission and data dependence are determined by defining the incidence relation of data input and data output among the sub-tasks; and when the subtasks start to be executed, marking the input state and the output state of each subtask, so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and the output state. Therefore, the problems that in the prior art, the resource utilization rate is low, and resources cannot be dynamically adjusted to meet the requirements of different tasks are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electromagnetic transient simulation, and in particular to a method and related device for dynamically scaling CPU computing core resources for electromagnetic transient simulation. Background Art

[0002] Electromagnetic transient simulation is an important tool in power system analysis. It is used to simulate the behavior of power systems in transient events such as faults, short circuits, and switching operations. It can help engineers evaluate the stability and reliability of power systems, design protection devices, and optimize system operation. As the scale and complexity of power systems increase, the computing requirements for electromagnetic transient simulation are also growing dramatically. Traditional single-machine simulation methods have been unable to meet the needs of large-scale simulation, especially when dealing with large-scale power grids, complex equipment models, and high-precision simulations. The bottleneck problem of computing resources is particularly prominent.

[0003] The development of cloud computing and distributed technology has provided a new way to solve the computing resource bottleneck of electromagnetic transient simulation. By decomposing the simulation tasks and executing them in parallel on multiple computing nodes, the simulation efficiency can be significantly improved. However, how to dynamically manage and adjust computing resources to meet the needs of different simulation tasks has become an important research topic.

[0004] Existing electromagnetic transient simulation methods usually adopt a fixed resource allocation method, that is, fixed computing resources are pre-allocated before the simulation starts. Users manually adjust computing resources according to the complexity of the simulation task and resource requirements. However, although existing electromagnetic transient simulations usually adopt a fixed resource allocation method, which is simple and easy in computing resource allocation, it has obvious deficiencies in resource utilization and flexibility. The resource utilization rate is low and resources cannot be dynamically adjusted to meet the needs of different tasks. Manual intervention is required in resource adjustment, which is inefficient and prone to errors. Summary of the invention

[0005] The present application provides a method and related device for dynamically scaling CPU computing core resources for electromagnetic transient simulation, which are used to solve the problem of low resource utilization and inability to dynamically adjust resources to meet the needs of different tasks in the prior art.

[0006] In view of this, the first aspect of the present application provides a method for dynamically scaling CPU computing core resources for electromagnetic transient simulation, the method comprising:

[0007] Acquire an electromagnetic transient simulation task, and split the electromagnetic transient simulation task into a plurality of relatively independent subtasks;

[0008] Between the subtasks, data transmission and data dependency are determined by defining the association relationship between data input and output;

[0009] When the subtasks start to be executed, the input state and the output state of each subtask are marked, so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and the output state.

[0010] Optionally, the subtask includes: simulation data, calculation logic, data input and data output of a part of the electromagnetic transient simulation task.

[0011] Optionally, the data transmission and data dependency are determined by defining an association relationship between data input and output between the subtasks, and then further comprising:

[0012] The execution order of each of the subtasks is set, and the execution order includes: when any of the subtasks is executed after all the subtasks that provide input for it are executed, it starts to be executed.

[0013] Optionally, when the subtasks start to be executed, the input state and the output state of each subtask are marked so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and the output state, including:

[0014] When any of the subtasks completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available;

[0015] When all valid inputs of any of the subtasks are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

[0016] A second aspect of the present application provides a system for dynamically scaling CPU computing core resources for electromagnetic transient simulation, the system comprising:

[0017] A division unit, used for obtaining an electromagnetic transient simulation task, and dividing the electromagnetic transient simulation task into a plurality of relatively independent subtasks;

[0018] A generating unit, used for determining data transmission and data dependency between the subtasks by defining an association relationship between data input and output;

[0019] The marking unit is used to mark the input state and output state of each subtask when the subtask starts to be executed, so that the electromagnetic transient simulation CPU schedules the subtask according to the input state and the output state.

[0020] Optionally, the subtask includes: simulation data, calculation logic, data input and data output of a part of the electromagnetic transient simulation task.

[0021] Optionally, it further includes: a setting unit;

[0022] The setting unit is used to set the execution order of each of the subtasks, and the execution order includes: when any of the subtasks is executed after all the subtasks that provide input for it are completely executed, it starts to execute.

[0023] Optionally, the marking unit is specifically used to:

[0024] When any of the subtasks completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available;

[0025] When all valid inputs of any of the subtasks are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

[0026] A third aspect of the present application provides a device for dynamically scaling CPU computing core resources for electromagnetic transient simulation, the device comprising a processor and a memory:

[0027] The memory is used to store program code and transmit the program code to the processor;

[0028] The processor is used to execute the steps of the electromagnetic transient simulation CPU computing core resource dynamic scaling method as described in the first aspect according to the instructions in the program code.

[0029] A fourth aspect of the present application 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 CPU computing core resource dynamic scaling method described in the first aspect above.

[0030] It can be seen from the above technical solutions that this application has the following advantages:

[0031] Compared with existing technologies:

[0032] 1) Computational efficiency is significantly improved;

[0033] This application divides the complex electromagnetic transient simulation task into multiple relatively independent subtasks through task decomposition. These subtasks can be processed in parallel, thereby significantly improving the computing efficiency.

[0034] The dynamic resource scheduling algorithm can flexibly adjust the number of simulation cores according to the current system computing resources and the number of subtasks in the task queue, thus avoiding idleness and waste of resources and ensuring the maximum utilization of computing resources.

[0035] 2) Enhanced flexibility and scalability;

[0036] The technical solution of the present application realizes dynamic scaling of computing resources and can flexibly adjust the number of simulation cores according to task requirements. This flexibility enables the technical solution to cope with electromagnetic transient simulation tasks of different scales and complexities, and improves the scalability of the system.

[0037] Whether it is a large-scale power system simulation or a small-scale local network simulation, this application can provide efficient and accurate calculation results. This adaptability enables the technical solution to be widely used in various power system simulation scenarios.

[0038] 3) Improved simulation accuracy and reliability;

[0039] By building data dependencies between subtasks, the present application ensures the accuracy and consistency of simulation data. This clear data dependency helps avoid data errors and simulation failures, and improves the reliability of simulation.

[0040] The technical solution of the present application realizes fine control of the simulation process through task decomposition and task scheduling, which helps to timely discover and solve problems that arise in the simulation process and ensure the accuracy and credibility of the simulation results.

[0041] 4) Cost-effectiveness optimization;

[0042] By dynamically adjusting computing resources, the present application can improve computing efficiency without increasing additional hardware costs, which helps to reduce the hardware cost of power system simulation and improve economic benefits.

[0043] The technical solution of the present application significantly improves simulation efficiency by optimizing resource utilization and parallel processing, which helps to shorten the simulation cycle, reduce simulation costs, and improve overall benefits. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of a flow chart of a method for dynamically scaling CPU computing core resources for electromagnetic transient simulation provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of the decomposition of simulation tasks provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of subtasks provided in an embodiment of the present application;

[0047] Figure 4 An example of a directed acyclic graph composed of subtasks provided in an embodiment of the present application;

[0048] Figure 5A structural schematic diagram of a dynamic scaling system for CPU computing core resources of electromagnetic transient simulation provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] See also Figure 1 , a method for dynamically scaling CPU computing core resources for electromagnetic transient simulation provided in an embodiment of the present application includes:

[0051] Step 101: Obtain an electromagnetic transient simulation task, and split the electromagnetic transient simulation task into multiple relatively independent subtasks.

[0052] In one embodiment, the subtasks in step 101 include: simulation data, calculation logic, data input and data output of a part of the electromagnetic transient simulation task.

[0053] It should be noted that the electromagnetic transient simulation task is obtained and split into multiple relatively independent subtasks, such as Figure 2 and 3 As shown, each subtask contains a portion of simulation data, computing logic, data input, and data output, so as to more finely manage computing resources and improve parallel processing capabilities.

[0054] Step 102: Determine data transmission and data dependency between subtasks by defining the association relationship between data input and output.

[0055] It should be noted that the subtasks determine data transmission and data dependency by defining the relationship between data input and output. These relationships form a directed acyclic graph (DAG), such as Figure 4 As shown, the execution order and data consistency between subtasks are ensured.

[0056] In one embodiment, step 102 further includes:

[0057] Set the execution order of each subtask. The execution order includes: when any subtask has completed all subtasks that provide input for it, it will start to execute.

[0058] It should be noted that a subtask can only be executed after all subtasks that provide input for it have been executed. This can effectively solve the data dependency problem between subtasks and ensure the accuracy and completeness of the simulation.

[0059] Step 103: When the subtasks start to be executed, the input state and output state of each subtask are marked, so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and output state.

[0060] In one embodiment, step 103 includes:

[0061] When any subtask completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available;

[0062] When all valid inputs of any subtask are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

[0063] It should be noted that, through step 102, it can be known that the output of a subtask can be associated with the input of other subtasks to form a data dependency graph. This graph describes the data flow and dependency relationship between subtasks and is the basis of task scheduling. In step 103, when a subtask completes the calculation logic and outputs data, the corresponding data input state of other subtasks associated with its output is marked as available. If all valid inputs of a subtask are in an available state, the subtask is pushed to the executable subtask queue to wait for execution. When the simulation core is idle, it will obtain executable subtasks from the executable subtask queue for execution. In this way, the number of simulation task cores can be dynamically increased and decreased, and flexibly adjusted according to computing resources and task requirements. The number of simulation cores is dynamically adjusted according to the computing resources (such as CPU, memory, etc.) of the current system and the number of subtasks in the task queue. When resources are sufficient, the number of simulation cores is increased to increase the computing speed; when resources are tight, the number of simulation cores is reduced to release resources.

[0064] The embodiment of the present application provides a method for dynamically scaling CPU computing core resources for electromagnetic transient simulation, which combines multiple technical means such as task decomposition and task scheduling, and can significantly improve resource utilization and system reliability while ensuring simulation accuracy and efficiency. Compared with existing solutions, the present application has obvious advantages in flexibility, automation and reliability.

[0065] The above is a method for dynamically scaling CPU computing core resources for electromagnetic transient simulation provided in an embodiment of the present application. The following is a system for dynamically scaling CPU computing core resources for electromagnetic transient simulation provided in an embodiment of the present application.

[0066] See also Figure 5 , an electromagnetic transient simulation CPU computing core resource dynamic scaling system provided in an embodiment of the present application includes:

[0067] The division unit 201 is used to obtain an electromagnetic transient simulation task and divide the electromagnetic transient simulation task into a plurality of relatively independent subtasks.

[0068] The generating unit 202 is used to determine data transmission and data dependency between subtasks by defining the association relationship between data input and output.

[0069] In one embodiment, it further includes: a setting unit, which is used to set the execution order of each subtask, and the execution order includes: when any subtask is executed after all subtasks that provide input for it are completely executed, it starts to execute.

[0070] The marking unit 203 is used to mark the input state and output state of each subtask when the subtask starts to be executed, so that the electromagnetic transient simulation CPU can schedule the subtask according to the input state and output state.

[0071] In one embodiment, the marking unit 203 is specifically configured to:

[0072] When any subtask completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available;

[0073] When all valid inputs of any subtask are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

[0074] Furthermore, an embodiment of the present application also provides a device for dynamically scaling CPU computing core resources for electromagnetic transient simulation, the device comprising a processor and a memory:

[0075] The memory is used to store program code and transmit the program code to the processor;

[0076] The processor is used to execute the steps of the electromagnetic transient simulation CPU computing core resource dynamic scaling method as described in the above method embodiment according to the instructions in the program code.

[0077] Furthermore, a computer-readable storage medium is provided in an embodiment of the present application, and the computer-readable storage medium is used to store program code, and the program code is used to execute the electromagnetic transient simulation CPU computing core resource dynamic scaling method described in the above method embodiment.

[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0079] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0080] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0081] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0083] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0085] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for dynamically scaling CPU computing core resources for electromagnetic transient simulation, characterized in that: include: Acquire an electromagnetic transient simulation task, and split the electromagnetic transient simulation task into a plurality of relatively independent subtasks; Between the subtasks, data transmission and data dependency are determined by defining the association relationship between data input and output; When the subtasks start to be executed, the input state and the output state of each subtask are marked, so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and the output state.

2. The electromagnetic transient simulation CPU computing core resource dynamic scaling method according to claim 1 is characterized in that: The subtask includes: simulation data, calculation logic, data input and data output of a part of the electromagnetic transient simulation task.

3. The electromagnetic transient simulation CPU computing core resource dynamic scaling method according to claim 1 is characterized in that: The data transmission and data dependency are determined by defining the association relationship between data input and output between the subtasks, and then the following is further included: The execution order of each of the subtasks is set, and the execution order includes: when any of the subtasks is executed after all the subtasks that provide input for it are executed, it starts to be executed.

4. The electromagnetic transient simulation CPU computing core resource dynamic scaling method according to claim 1 is characterized in that: When the subtasks start to be executed, the input state and the output state of each subtask are marked so that the electromagnetic transient simulation CPU schedules the subtasks according to the input state and the output state, including: When any of the subtasks completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available; When all valid inputs of any of the subtasks are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

5. A CPU computing core resource dynamic scaling system for electromagnetic transient simulation, characterized in that: include: A division unit, used for obtaining an electromagnetic transient simulation task, and dividing the electromagnetic transient simulation task into a plurality of relatively independent subtasks; A generating unit, used for determining data transmission and data dependency between the subtasks by defining an association relationship between data input and output; The marking unit is used to mark the input state and output state of each subtask when the subtask starts to be executed, so that the electromagnetic transient simulation CPU schedules the subtask according to the input state and the output state.

6. The electromagnetic transient simulation CPU computing core resource dynamic scaling system according to claim 5, characterized in that: The subtask includes: simulation data, calculation logic, data input and data output of a part of the electromagnetic transient simulation task.

7. The electromagnetic transient simulation CPU computing core resource dynamic scaling system according to claim 5, characterized in that: Also includes: Setting unit; The setting unit is used to set the execution order of each of the subtasks, and the execution order includes: when any of the subtasks is executed after all the subtasks that provide input for it are completely executed, it starts to execute.

8. The electromagnetic transient simulation CPU computing core resource dynamic scaling system according to claim 5, characterized in that: The marking unit is specifically used for: When any of the subtasks completes the calculation logic and outputs data, the corresponding data input status of other subtasks associated with its output is marked as available; When all valid inputs of any of the subtasks are in an available state, the subtask is pushed to the executable subtask queue to wait for execution, so that the electromagnetic transient simulation CPU obtains the executable subtask from the executable subtask queue for execution when it is idle.

9. A CPU computing core resource dynamic expansion and contraction device for electromagnetic transient simulation, 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 CPU computing core resource dynamic scaling method described in any one of claims 1-4 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 CPU computing core resource dynamic scaling method described in any one of claims 1-4.

Citation Information

Patent Citations

  • Cloud-based radiation hardening collaborative design-simulation system and method

    CN108459900A

  • Electromechanical-electromagnetic transient hybrid simulation calculation method and system

    CN115906510A

  • MOM system global resource cooperative scheduling and tracking mapping method

    CN118277273A

  • Mass data summarization method and system based on task chain and divide-and-conquer method

    CN118672790A

  • Data dependent task triggering method and related device

    CN118708317A