Electromagnetic transient real-time analog quantity interpolation method, device and equipment
By determining the output value position factor in electromagnetic transient real-time simulation for interpolation processing, the waveform mutation and output overshoot problems caused by existing interpolation methods are solved, and the simulation accuracy is improved.
Patent Information
- Application Number
- CN202411599920.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-11
AI Technical Summary
The existing commonly used interpolation methods can easily lead to waveform mutation and output overshoot in electromagnetic transient real-time simulation, affecting the simulation accuracy.
By determining the position of the current simulation step output value in the electromagnetic transient real-time simulation task, the position factor is used for interpolation to reduce the waveform overshoot phenomenon.
It effectively reduces the output waveform overshoot caused by the interpolation method, reduces the adverse impact on peripherals, and improves the accuracy of real-time simulation.
Smart Images

Figure CN119511761A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic transient simulation, and in particular to a method, device and equipment for electromagnetic transient real-time simulation analog quantity interpolation. Background Art
[0002] The IO interface device is one of the key components of electromagnetic transient real-time simulation. The IO interface is used to connect the simulator with external control and protection equipment to achieve real-time information interaction and complete hardware-in-the-loop simulation. The IO interface device includes four categories: analog output interface (Analog Output, AO), analog input interface (Analog Input, AI), digital output interface (Digital Output, DO), and digital input interface (Digital Input, DI). Among them, the AO interface is used to output analog signals such as voltage and current calculated by the simulator to peripherals.
[0003] The simulator sends the output value to the AO hardware in each simulation step, and outputs the corresponding analog signal on the terminal after digital-to-analog conversion. In order to make the output signal closer to the real physical signal, the interpolation output method is usually used.
[0004] Although the existing commonly used interpolation methods can increase the number of output points and make the output waveform closer to the expected waveform, they are prone to output overshoot caused by waveform mutations, which has an adverse effect on peripherals and thus affects the accuracy of real-time simulation. Summary of the invention
[0005] In view of this, the present invention provides an electromagnetic transient real-time simulation analog interpolation method, device and equipment, which solves the technical problem that the existing commonly used interpolation methods are prone to output overshoot caused by waveform mutations, causing adverse effects on peripherals, thereby affecting the accuracy of real-time simulation.
[0006] A first aspect of the present invention provides an electromagnetic transient real-time simulation analog interpolation method, comprising:
[0007] Determine the position of the current simulation step output value in the electromagnetic transient real-time simulation task;
[0008] Determine the position factor of the current simulation step output value according to the position of the current simulation step output value;
[0009] The current simulation step output value is interpolated according to the position factor.
[0010] Preferably, the determining the position of the current simulation step output value in the electromagnetic transient real-time simulation task includes:
[0011] Determine the simulation step zero limit value according to the minimum output value and the maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation;
[0012] Compare the current simulation step output value with the simulation step zero limit value;
[0013] When the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone;
[0014] When the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
[0015] Preferably, determining the position factor of the current simulation step output value according to the position of the current simulation step output value comprises:
[0016] When it is determined that the position of the current simulation step output value is in the positive half zone, the position factor of the current simulation step output value is determined by the following formula:
[0017]
[0018] In the formula, is the position factor when the output value of the current simulation step is in the positive half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0019] Preferably, determining the position factor of the current simulation step output value according to the position of the current simulation step output value comprises:
[0020] When it is determined that the position of the current simulation step output value is in the negative half zone, the position factor of the current simulation step output value is determined by the following formula:
[0021]
[0022] In the formula, is the position factor when the output value of the current simulation step is in the negative half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0023] Preferably, the interpolation processing of the current simulation step output value according to the position factor comprises:
[0024] According to the position factor, the current simulation step output value is interpolated according to the following formula to obtain an interpolated output value; the interpolated output value is:
[0025]
[0026] In the formula, is the interpolation output value at time t, is the position factor, is the output value of the previous simulation step, is the number of interpolation points in a simulation step, is the current simulation step time.
[0027] In a second aspect, the present invention further provides an electromagnetic transient real-time simulation analog interpolation device, comprising:
[0028] A position determination module is used to determine the position of the current simulation step output value in the electromagnetic transient real-time simulation task;
[0029] A factor determination module, used to determine the position factor of the current simulation step output value according to the position of the current simulation step output value;
[0030] An interpolation processing module is used to perform interpolation processing on the current simulation step output value according to the position factor.
[0031] Preferably, the position determination module is specifically used to determine the simulation step zero limit value according to the minimum output value and maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation; compare the current simulation step output value with the simulation step zero limit value; when the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone; when the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
[0032] In a third aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in the first aspect.
[0033] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in the first aspect are implemented.
[0034] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in the first aspect.
[0035] It can be seen from the above technical scheme that the present invention determines the position of the current simulation step output value in the electromagnetic transient real-time simulation task, and uses the position factor corresponding to the position of the current simulation step output value for interpolation output, thereby reducing the output waveform overshoot caused by conventional interpolation methods, thereby reducing the adverse effects on peripherals and improving the accuracy of real-time simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 An application environment for an electromagnetic transient real-time simulation analog interpolation method provided by an embodiment of the present invention;
[0037] Figure 2 This is the effect diagram of the traditional interpolation method;
[0038] Figure 3 A flowchart of an electromagnetic transient real-time simulation analog interpolation method provided by an embodiment of the present invention;
[0039] Figure 4 It is a schematic diagram of the interpolation effect using the conventional interpolation method;
[0040] Figure 5 A schematic diagram of the interpolation effect of the electromagnetic transient real-time simulation analog quantity interpolation method provided by the present invention;
[0041] Figure 6 A schematic diagram of the structure of an electromagnetic transient real-time simulation analog interpolation device provided by the present invention;
[0042] Figure 7 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION
[0043] 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.
[0044] The electromagnetic transient real-time simulation analog interpolation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the electromagnetic transient real-time simulation software communicates with the server 102 through the network. The data storage system can store the data that the server 102 needs to process. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers. The server 102 determines the position of the current simulation step output value in the electromagnetic transient real-time simulation task; determines the position factor of the current simulation step output value according to the position of the current simulation step output value; and interpolates the current simulation step output value according to the position factor. The server 102 can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides cloud computing services.
[0045] Among them, the existing commonly used interpolation methods usually adopt the interpolation output method, and the traditional interpolation formula is:
[0046]
[0047] Where y(t) is the interpolation output at time t, yn is the output value of the current simulation step, and y n-1 is the output value of the previous simulation step, M is the number of interpolation points in a simulation step, t n is the current simulation step time, T step is the simulation step size. Effect of traditional interpolation method Figure 2 shown.
[0048] Through research, it is found that the existing commonly used interpolation methods can increase the number of output points to make the output waveform closer to the expected waveform, but it is easy to cause output overshoot caused by waveform mutation, which has an adverse effect on peripherals and thus affects the accuracy of real-time simulation.
[0049] In view of this, if Figure 3 As shown, the embodiment of the present application provides an electromagnetic transient real-time simulation analog interpolation method, which is applied to Figure 1 The server 102 in the example is used as an example to illustrate the method, which includes the following steps S1 to S3. Among them:
[0050] Step S1, determining the position of the current simulation step output value in the electromagnetic transient real-time simulation task.
[0051] Specifically, the step S1 of determining the position of the current simulation step output value in the electromagnetic transient real-time simulation task includes:
[0052] Step S101 : determining a simulation step zero limit value according to the minimum output value and the maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation.
[0053] Among them, the simulation step length zero limit is: Ymin +(Y max -Y min ) / 2. Among them, , They are respectively the minimum output value and maximum output value allowed by the analog output interface of electromagnetic transient real-time simulation.
[0054] Step S102, comparing the current simulation step output value with the simulation step zero limit value;
[0055] Step S103: when the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone;
[0056] Step S104: When the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
[0057] Step S2: Determine the position factor of the current simulation step output value according to the position of the current simulation step output value.
[0058] In some embodiments, determining the position factor of the current simulation step output value according to the position of the current simulation step output value in step S2 includes:
[0059] When it is determined that the position of the current simulation step output value is in the positive half zone, the position factor of the current simulation step output value is determined by the following formula:
[0060]
[0061] In the formula, is the position factor when the output value of the current simulation step is in the positive half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0062] In some embodiments, determining the position factor of the current simulation step output value according to the position of the current simulation step output value in step S2 includes:
[0063] When it is determined that the position of the current simulation step output value is in the negative half area, the position factor of the current simulation step output value is determined by the following formula:
[0064]
[0065] In the formula, is the position factor when the output value of the current simulation step is in the negative half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0066] Step S3: interpolate the current simulation step output value according to the position factor.
[0067] Among them, the interpolation processing of the current simulation step output value according to the position factor in step S3 includes:
[0068] According to the position factor, the current simulation step output value is interpolated according to the following formula to obtain the interpolated output value; the interpolated output value is:
[0069]
[0070] In the formula, is the interpolation output value at time t, is the position factor, is the output value of the previous simulation step, is the number of interpolation points in a simulation step, is the current simulation step time.
[0071] It should be noted that the present application determines the position of the current simulation step output value in the electromagnetic transient real-time simulation task, and uses the position factor corresponding to the position of the current simulation step output value for interpolation output, which can reduce the output waveform overshoot caused by conventional interpolation methods, thereby reducing the adverse effects on peripherals and improving the accuracy of real-time simulation.
[0072] The following is a comparative data to prove the examples of this application.
[0073] like Figure 4 As shown in FIG. 1 , when a conventional interpolation method is used to output a step signal, an output overshoot phenomenon will occur. The electromagnetic transient real-time simulation analog interpolation method provided by the present invention can avoid, reduce or even eliminate waveform overshoot. Figure 5 shown.
[0074] Based on the same inventive concept, an embodiment of the present application also provides an electromagnetic transient real-time simulation analog quantity interpolation device for implementing the above-mentioned electromagnetic transient real-time simulation analog quantity interpolation method.
[0075] The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in one or more electromagnetic transient real-time simulation analog quantity interpolation device embodiments provided below can be referred to the limitations on the electromagnetic transient real-time simulation analog quantity interpolation method above, and will not be repeated here.
[0076] like Figure 6 As shown, the embodiment of the present invention also provides an electromagnetic transient real-time simulation analog interpolation device, comprising:
[0077] The position determination module 100 is used to determine the position of the current simulation step output value in the electromagnetic transient real-time simulation task;
[0078] A factor determination module 200, used to determine a position factor of a current simulation step output value according to a position of the current simulation step output value;
[0079] The interpolation processing module 300 is used to perform interpolation processing on the current simulation step output value according to the position factor.
[0080] In some embodiments, the position determination module is specifically used to determine the simulation step zero limit value based on the minimum output value and maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation; compare the current simulation step output value with the simulation step zero limit value; when the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone; when the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
[0081] In some embodiments, the factor determination module 200 is used to determine the position factor of the current simulation step output value by the following formula when it is determined that the position of the current simulation step output value is in the positive half area:
[0082]
[0083] In the formula, is the position factor when the output value of the current simulation step is in the positive half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0084] In some embodiments, the factor determination module 200 is used to determine the position factor of the current simulation step output value by the following formula when it is determined that the position of the current simulation step output value is in the negative half area:
[0085]
[0086] In the formula, is the position factor when the output value of the current simulation step is in the negative half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
[0087] In some embodiments, the interpolation processing module 300 is used to perform interpolation processing on the current simulation step output value according to the position factor according to the following formula to obtain an interpolation output value; the interpolation output value is:
[0088]
[0089] In the formula, is the interpolation output value at time t, is the position factor, is the output value of the previous simulation step, is the number of interpolation points in a simulation step, is the current simulation step time.
[0090] like Figure 7 As shown, an embodiment of the present application also provides an electronic device, the electronic device 10 includes a memory 20 and a processor 30, the memory 20 stores a computer program, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as in any of the above embodiments.
[0091] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps of the electromagnetic transient real-time simulation analog quantity interpolation method in any of the above embodiments are implemented.
[0092] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method in any of the above embodiments.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, electronic device and computer storage medium can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0094] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0095] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0096] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, 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.
[0097] 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.
[0098] In addition, each functional unit in each embodiment of the present invention 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.
[0099] 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 invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the various embodiments of the method of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). 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, etc. Various media that can store program codes.
[0100] 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 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 method for interpolating analog quantities of electromagnetic transient real-time simulation, characterized in that: include: Determine the position of the current simulation step output value in the electromagnetic transient real-time simulation task; Determine the position factor of the current simulation step output value according to the position of the current simulation step output value; The current simulation step output value is interpolated according to the position factor.
2. The electromagnetic transient real-time simulation analog interpolation method according to claim 1 is characterized in that: The step of determining the position of the current simulation step output value in the electromagnetic transient real-time simulation task includes: Determine the simulation step zero limit value according to the minimum output value and the maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation; Compare the current simulation step output value with the simulation step zero limit value; When the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone; When the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
3. The electromagnetic transient real-time simulation analog interpolation method according to claim 2 is characterized in that: The step of determining the position factor of the current simulation step output value according to the position of the current simulation step output value comprises: When it is determined that the position of the current simulation step output value is in the positive half zone, the position factor of the current simulation step output value is determined by the following formula: In the formula, is the position factor when the output value of the current simulation step is in the positive half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
4. The electromagnetic transient real-time simulation analog interpolation method according to claim 2 is characterized in that: The step of determining the position factor of the current simulation step output value according to the position of the current simulation step output value comprises: When it is determined that the position of the current simulation step output value is in the negative half zone, the position factor of the current simulation step output value is determined by the following formula: In the formula, is the position factor when the output value of the current simulation step is in the negative half zone, , are the minimum and maximum output values allowed by the analog output interface of electromagnetic transient real-time simulation, The position of the output value of the current simulation step.
5. The electromagnetic transient real-time simulation analog interpolation method according to claim 1 is characterized in that: The interpolation processing of the current simulation step output value according to the position factor comprises: According to the position factor, the current simulation step output value is interpolated according to the following formula to obtain an interpolated output value; the interpolated output value is: In the formula, is the interpolation output value at time t, is the position factor, is the output value of the previous simulation step, is the number of interpolation points in a simulation step, is the current simulation step time.
6. An electromagnetic transient real-time simulation analog interpolation device, characterized in that: include: A position determination module is used to determine the position of the current simulation step output value in the electromagnetic transient real-time simulation task; A factor determination module, used to determine the position factor of the current simulation step output value according to the position of the current simulation step output value; An interpolation processing module is used to perform interpolation processing on the current simulation step output value according to the position factor.
7. The electromagnetic transient real-time simulation analog interpolation device according to claim 6 is characterized in that: The position determination module is specifically used to determine the simulation step zero limit value according to the minimum output value and the maximum output value allowed by the analog output interface of the electromagnetic transient real-time simulation; compare the current simulation step output value with the simulation step zero limit value; When the current simulation step output value is less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the negative half zone; When the current simulation step output value is not less than the simulation step zero limit value, it is determined that the position of the current simulation step output value is in the positive half zone.
8. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the electromagnetic transient real-time simulation analog quantity interpolation method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Electromagnetic transient simulation switching method and device and storage medium
CN111090948A
Static load electromagnetic transient modeling circuit of controlled voltage source and modeling simulation method
CN113312745A
Efficient electromagnetic transient simulation method, system and equipment of power system and medium
CN117371242A
Hybrid electromagnetic transient simulation method for microgrid real-time simulation
US20210050722A1