MMC electromagnetic transient real-time simulation modeling method based on multi-core server
By building an MMC electromagnetic transient real-time simulation model on a multi-core server, and using multi-threaded solution computing logic, the problem of slow electromagnetic transient simulation speed of high-level MMC electromagnetic transient simulation is solved, efficient real-time simulation is achieved, and the electromagnetic transient real-time simulation needs of flexible DC engineering is met.
Patent Information
- Application Number
- CN202411608906.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-25
AI Technical Summary
In high-level flexible DC transmission projects, the MMC electromagnetic transient simulation speed is difficult to meet the research needs, especially when the order of the nonlinear inverter model is high, the large amount of calculation results in slow simulation speed.
Using the MMC electromagnetic transient real-time simulation modeling method based on multi-core servers, by constructing an MMC valve arm electromagnetic transient real-time simulation model suitable for the CPU environment, multi-threaded solution calculation logic between the MMC valve arm, valve control model and main network model is designed, and the calculation logic is simplified through parallel task allocation, CPU area division and data synchronization.
Real-time constraints under CPU conditions are realized, ensuring that the 50-microsecond simulation step-length valve arm and valve-controlled calculation will not time out, greatly improving the working efficiency of digital-to-analog hybrid simulation of AC-DC coupled power grid.
Smart Images

