RLC electronic load control method suitable for sinusoidal current simulation
By simplifying the solution of current instructions in the complex frequency domain and using the second-order generalized integral algorithm, the problem of insufficient steady-state performance in RLC electronic load testing is solved, and efficient dynamic tracking and stable performance improvement is achieved.
Patent Information
- Application Number
- CN202411174043.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The existing RLC electronic load tests for sinusoidal current simulation have problems with insufficient steady-state performance.
By obtaining the current formula that satisfies Ohm's law in the complex frequency domain, eliminating the imaginary part and transforming it to obtain the calculation formula of real-time current instruction, using the second-order generalized integral (SOGI) algorithm to generate a phase hysteresis offset of 90° on the input signal, two The quadrature signal is used and brought into the current command calculation formula to realize the predictive control of load current, avoid complex differential equation calculations, and improve the stable performance of the system.
Simplifies the solution of current instructions, improves the dynamic tracking and stable performance of the system, reduces system costs, and improves calculation accuracy.
Smart Images

Figure CN119064653A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electronic equipment for measuring and testing, and relates to an RLC electronic load control method suitable for sinusoidal current simulation. Background Art
[0002] RLC AC electronic load is a power electronic device that can simulate energy-consuming impedance loads. It can simulate resistors, inductors, capacitors and their combinations of different values. Usually, the AC electronic load tracks the phase and amplitude of the external voltage to control the output current that conforms to the characteristics of resistance, capacitance or inductance. Currently, it is mostly used in aging test scenarios of electronic equipment such as energy storage converters, grid-connected inverters, motor controllers, and vehicle-mounted OBCs. Due to the use of energy feedback topology, the RLC electronic load simulation device is more energy-saving, easy to adjust, flexible to set up, small in size, and low in noise than the real energy-consuming RLC device.
[0003] In order to accurately simulate the characteristics of real resistors, capacitors, and inductors, the RLC electronic load needs to maintain high dynamics and good steady-state properties. A common method for traditional RLC load simulation devices to obtain current instructions is not to phase-lock the voltage of the external voltage source, but to calculate through the two basic differential equations of capacitor current ic=C*du / dt and inductor voltage UL=Ldi / dt, and to realize the current instruction calculation by discretizing the differential equations. This method simply uses the differential relationship between the voltage and current of resistors, inductors, and capacitors, and calculates the current instruction according to the differential equations of voltage and current of the RLC model by sampling the instantaneous voltage of the external voltage source. The advantage of this algorithm is that the system responds quickly and the source response and load response are highly dynamic, but the disadvantage is that the algorithm has a large amount of calculation, and the differential link is easy to introduce interference, which can easily cause system oscillation and current loss of control, thereby reducing the steady-state indicators. Another method is to phase-lock the external voltage, calculate the effective value Irms command of the current according to the RLC model, and then use the product of Irms and the sine value of the phase-locked angle as the current command. The advantage of this method is that the current has high stability and is not easily affected by interference. The disadvantage is that the dynamic performance is poor. When the voltage or current changes, it takes a cycle or half a cycle for the effective value of the current to be updated in time.
[0004] In addition, the invention patent application with application publication number CN112838774A proposes a control method for a high-power RLC AC electronic load, which simulates the characteristics of the RLC AC electronic load by real-time control of the controlled voltage source U2, and obtains the command voltage U2n+1 of the controlled voltage source U2 in the three modes of R, RC, and RL; the calculated voltage command U2n+1 is used as the command voltage of the H-bridge, and the output current characteristics of the RLC load to be simulated are obtained by controlling the output voltage in a single voltage loop open-loop wave mode. Because the current is realized through the voltage difference, the direct voltage control has a higher dynamic response than the direct current control. The comparative document indirectly controls the current by directly controlling the voltage, which is suitable for arbitrary waveform voltage (such as triangle wave square wave circuits, etc.), but for pure sinusoidal circuits, the comparative document still has the problem of insufficient steady-state performance. Summary of the invention
[0005] The technical problem to be solved by the present invention is that the existing RLC electronic load test for sinusoidal current simulation has the problem of insufficient steady-state performance.
[0006] The present invention solves the above technical problems through the following technical solutions:
[0007] A RLC electronic load control method suitable for sinusoidal current simulation comprises the following steps:
[0008] Step S1, obtaining a current formula satisfying Ohm's law in a complex frequency domain by simulating a constant RC load or simulating a constant RL load;
[0009] Step S2, eliminating the imaginary part of the current formula obtained in step S1 and transforming it to obtain a calculation formula for the real-time current command;
[0010] Step S3, using the second-order generalized integral SOGI algorithm to generate a 90° phase lag offset on the input AC sinusoidal signal, to obtain two orthogonal signals, one of which has the same amplitude and phase as the input signal; the other lags the input signal by 90°, and the inverse of the other lags the input signal by 90°;
[0011] Step S4: Substitute the inverse value obtained by the second-order generalized integral in step S3 into the current command calculation formula obtained in step S2 to obtain the current command i under the simulated constant RC load model. C Or simulate the current command i under the constant RL load model L .
[0012] The present invention simplifies the solution of the current command into simple four arithmetic operations of Ohm's law in the complex frequency domain, thereby avoiding complex differential equation calculations; a prediction signal with a 90° phase difference with the external voltage is obtained through a second-order generalized integral algorithm, thereby realizing load current calculation and having good predictive control dynamics; at the same time, the signal is filtered through a second-order generalized integral (SOGI) algorithm to filter out high-frequency and low-frequency noise in the sampled signal, further improving the system stability and ensuring dynamic tracking performance; and the algorithm is relatively simple, and a DSP or FPGA with conventional performance can realize higher-speed iterative calculations, thereby improving calculation accuracy and reducing system costs.
[0013] Preferably, the simulated constant RC load circuit in step S1 includes an AC power supply e1, a simulated constant resistance resistor R, and a simulated constant capacitance capacitor C. The AC power supply e1 is connected in series with the simulated constant resistance resistor R and then connected in series with the simulated constant capacitance capacitor C to form a closed simulation circuit; assuming that the e1 voltage frequency is w and the circuit current is i c , then there is a current formula that satisfies Ohm's law in the complex frequency domain:
[0014]
[0015] In formula (1), s is the complex variable introduced in the Laplace transform. According to the corresponding relationship between Laplace transform and Fourier transform, s=jw, and s=jw is substituted into formula (1), we get:
[0016]
[0017] In formula (2), i c (jw) is the instantaneous value of current, i c , U(jw) is the instantaneous value of the external voltage e1, which is U.
[0018] Preferably, in step S2, the numerator and denominator in formula (2) are multiplied by the conjugate complex number of the denominator, the imaginary part j in the denominator is eliminated, and then a calculation formula for the real-time current command is obtained by a slight transformation:
[0019]
[0020] The imaginary part jU in formula (3) is the voltage that leads the external voltage U by 90°, and is set to U q , the imaginary part is U q Multiply by a fixed multiple wC / (R 2 w 2 C 2 +1).
[0021] Preferably, the implementation formulas of the two variables of SOGI in step S3 are as follows:
[0022]
[0023] In formula (4), D(s) is the bandpass filter transfer function, Q(s) is the low-pass filter transfer function, and k is the filter gain coefficient.
[0024] Preferably, in step S4, the known R and C values, the sampled U value, the frequency-locked w, and the 90° leading voltage signal obtained by inverting the second-order generalized integral in formula (4) are substituted into formula (3) to obtain the current command i under the RC load model. c , as shown in the following formula (5):
[0025]
[0026] Preferably, the simulated constant RL load circuit in step S1 includes an AC power supply e1, a simulated constant resistance resistor R, and a simulated constant inductor L. The AC power supply e1 is connected in series with the simulated constant resistance resistor R and then in series with the simulated constant inductor L to form a closed simulation circuit; assuming that the voltage frequency of e1 is w and the circuit current is i L , then there is a current formula that satisfies Ohm's law in the complex frequency domain:
[0027]
[0028] Where s is the complex variable in the Laplace transform, and s = jw. Substituting s = jw into equation (7), we get:
[0029]
[0030] In formula (7), i L (jw) is the instantaneous value of current, i L , U(jw) is the instantaneous value of the external voltage e1, which is U.
[0031] Preferably, in step S2, the numerator and denominator in formula (2) are multiplied by the conjugate complex number of the denominator, the imaginary part j in the denominator is eliminated, and then a calculation formula for the real-time current command is obtained by a slight transformation:
[0032]
[0033] By substituting the voltage U of the external e1 into equation (4), we can obtain Uq, that is, -jU in equation (8), where -jU represents a signal with a lag of 90°.
[0034] Preferably, the known R and L values, the sampled U value, the frequency-locked w, and the 90° leading voltage signal obtained by inverting the second-order generalized integral in equation (4) are substituted into equation (8) to obtain the current command i under the RL load model: L , as shown in the following formula (9):
[0035]
[0036] An electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above-mentioned RLC electronic load control method suitable for sinusoidal current simulation, and the processor is configured to execute the program stored in the memory.
[0037] A storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the above-mentioned RLC electronic load control method applicable to sinusoidal current simulation are executed.
[0038] The advantages of the present invention are:
[0039] The present invention simplifies the solution of the current command into simple four arithmetic operations of Ohm's law in the complex frequency domain, thereby avoiding complex differential equation calculations; a prediction signal with a 90° phase difference with the external voltage is obtained through a second-order generalized integral algorithm, thereby realizing load current calculation and having good predictive control dynamics; at the same time, the signal is filtered through a second-order generalized integral (SOGI) algorithm to filter out high-frequency and low-frequency noise in the sampled signal, further improving the system stability and ensuring dynamic tracking performance; and the algorithm is relatively simple, and a DSP or FPGA with conventional performance can realize higher-speed iterative calculations, thereby improving calculation accuracy and reducing system costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of an AC electronic simulation constant RC load circuit of an RLC electronic load control method applicable to sinusoidal current simulation in Embodiment 1 of the present invention;
[0041] Figure 2 It is a schematic diagram of an AC electronic simulation constant RL load circuit of an RLC electronic load control method applicable to sinusoidal current simulation according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are 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.
[0043] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments:
[0044] Embodiment 1
[0045] A RLC electronic load control method suitable for sinusoidal current simulation, see Figure 1 The schematic diagram of an AC electronic simulation constant RC load circuit of an RLC electronic load control method suitable for sinusoidal current simulation is shown. It is an RC load simulation, the measured AC source is e1, and the current characteristics when simulating a constant resistance resistor R and simulating a constant capacitance capacitor C are formed. The AC source e1 is connected in series with a simulated constant resistance resistor R and then in series with a simulated constant capacitance capacitor C to form a closed simulation circuit.
[0046] First, by assuming that the voltage frequency of e1 is w and the circuit current is i c , then there is a current formula that satisfies Ohm's law in the complex frequency domain:
[0047]
[0048] In formula (1), s is the complex variable introduced in the Laplace transform (the s operator is understood as follows in the sinusoidal circuit: a sine wave Asin(theta) with a period of 360° multiplied by s=jw is equivalent to shifting the sine wave forward by 90°, that is, obtaining Asin(theta+90°), which is equivalent to obtaining the differential signal of Asin(theta) (i.e. Acos(theta). At the same time, the introduction of the s operator can convert the input sine signal into a cosine signal without using differentiation, simplifying the calculation process), s=jw, and s=jw is substituted into formula (1) to obtain:
[0049]
[0050] In formula (2), i c (jw) is the instantaneous value of current, abbreviated as i c , U(jw) is the instantaneous value of the external voltage e1, abbreviated as U; multiply the numerator and denominator of the above formula by the conjugate complex number of the denominator, eliminate the imaginary part j in the denominator, and then slightly transform it to obtain the calculation formula of the real-time current command:
[0051]
[0052] The real part in formula (3) is the external voltage U multiplied by a fixed multiple Rw 2 C 2 / (R 2 w 2 C 2 +1); the imaginary part jU can be understood as a voltage that leads the external voltage U by 90°, and is set to U q (i.e. jU=Uq, and Uq leads U by 90°), that is, the imaginary part can be understood as Uq multiplied by a fixed multiple wC / (R 2 w 2 C 2 +1).
[0053] In summary, when R and C are known, the angular frequency w is obtained by phase-locking the external e1 voltage. The related method of obtaining the angular frequency w by phase-locking is a prior art, and this application will not go into details here. By sampling to obtain U (the instantaneous voltage value of the e1 voltage) and obtaining Uq, the i in formula (3) can be calculated. c Current command, and how to obtain Uq that is 90° ahead of U in real time is one of the cores of this method.
[0054] The second-order generalized integral (SOGI) can produce a 90° phase lag offset on the input AC sinusoidal signal to obtain two orthogonal signals (one D signal has the same amplitude and phase as the input signal U; the other Q signal lags the input signal U by 90°, and the inverse is 90° ahead). The implementation formula of the two variables of SOGI is as follows:
[0055]
[0056] By performing the Q(s) transformation in equation (4) on the input signal and then inverting it, we can obtain the signal Uq that is ahead of the input signal U, i.e., jU. At the same time, by discretizing equation (4) and the input U, the DSP controller can be realized more conveniently.
[0057] To explain further, Formula 4 is two formulas of the second-order generalized integral SOGI, that is, the externally sampled sinusoidal variable will obtain two signals with a phase difference of 90° through this formula, and has the characteristics of no delay and filtering. Although the conventional low-pass filter can filter, the signal is delayed, and the delay is unacceptable in the electronic load.
[0058] In formula (4), D(s) has a bandpass filter characteristic, Q(s) has a low-pass filter characteristic, k is the filter coefficient, and the Uq variable with reduced noise can be obtained by adjusting the k value.
[0059] Therefore, the real-time voltage U and feedback current i c By performing D(s) transformation as in Formula 4, the voltage and current after noise reduction are subjected to model calculation and closed-loop feedback to improve stability.
[0060] At this point, for this RC load simulation circuit, the known R and C values, the sampled U, the frequency-locked w, and the inverse of Uq obtained by the second-order generalized integral in equation (4) (i.e., jU in equation (3)) are substituted into equation (3) to obtain the current command i under the RC load model. c , as shown in the following formula (5):
[0061]
[0062] Similarly, see Figure 2The schematic diagram of an AC electronic simulation constant RL load circuit of an RLC electronic load control method suitable for sinusoidal current simulation is shown, which is an RL load model, wherein the measured AC source is e1, a simulated constant resistance resistor R and a simulated constant inductor L, and the AC power source e1 is connected in series with a simulated constant resistance resistor R and then in series with a simulated constant inductor L to form a closed simulation circuit. Assume that the voltage frequency of e1 is w and the circuit current is i L , then the current formula of the RL load model in the complex frequency domain that satisfies Ohm's law is:
[0063]
[0064] Where s is the complex variable in Laplace transform, and s=jw. Substituting s=jw into equation (7), we get:
[0065]
[0066] In formula (7), i L (jw) is the instantaneous value of current, abbreviated as i L , U(jw) is the instantaneous value of the external voltage e1, abbreviated as U; at the same time, multiply the numerator and denominator of the above formula by the conjugate complex number of the denominator, eliminate the imaginary part j in the denominator, and then slightly transform to obtain the calculation formula of the real-time current command:
[0067]
[0068] By substituting the voltage U of the external e1 into the second formula in equation (4), Uq is obtained, that is, -jU in equation (8) (-jU represents a signal with a lag of 90°).
[0069] At this point, for this RL load simulation circuit, the known R and L values, the sampling obtained U, the frequency-locked obtained w, and the Uq obtained by the second-order generalized integral in equation (4) (i.e. -jU in equation (8)) are substituted into equation (8) to obtain the current command i under the RC load model. L , as shown in the following formula (9):
[0070]
[0071] The key point of the present invention is to obtain the current command of the RC and RL load models through Ohm's law and four arithmetic operations in the complex frequency domain, and to predict the voltage lead required in the current command formula and filter the external voltage and feedback current through the second-order generalized integration algorithm, so as to improve the accuracy of voltage and current and ensure the dynamic index and steady-state performance of the system; the second-order generalized integration algorithm has a variety of improved types, which can filter out the DC component of the AC signal and improve the phase-locking accuracy. At the same time, the present invention proposes to obtain the angular frequency of the voltage source in combination with the phase-locking of the voltage source, and obtain the complex impedance of the RLC load through the angular frequency, and use the quotient of the instantaneous value of the voltage and the complex impedance as the current command of the electronic load. This method maintains the dynamics of the electronic load while taking into account the steady-state performance, and can greatly improve the performance index of the RLC electronic load.
[0072] Embodiment 2
[0073] An electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above-mentioned RLC electronic load control method applicable to sinusoidal current simulation, and the processor is configured to execute the program stored in the memory.
[0074] Embodiment 3
[0075] A storage medium stores a computer program, which, when executed by a processor, executes the steps of the above-mentioned RLC electronic load control method applicable to sinusoidal current simulation.
[0076] 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 RLC electronic load control method suitable for sinusoidal current simulation, characterized in that: The following steps are involved: Step S1, obtaining a current formula satisfying Ohm's law in a complex frequency domain by simulating a constant RC load and a constant RL load; Step S2, eliminating the imaginary part of the current formula obtained in step S1 and transforming it to obtain a calculation formula for the real-time current command; Step S3, using the second-order generalized integral SOGI algorithm to generate a 90° phase lag offset on the input AC sinusoidal signal, to obtain two orthogonal signals, one of which has the same amplitude and phase as the input signal; the other lags the input signal by 90°, and the inverse of the other lags the input signal by 90°; Step S4: Substitute the inverse value obtained by the second-order generalized integral in step S3 into the current command calculation formula obtained in step S2 to obtain the current command i under the simulated constant RC load model. c Or simulate the current command i under the constant RL load model L .
2. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 1, characterized in that: The simulated constant RC load circuit in step S1 includes an AC power supply e1, a simulated constant resistance resistor R, and a simulated constant capacitance capacitor C. The AC power supply e1 is connected in series with the simulated constant resistance resistor R and then connected in series with the simulated constant capacitance capacitor C to form a closed simulation circuit. Assume that the voltage frequency of e1 is w and the circuit current is i c , then there is a current formula that satisfies Ohm's law in the complex frequency domain: In formula (1), s is the complex variable introduced in the Laplace transform. According to the corresponding relationship between Laplace transform and Fourier transform, s=jw, and s=jw is substituted into formula (1), we get: In formula (2), i c (jw) is the instantaneous value of current, i c , U(jw) is the instantaneous value of the external voltage e1, which is U.
3. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 2, characterized in that: In step S2, the numerator and denominator of formula (2) are multiplied by the conjugate complex number of the denominator, and the imaginary part j in the denominator is eliminated, and then a calculation formula for the real-time current command is obtained by a slight transformation: The imaginary part jU of formula (3) is the voltage that leads the external voltage U by 90°, which is set as Uq. The imaginary part is Uq multiplied by a fixed multiple wC / (R 2 w 2 C 2 +1).
4. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 3 is characterized in that: The implementation formulas of the two variables of SOGI in step S3 are as follows: In formula (4), D(s) is the bandpass filter transfer function, Q(s) is the low-pass filter transfer function, and k is the filter coefficient.
5. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 4, characterized in that: In step S4, the known R and C values, the sampled U value, and the frequency-locked w are substituted into the formula (3) by taking the lead 90° voltage signal obtained by negating the second-order generalized integral in formula (4) to obtain the current command i under the RC load model: c , as shown in the following formula (5):
6. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 1, characterized in that: The simulated constant RL load circuit in step S1 includes an AC power supply e1, a simulated constant resistance resistor R, and a simulated constant inductor L. The AC power supply e1 is connected in series with the simulated constant resistance resistor R and then in series with the simulated constant inductor L to form a closed simulation circuit. Assume that the voltage frequency of e1 is w and the circuit current is i L , then there is a current formula that satisfies Ohm's law in the complex frequency domain: Where s is the complex variable in the Laplace transform, and s = jw. Substituting s = jw into equation (7), we get: In formula (7), i L (jw) is the instantaneous value of current, i L , U(jw) is the instantaneous value of the external voltage e1, which is U.
7. A RLC electronic load control method suitable for sinusoidal current simulation according to claims 4 and 6, characterized in that: In step S2, the numerator and denominator of formula (2) are multiplied by the conjugate complex number of the denominator, and the imaginary part j in the denominator is eliminated, and then a calculation formula for the real-time current command is obtained by a slight transformation: By substituting the voltage U of the external e1 into equation (4), we can obtain Uq, that is, -jU in equation (8), where -jU represents a signal with a lag of 90°.
8. The RLC electronic load control method applicable to sinusoidal current simulation according to claim 7, characterized in that:Substitute the known R and L values, the sampled U value, and the frequency-locked w into the 90° leading voltage signal obtained by inverting the second-order generalized integral in equation (4) and into equation (8) to obtain the current command i under the RL load model: L , as shown in the following formula (9):
9. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the RLC electronic load control method suitable for sinusoidal current simulation as described in any one of claims 1 to 8, and the processor is configured to execute the program stored in the memory.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the RLC electronic load control method suitable for sinusoidal current simulation as claimed in any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Control method of high-power RLC alternating-current electronic load
CN112838774A
Control method for improving dynamic performance of high-power direct-current electronic load
CN114545123A
Alternating current electronic load control method
CN117666347A
Current control method for electrical life alternating current solid-state load based on improved passive control
CN117826601A
Circuit structure for automatic switching far-end voltage detection of electronic load
CN219224909U