Figure CN119514455A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic transient modeling of power systems, and more specifically, to an MMC electromagnetic transient real-time simulation modeling method based on a multi-core server. Background Art
[0002] At present, flexible direct current transmission projects are developing in the direction of high level, large capacity and multiple terminals. When the number of levels is high, whether it is a single-port sub-module such as a half-bridge or full-bridge or an MMC composed of a new dual-port sub-module, when performing electromagnetic transient simulation, the simulation speed will be difficult to meet the research needs. In electromagnetic transient simulation, as the number of levels of the MMC composed of the new dual-port sub-module is higher, the order of the admittance matrix of the nonlinear converter model will also be higher. This will make the calculation of the inversion of the admittance matrix of the nonlinear converter model very large, resulting in its extremely slow electromagnetic transient simulation speed, which cannot meet the needs of scientific research.
[0003] Domestic and foreign scholars have proposed MMC equivalent models with different simplified principles for different usage scenarios, which can effectively solve the problem of slow offline simulation of high-level MMC electromagnetic transients. The valve control system in MMC needs to control each switch device individually, resulting in multiple channels and large data volume between the valve control system and the real-time simulator.
[0004] To this end, Canada's RTDS company proposed an MMC bridge arm replacement network topology, which significantly reduced the computing resources required for simulation, and was conducive to the realization of high-level MMC system simulation in its real-time simulator. OPAL-RT developed an MMC model based on the RT-LAB real-time simulator, using the state space node method to achieve high-level MMC system real-time simulation. However, the above two real-time simulation models still occupy a lot of resources when simulating ultra-large-scale MMC systems. Therefore, the study of efficient modeling of real-time simulation of ultra-large-scale MMC is of great significance to the commissioning and operation of actual projects.
[0005] One existing technical path is to use the parallel characteristics of hardware resources to process the equivalent calculation of many sub-modules, so as to achieve the purpose of replacing time with space. For example, based on FPGA, MMC electromagnetic transient real-time simulation is realized, and the parallel characteristics of FPGA are used to process the equivalent calculation of many sub-modules. Although FPGA has rich parallel resources and powerful communication capabilities, with the increase of the number of levels and endpoints of MMC, the hardware cost of FPGA gradually increases. The cost of simulating a single valve arm is 2 to 3 times that of CPU, and it is relatively difficult to purchase high-end FPGA chips at present, which indirectly increases the economic cost. In addition, it is difficult to develop using hardware description language. The learning cost of hardware description language such as Verilog is extremely high, and model development requires manual design of underlying calculation and scheduling logic, such as matrix-matrix multiplication, matrix-vector multiplication calculation and calculation timing of functional modules, which is not conducive to product development and maintenance. Although high-level synthesis language can be developed using C language, the automatically generated code is not efficient and is easy to waste chip resources. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides an MMC electromagnetic transient real-time simulation modeling method based on a multi-core server.
[0007] According to one aspect of the present invention, a method for real-time simulation modeling of MMC electromagnetic transient based on a multi-core server is provided, comprising:
[0008] Construct an electromagnetic transient real-time simulation model of the MMC valve arm suitable for the CPU environment;
[0009] According to the designed segmentation and decoupling method of the MMC valve arm, valve control model and main network model, the data transmission logic between the MMC valve arm, valve control model and main network model is determined;
[0010] Design the calculation logic of multi-threaded solution between MMC valve arm, valve control model and main network model;
[0011] Simplify the calculation logic according to the parallel task allocation, CPU area division and data synchronization method, and determine the simplified solution calculation logic;
[0012] Multithreading is used to perform simulation calculations on each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and data transmission logic to obtain the simulation calculation results.
[0013] Optionally, an electromagnetic transient real-time simulation model of the MMC valve arm suitable for the CPU environment is constructed, including:
[0014] A submodule replacement circuit of a submodule of an MMC valve arm is constructed by adopting a parallel structure of an equivalent diode, a submodule capacitor and a discharge resistor and connecting the submodule capacitor and the discharge resistor in series with a diode conduction resistor, wherein the submodule replacement circuit includes a half-bridge MMC replacement circuit and a full-bridge MMC replacement circuit;
[0015] The conduction state and the blocking state of the simulated submodule replacement circuit are solved for the voltage and resistance of the submodule replacement circuit, and the Thevenin equivalent circuit of the submodules in the same state is aggregated according to the solution results;
[0016] According to the Thevenin equivalent circuit of the submodules with the same state, an electromagnetic transient real-time simulation model of the MMC valve arm is constructed.
[0017] Optionally, according to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model, the data transmission logic between the MMC valve arm, the valve control model and the main network model is determined, including:
[0018] The valve arm inductance and valve arm resistance of the MMC valve arm are used to simulate the long-distance transmission line to achieve the decoupling between the MMC valve arm and the main grid model, and determine the first data transmission relationship between the MMC valve arm and the main grid module;
[0019] Delay decoupling is performed between the MM valve arm and the valve control model using one time step, and a second data transmission relationship between the MMC valve arm and the valve control model is determined;
[0020] According to the first data transmission relationship and the second data transmission relationship, the data transmission logic between the MMC valve arm, the valve control model and the main network model is determined.
[0021] Optionally, the solution process of solving the calculation logic is:
[0022] Step 1: Bridge arm state control;
[0023] Step 2: Grouping and merging of submodule status;
[0024] Step 3: Calculate the diode equivalent circuit;
[0025] Step 4: Transmission line current source calculation procedure;
[0026] Step 5: Independent solution of the bridge arm;
[0027] Step 6: The valve arm inductance state is updated and the diode state is predicted;
[0028] Step 7: Submodule status update.
[0029] Among them, step 2, step 3 and step 4 are calculated in parallel; step 6 and step 7 are calculated in parallel.
[0030] According to another aspect of the present invention, there is provided an MMC electromagnetic transient real-time simulation modeling device based on a multi-core server, comprising:
[0031] A construction module for constructing an electromagnetic transient real-time simulation model of an MMC valve arm suitable for a CPU environment;
[0032] A determination module is used to determine the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model;
[0033] Design module, used to design the calculation logic of multi-threaded solution between MMC valve arm, valve control model and main network model;
[0034] A simplification module is used to simplify the calculation logic according to the parallel task allocation, CPU area division and data synchronization method, and determine the simplified solution calculation logic;
[0035] The simulation module is used to use multi-threading to perform simulation calculations for each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and the data transmission logic to obtain the simulation calculation results.
[0036] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0037] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0038] Therefore, the MMC electromagnetic transient modeling method provided by the present invention can meet the real-time constraints under CPU conditions. In the digital-analog hybrid simulation experiment connected to the actual physical device, if any parallel task times out, it will lead to the loss of real-time performance, thereby causing the calculation results to fluctuate or even diverge. The application of the technology of the present invention can ensure that the 50 microsecond simulation step valve arm and valve control calculation will not time out. The multi-threaded MMC real-time simulation system provided by the present invention has wide applicability and high flexibility, and can greatly improve the work efficiency of digital-analog hybrid simulation of AC-DC coupled power grids. The results of the invention can also be applied to the electromagnetic transient real-time simulation experiments of flexible DC projects of various branches and provincial companies, and have broad prospects for promotion and transformation. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0040] Figure 1 It is a flow chart of a method for real-time simulation modeling of MMC electromagnetic transient state based on a multi-core server provided by an exemplary embodiment of the present invention;
[0041] Figure 2 It is a schematic diagram of an alternative circuit for the conduction state of a full-bridge submodule and a half-bridge submodule provided by an exemplary embodiment of the present invention;
[0042] Figure 3 is a schematic diagram of an alternative circuit for a full-bridge submodule and a half-bridge submodule in a locked state provided by an exemplary embodiment of the present invention;
[0043] Figure 4 is a schematic diagram of data transmission relationship of a decoupling module provided by an exemplary embodiment of the present invention;
[0044] Figure 5 It is a calculation logic diagram of a multi-threaded real-time simulation provided by an exemplary embodiment of the present invention;
[0045] Figure 6 is a schematic diagram of a calculation function module for solving a valve arm problem provided by an exemplary embodiment of the present invention;
[0046] Figure 7 It is a structural schematic diagram of an MMC electromagnetic transient real-time simulation modeling device based on a multi-core server provided by an exemplary embodiment of the present invention;
[0047] Figure 8 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0048] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0049] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0050] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0051] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0052] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0053] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0054] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0055] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0056] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0057] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0058] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0059] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0060] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0061] Exemplary Methods
[0062] Figure 1 1 is a flow chart of a method for real-time simulation modeling of MMC electromagnetic transient state based on a multi-core server provided by an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the MMC electromagnetic transient real-time simulation modeling method 100 based on a multi-core server includes the following steps:
[0063] Step 101, constructing an electromagnetic transient real-time simulation model of an MMC valve arm suitable for a CPU environment;
[0064] Step 102, determining the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model;
[0065] Step 103, designing the calculation logic of multi-threaded solution between the MMC valve arm, the valve control model and the main network model;
[0066] Step 104, simplifying the calculation logic according to the parallel task allocation, CPU area division and data synchronization method, and determining the simplified solution calculation logic;
[0067] Step 105 , using multithreading to perform simulation calculations for each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and the data transmission logic, to obtain simulation calculation results.
[0068] Specifically, in order to solve the deficiencies in the background technology, the present invention proposes a MMC electromagnetic transient real-time simulation modeling method based on a multi-core server. At present, domestically produced multi-core servers are developing rapidly, hardware prices continue to decline, and the price of simulating a single valve arm is even lower. Based on the CPU operating environment, high-level languages such as C language can be used directly for development. Mature library files and MPI commands do not require developers to perform secondary development or bottom-level design. Through top-level design, such as model segmentation, decoupling, and scheduling optimization, MMC electromagnetic transient real-time simulation can be achieved.
[0069] The present invention provides a method and system for real-time simulation modeling of MMC electromagnetic transient state based on a multi-core server, the method comprising the following steps:
[0070] 1. Construct the electromagnetic transient real-time simulation model of the MMC valve arm. Use an alternative circuit that connects an equivalent diode-capacitor-submodule resistor in parallel and connects it in series with the diode on-resistance (see Appendix Figure 2 ) The conduction state and blocking state of the analog submodule (see Appendix Figure 3 ). The voltage and resistance of the circuit are replaced according to the submodule solved in the previous time step, and the Thevenin equivalent circuit of the submodules with the same state is aggregated to reduce the calculation dimension, and then the valve arm voltage and current are solved independently.
[0071] 2. Based on the valve arm model designed in step 1, design the segmentation and decoupling method of the MMC valve arm, valve control model and main network model. The decoupling relationship is shown in the attached figure. Figure 4 As shown. The MMC valve arm inductance and valve arm resistance are used to simulate long-distance transmission lines to achieve decoupling of the valve arm from the main grid. After decoupling, parallel calculations between each MMC valve arm and the AC and DC power grid can be achieved. The valve control and valve arm are decoupled with a time delay of one time step. Engineering experience shows that it will not affect the calculation results of real-time simulation. Ultimately, parallel calculations of three functional modules, namely, multiple MMC valve arms, valve control, and node voltage equations, can be achieved.
[0072] 3. After step 2 is completed, the order of solving each calculation unit on the CPU after segmentation needs to be redefined, that is, the calculation logic of multi-threaded parallel solution should be designed. Through multi-threaded programming technology, the MMC valve arm and valve control are respectively bound to the specified real-time CPU, and then the synchronization between multiple MMC valve arms, valve control threads and the main process is achieved through atomic variables before the communication process of the main program. In order to avoid calculation distortion, it is necessary to enter the communication process only after all MMC valve arms, valve controls and node voltage equations are solved. The calculation logic of multi-threaded parallel solution is shown in the attached figure. Figure 5 As shown, reference Figure 5 As shown in the figure, the model decoupling of the MMC single valve arm and the external circuit is realized through the virtual transmission line decoupling method. The valve control part is collected in real time through the interface circuit or simulated through the valve control module. Therefore, each MMC valve arm, valve control, and main circuit solution function module can be placed in a separate CPU for independent calculation. At this time, the three parts of the MMC valve arm, network calculation, and valve control calculation are solved independently, which can realize parallel calculation.
[0073] 4. After the above steps are completed, since the constraints of real-time simulation must be met within each step, the calculation process of MMC valve arm solution needs to be simplified. Figure 6) is divided into (1) bridge arm state control, (2) submodule state grouping and merging, (3) diode equivalent circuit calculation, (4) transmission line current source calculation program, (5) bridge arm independent solution, (6) valve arm inductance state update and diode state prediction, (7) submodule state update. Among them, (2), (3), (4) can be calculated in parallel, (6), (7) can also be calculated in parallel, thereby speeding up the calculation speed of the valve arm.
[0074] Attached Figure 6 The following are the details of the MMC valve arm module function, including (1) valve arm state control, (2) sub-module state grouping and merging, (3) diode equivalent circuit calculation program, (4) transmission line current source calculation program, (5) bridge arm calculation program, (6) valve arm inductance state update, and (7) sub-module state update sub-function. Among them, (2), (3), (4) and (6), (7) can be accelerated by parallel solution. (1) and (2) can be simplified by adding sign coefficients. In the non-locked state, the calculation of (3) and (7) can be ignored.
[0075] 5. Steps 1, 2, 3, and 4 solve the real-time simulation problem of MMC within a single step. Finally, it is necessary to formulate a synchronization mechanism for multi-threaded computing programs to achieve synchronous control of the entire simulation process and complete the entire real-time simulation process. For multi-threaded programs, synchronization means that only one thread is allowed to access a resource within a certain period of time. During this time, other threads are not allowed to access the resource. Resources can usually be synchronized through mutexes, spin locks, condition variables, reader-writer locks, and semaphores.
[0076] The present invention uses atomic operations to implement read and write operations on the same variable between multiple threads. Atomic variables can avoid competitive operations of multiple threads on the same resource and can save scheduling time to the greatest extent. The synchronous waiting mechanism uses blind wait operations to fully wake up all CPU resources and poll the synchronization flag at the fastest level.
[0077] Therefore, the MMC electromagnetic transient modeling method provided by the present invention can meet the real-time constraints under CPU conditions. In the digital-analog hybrid simulation experiment connected to the actual physical device, if any parallel task times out, it will lead to the loss of real-time performance, thereby causing the calculation results to fluctuate or even diverge. The application of the technology of the present invention can ensure that the 50 microsecond simulation step valve arm and valve control calculation will not time out. The multi-threaded MMC real-time simulation system provided by the present invention has wide applicability and high flexibility, and can greatly improve the work efficiency of digital-analog hybrid simulation of AC-DC coupled power grids. The results of the invention can also be applied to the electromagnetic transient real-time simulation experiments of flexible DC projects of various branches and provincial companies, and have broad prospects for promotion and transformation.
[0078] Exemplary Devices
[0079] Figure 7 FIG. 1 is a schematic diagram of a structure of an MMC electromagnetic transient real-time simulation modeling device based on a multi-core server provided by an exemplary embodiment of the present invention. Figure 7 As shown, the apparatus 700 includes:
[0080] A construction module 710 is used to construct an electromagnetic transient real-time simulation model of the MMC valve arm suitable for a CPU environment;
[0081] A determination module 720, configured to determine the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model;
[0082] A design module 730, for designing the calculation logic of multi-threaded solution between the MMC valve arm, the valve control model and the main network model;
[0083] A simplification module 740 is used to simplify the calculation logic according to the parallel task allocation, CPU area division and data synchronization method, and determine the simplified solution calculation logic;
[0084] The simulation module 750 is used to use multi-threading to perform simulation calculations for each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and the data transmission logic to obtain simulation calculation results.
[0085] Optionally, the construction module 710 includes:
[0086] A first construction submodule, for constructing a submodule replacement circuit of a submodule of an MMC valve arm by using an equivalent diode, a submodule capacitor, and a discharge resistor in parallel and in series with a diode on-resistance, wherein the submodule replacement circuit includes a half-bridge MMC replacement circuit and a full-bridge MMC replacement circuit;
[0087] Aggregation submodule, used for simulating the conduction state and the blocking state of the submodule replacement circuit to solve the voltage and resistance of the submodule replacement circuit, and aggregating the Thevenin equivalent circuit of the submodules in the same state according to the solution results;
[0088] The second construction submodule is used to construct the electromagnetic transient real-time simulation model of the MMC valve arm according to the Thevenin equivalent circuit of the same state submodule.
[0089] Optionally, the determination module 720 includes:
[0090] A first determination submodule, configured to use the valve arm inductance and valve arm resistance of the MMC valve arm to simulate a long-distance power transmission line to achieve decoupling between the MMC valve arm and the main grid model, and determine a first data transmission relationship between the MMC valve arm and the main grid module;
[0091] A second determination submodule is used to perform a time-delay decoupling between the MM valve arm and the valve control model using one time step to determine a second data transmission relationship between the MMC valve arm and the valve control model;
[0092] The third determination submodule is used to determine the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the first data transmission relationship and the second data transmission relationship.
[0093] Optionally, the solution process of the solution calculation logic is:
[0094] Step 1: Bridge arm state control;
[0095] Step 2: Grouping and merging of submodule status;
[0096] Step 3: Calculate the diode equivalent circuit;
[0097] Step 4: Transmission line current source calculation procedure;
[0098] Step 5: Independent solution of the bridge arm;
[0099] Step 6: The valve arm inductance state is updated and the diode state is predicted;
[0100] Step 7: Submodule status update.
[0101] Among them, step 2, step 3 and step 4 are calculated in parallel; step 6 and step 7 are calculated in parallel.
[0102] Exemplary Electronic Devices
[0103] Figure 8 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 8As shown, the electronic device 80 includes one or more processors 81 and a memory 82 .
[0104] The processor 81 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0105] The memory 82 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 81 may run the program instructions to implement the methods of the software programs of the various embodiments of the present invention described above and / or other desired functions. In one example, the electronic device may also include: an input device 83 and an output device 84, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0106] In addition, the input device 83 may also include, for example, a keyboard, a mouse, etc.
[0107] The output device 84 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0108] Of course, to simplify, Figure 8 Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application conditions.
[0109] Exemplary computer program products and computer-readable storage media
[0110] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.
[0111] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0112] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0113] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0114] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0115] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0116] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0117] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0118] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0119] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A MMC electromagnetic transient real-time simulation modeling method based on a multi-core server, characterized in that: include: Construct an electromagnetic transient real-time simulation model of the MMC valve arm suitable for the CPU environment; According to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model, determine the data transmission logic between the MMC valve arm, the valve control model and the main network model; Design the calculation logic of multi-threaded solution between the MMC valve arm, the valve control model and the main network model; Simplifying the calculation logic according to the parallel task allocation, CPU area division and data synchronization method, and determining the simplified solution calculation logic; Multithreading is used to perform simulation calculations for each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and the data transmission logic to obtain simulation calculation results.
2. The method according to claim 1, characterized in that Construct an electromagnetic transient real-time simulation model of the MMC valve arm suitable for the CPU environment, including: A submodule replacement circuit of a submodule of an MMC valve arm is constructed by using an equivalent diode, a submodule capacitor and a discharge resistor in parallel and in series with a diode on-resistance, wherein the submodule replacement circuit includes a half-bridge MMC replacement circuit and a full-bridge MMC replacement circuit; Simulating the conduction state and the blocking state of the submodule replacement circuit to solve the voltage and resistance of the submodule replacement circuit, and aggregating the Thevenin equivalent circuits of the submodules in the same state according to the solution results; According to the Thevenin equivalent circuit of the same state submodule, the electromagnetic transient real-time simulation model of the MMC valve arm is constructed.
3. The method according to claim 1, characterized in that According to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model, the data transmission logic between the MMC valve arm, the valve control model and the main network model is determined, including: Using the valve arm inductance and valve arm resistance of the MMC valve arm to simulate a long-distance power transmission line to achieve decoupling between the MMC valve arm and the main grid model, and determining a first data transmission relationship between the MMC valve arm and the main grid module; Delay decoupling is performed between the MM valve arm and the valve control model using one time step to determine a second data transmission relationship between the MMC valve arm and the valve control model; The data transmission logic between the MMC valve arm, the valve control model and the main network model is determined according to the first data transmission relationship and the second data transmission relationship.
4. The method according to claim 1, characterized in that: The solution process of the solution calculation logic is: Step 1: Bridge arm state control; Step 2: Grouping and merging of submodule status; Step 3: Calculate the diode equivalent circuit; Step 4: Transmission line current source calculation procedure; Step 5: Independent solution of the bridge arm; Step 6: The valve arm inductance state is updated and the diode state is predicted; Step 7: Submodule status update. Among them, step 2, step 3 and step 4 are calculated in parallel; step 6 and step 7 are calculated in parallel.
5. A MMC electromagnetic transient real-time simulation modeling device based on a multi-core server, characterized in that: include: A construction module for constructing an electromagnetic transient real-time simulation model of an MMC valve arm suitable for a CPU environment; A determination module, used to determine the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the designed segmentation and decoupling method of the MMC valve arm, the valve control model and the main network model; A design module, used to design the calculation logic of multi-threaded solution between the MMC valve arm, the valve control model and the main network model; A simplification module, used to simplify the calculation logic according to parallel task allocation, CPU area division and data synchronization method, and determine the simplified solution calculation logic; The simulation module is used to use multi-threading to perform simulation calculations for each step of the electromagnetic transient real-time simulation model according to the solution calculation logic and the data transmission logic to obtain simulation calculation results.
6. The device according to claim 5, characterized in that Building blocks, including: A first construction submodule, for constructing a submodule replacement circuit of a submodule of an MMC valve arm by using an equivalent diode, a submodule capacitor, and a discharge resistor in parallel and in series with a diode on-resistance, wherein the submodule replacement circuit includes a half-bridge MMC replacement circuit and a full-bridge MMC replacement circuit; Aggregation submodule, used for simulating the conduction state and the blocking state of the submodule replacement circuit to solve the voltage and resistance of the submodule replacement circuit, and aggregating the Thevenin equivalent circuit of the submodules in the same state according to the solution results; The second construction submodule is used to construct the electromagnetic transient real-time simulation model of the MMC valve arm according to the Thevenin equivalent circuit of the same state submodule.
7. The device according to claim 5, characterized in that Identify modules, including: A first determination submodule, configured to use the valve arm inductance and valve arm resistance of the MMC valve arm to simulate a long-distance power transmission line to achieve decoupling between the MMC valve arm and the main grid model, and determine a first data transmission relationship between the MMC valve arm and the main grid module; A second determination submodule is used to perform a time-delay decoupling between the MM valve arm and the valve control model using one time step to determine a second data transmission relationship between the MMC valve arm and the valve control model; The third determination submodule is used to determine the data transmission logic between the MMC valve arm, the valve control model and the main network model according to the first data transmission relationship and the second data transmission relationship.
8. The device according to claim 5, characterized in that The solution process of the solution calculation logic is: Step 1: Bridge arm state control; Step 2: Grouping and merging of submodule status; Step 3: Calculate the diode equivalent circuit; Step 4: Transmission line current source calculation procedure; Step 5: Independent solution of the bridge arm; Step 6: The valve arm inductance state is updated and the diode state is predicted; Step 7: Submodule status update. Among them, step 2, step 3 and step 4 are calculated in parallel; step 6 and step 7 are calculated in parallel.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 4.