Energy storage grid-connected test system and test method based on RT-LAB
By adding the FPGA board module to the RT-LAB simulation system and using the piecewise linear model for nonlinear component modeling, the problem of low simulation accuracy of the existing energy storage grid-connected test system is solved and higher simulation accuracy is achieved. and system authenticity.
Patent Information
- Application Number
- CN202211236710.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-10-10
AI Technical Summary
The existing energy storage grid-connected test system has low simulation accuracy and cannot accurately reflect the real operating status, resulting in differences with the actual operating status.
An energy storage grid-connected test system based on RT-LAB is used. By adding an FPGA board module to the RT-LAB simulation system, the nonlinear components are modeled using a piecewise linear model. The modeled piecewise linear component characteristics are modeled using a constant System matrix representation, combined with real-time simulator and controller, achieves higher simulation accuracy.
The simulation accuracy is improved, making the simulation results more consistent with the real operating status of the energy storage grid-connected system, achieving higher simulation accuracy and reliability.
Smart Images

Figure CN115562069B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy storage grid connection, and in particular to an energy storage grid connection test system based on RT-LAB and a test method thereof. Background Art
[0002] With my country's demand for carbon neutrality, the use of clean energy has become the current development trend, such as clean energy power generation technology represented by solar energy and wind energy. However, clean energy is very susceptible to the influence of temperature, light, climate, etc., resulting in intermittent and unstable power generation. The rapid development of energy storage technology provides a good way to solve the above problems, thereby reducing the impact of power generation systems on the power grid, achieving smooth regulation of output power, and improving power supply quality.
[0003] At present, the simulation of energy storage grid-connected test systems in China is only at the software stage, that is, technicians establish simulation models through the parameters of the energy storage grid-connected system, connect them in the simulation software, and then input the simulation results into the real equipment.
[0004] However, there is a certain degree of difference between the existing simulation system and the actual operating state of the grid-connected system, and the simulation accuracy is low. Summary of the invention
[0005] The embodiment of the present invention provides an energy storage grid-connected test system and a test method thereof based on RT-LAB to solve the problem of low simulation accuracy at present.
[0006] In a first aspect, an embodiment of the present invention provides an energy storage grid-connected test system based on RT-LAB, comprising:
[0007] Host simulator, RT-LAB simulation system and controller. RT-LAB simulation system includes real-time simulator, FPGA board module and interface module.
[0008] The upper simulation machine is used to establish the simulation model and transmit the simulation data to the real-time simulation machine;
[0009] The real-time simulator is used to receive simulation data, and after processing the simulation data through the FPGA board module, obtain analog signals of current and voltage, and transmit the analog signals to the controller; wherein the nonlinear elements in the FPGA board module are modeled using a piecewise linear model, and the characteristics of the modeled piecewise linear elements are represented by a constant system matrix;
[0010] The controller is used to process analog signals to obtain digital signals, and transmit the digital signals to the FPGA board module and the real-time simulator through the interface module.
[0011] In a possible implementation, the FPGA board module equates all reactive elements to discrete networks represented by resistors, equates the switch-on state of the switch device to inductance, and equates the switch-off state to capacitance;
[0012] The inductor and capacitor are discretized separately, and are represented by a current source and a resistor in parallel respectively.
[0013] In a possible implementation, in a discrete network, a piecewise linear element at any port is equivalent to a parallel structure of a resistor and a current source, and the conductance of the resistor is the only parameter that affects the system matrix.
[0014] In one possible implementation, the current source i sj for:
[0015] i Sj =γ j C j +δ j ;
[0016] Among them, C j For the jth modeled nonlinear element, it depends on all independent sources in the discrete network except the current source, γ j and δ j Is a fixed value.
[0017] In a possible implementation, the simulation model is an energy storage grid-connected system, and the topological structure of the energy storage grid-connected system includes an energy storage battery, a three-phase full-bridge inverter circuit, and an LCL filter circuit;
[0018] The direct current generated by the energy storage battery is processed by a three-phase full-bridge inverter circuit to generate three-phase alternating current, which is then filtered by an LCL filter circuit and connected to the grid.
[0019] In a possible implementation, the simulation data includes electrical parameters required for use in the simulation and a topological structure of the simulation model.
[0020] In a possible implementation, the controller is an energy storage converter embedded controller;
[0021] The interface module includes an analog interface and a digital interface. The analog interface of the RT-LAB simulation system is connected to the embedded controller of the energy storage converter and is used to send the three-phase voltage and current of the output node to the embedded controller of the energy storage converter.
[0022] The digital interface of the RT-LAB simulation system is connected to the embedded controller of the energy storage converter and is used for receiving control signals and switch signals of the embedded controller of the energy storage converter.
[0023] In a possible implementation, the upper simulation machine is also used to display the voltage and current waveforms obtained by simulation on the AC side.
[0024] In a second aspect, an embodiment of the present invention provides a test method for an energy storage grid-connected test system based on RT-LAB, comprising:
[0025] Setting simulation operating parameters of the simulation model and / or parameters of the controller;
[0026] According to the voltage and current of the controller displayed on the host computer, determine whether the energy storage grid-connected test system meets the grid-connected requirements.
[0027] In a possible implementation, the simulation operating condition parameters include at least one of the following: grid voltage, grid frequency, DC voltage, filter inductance, and filter capacitance;
[0028] The controller is an energy storage converter embedded controller, and the parameters of the energy storage converter embedded controller include a frequency filter coefficient and a proportional / integral coefficient.
[0029] The embodiment of the present invention provides an energy storage grid-connected test system and a test method thereof based on RT-LAB. By adding an FPGA board module to the RT-LAB simulation system, and modeling the nonlinear elements in the FPGA board module using a piecewise linear model, and the characteristics of the modeled piecewise linear elements using a constant system matrix, the RT-LAB simulation system can be more in line with the actual operating state of the energy storage grid-connected system, so that the simulation accuracy is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 It is a structural schematic diagram of an energy storage grid-connected test system based on RT-LAB provided in an embodiment of the present invention;
[0032] Figure 2 is a schematic diagram of the topological structure of the energy storage grid-connected system provided by an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram showing any one of the single-port piecewise linear units and the remaining part of the discrete network provided by the embodiment of the present invention;
[0034] Figure 4It is a physical structure diagram of an energy storage grid-connected test system based on RT-LAB provided in an embodiment of the present invention;
[0035] Figure 5 Is adopted Figure 4 Schematic diagram of simulation results of the test system in FIG.
[0036] Figure 6 Is adopted Figure 4 Comparison chart of the current results of the test system and the simulation using Simulink. DETAILED DESCRIPTION
[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0038] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0039] Most simulations of power systems are pure digital simulations, that is, technicians build simulation models, connect them in simulation software, and then input the simulation results into real devices. With the rise of smart grids, large-scale power electronic equipment has been applied to fields such as energy storage system grid connection, distributed power supply and power quality. The switching frequency of power electronic systems has also been continuously increased. In addition, due to the inaccuracy of mathematical models and the influence of on-site interference factors, the simulation results are often very different from the actual results. Therefore, pure digital simulation can no longer meet the needs of actual production and life.
[0040] In order to solve the problems in the prior art, an embodiment of the present invention provides an energy storage grid-connected test system based on RT-LAB and a test method thereof. Firstly, the energy storage grid-connected test system based on RT-LAB provided by an embodiment of the present invention is introduced.
[0041] A RT-LAB-based energy storage grid-connected test system, such as Figure 1 As shown, it includes a host simulation machine, an RT-LAB simulation system and a controller.
[0042] Among them, the RT-LAB simulation system includes a real-time simulator, an FPGA board module and an interface module. The upper simulator is used to establish a simulation model and transmit the simulation data to the real-time simulator. The real-time simulator is used to receive the simulation data, and after processing the simulation data through the FPGA board module, obtain the analog signal of current and voltage, and transmit the analog signal to the controller. Specifically, the nonlinear element in the FPGA board module is modeled using a piecewise linear model, and the characteristics of the piecewise linear element after modeling are represented by a constant system matrix. The controller is used to process the analog signal to obtain a digital signal, and transmit the digital signal to the FPGA board module and the real-time simulator through the interface module.
[0043] The RT-LAB simulation system is a real-time simulation framework software package, which is mainly used for semi-physical simulation. It is modeled through the modeling software carried by the upper simulation machine. The simulation model is run on the real-time simulation platform through the real-time simulation machine, and then the actual controller is combined with the RT-LAB simulation system to realize the real-time simulation of the energy storage grid-connected test system.
[0044] The FPGA board module is mainly responsible for the data transmission and calculation between the controller and the real-time simulator, as well as the operation of the model. The FPGA board module has higher design flexibility and faster calculation speed to meet the needs of high-speed real-time simulation. The FPGA board module also has freely configurable hardware logic circuits. Developers can modify the internal circuits of the FPGA board module according to their needs to achieve different functions. In addition, FPGA is a parallel computing device with faster data calculation and operation speed. Adding hardware links to the control or test loop is essentially closer to the real experiment, and it also solves the environmental constraints in the entire experiment, and has both authenticity and controllability.
[0045] In some embodiments, the simulation data includes electrical parameters required for use in the simulation and a topological structure of the simulation model.
[0046] The electrical parameters used in the simulation include: grid voltage, grid frequency, DC voltage, filter inductance and filter capacitance, and the frequency filter coefficient and proportional / integral coefficient of the controller.
[0047] In this embodiment, the simulation model is an energy storage grid-connected system, and the topological structure of the energy storage grid-connected system includes an energy storage battery, a three-phase full-bridge inverter circuit and an LCL filter circuit, such as Figure 2 The DC power generated by the energy storage battery is processed by the three-phase full-bridge inverter circuit to generate three-phase AC power, which is then filtered by the LCL filter circuit and connected to the grid.
[0048] In some embodiments, the controller is an energy storage converter embedded controller, which can implement the compilation of the main control algorithm code.
[0049] In this embodiment, the interface module includes an analog interface and a digital interface. The analog interface of the RT-LAB simulation system is connected to the energy storage converter embedded controller, and is used to send the three-phase voltage and current of the output node to the energy storage converter embedded controller. The digital interface of the RT-LAB simulation system is connected to the energy storage converter embedded controller, and is used to receive the control signal and the switch signal of the energy storage converter embedded controller.
[0050] In this embodiment, the upper simulation machine is also used to display the voltage and current waveforms obtained by simulation on the AC side.
[0051] In some embodiments, there are a large number of simulation tools in existing simulation software, such as Spice or Saber, which are equipped with detailed models to represent nonlinear devices. However, for optimization tasks that require repeated simulations, using general tools with complex nonlinear device models may result in long simulation time, inaccurate models, and convergence problems.
[0052] Therefore, the FPGA board module equates all reactive components to discrete networks represented by resistors, equates the switch-on state of the switch device to inductance, and the switch-off state to capacitance. The inductor and capacitor are discretized and represented by current source and resistor in parallel, respectively.
[0053] In this embodiment, by modeling the nonlinear elements in the FPGA board module using a piecewise linear model, the real-time simulation system can be made to be more in line with the actual operating state, thereby having better simulation accuracy and simulation results.
[0054] In this embodiment, it is assumed that the space defining the component characteristics is divided into several parts, and each part is linear. Each reactive component in the original network is replaced by its discrete time circuit model, the switch-on state is equivalent to a small inductor, and the switch-off state is equivalent to a small capacitor. The circuit consists of a resistor and a current source in parallel.
[0055] The inductance can be expressed as: I L (t) = I L.History (t-Δt)+G sj ·U L (t);
[0056] The discretization of capacitance can be expressed as: I C (t) = I CHistory (-Δt)+G sj ·U C (t);
[0057] It can be seen that after the inductance and capacitance are discretized, they can be expressed by a current source in parallel with a resistor, and the resistance admittance value is represented by G in the formula. sj express:
[0058] G sj =Δt / 2L=2C / Δt;
[0059] Consider an arbitrary one-port piecewise linear element, referred to as a PWL element, and denote the PWL element as j. Under a given state, the characteristics of the element are:
[0060] a j v j +b j i j =c j
[0061] where v j and i j is the voltage and current of the PWL element, and a j , b j and c j is a constant parameter for a given state.
[0062] In a discrete network, the PWL element at any port is equivalent to a parallel structure of a resistor and a current source, such as Figure 3 As shown, Figure 3 is a representation of an arbitrary one-port piecewise linear unit and the rest of the discrete network. The conductance G sj is a constant value, and as long as the current source i sj The component characteristics can be satisfied. Conductivity G sj It is the only parameter that affects the system matrix, so the system matrix is also constant and has nothing to do with the state of the PWL components.
[0063] How to choose the current source value to accurately meet the characteristics of any PWL component is as follows:
[0064] If the states of all PWL elements are known, the remainder of the discrete network can be expressed as:
[0065] A j v j +B j i j =C j ;
[0066] Among them, parameter A j and B j does not depend on the state of the PWL element, however, in representing the jth PWL element, the parameter C j Depends on the discrete network except the current source i sj All independent sources except
[0067] Assumption A j ,B j ,C j It is known that the current source i sj Need to meet:
[0068]
[0069] It can be seen from the above formula that the current source i sj is parameter C j A linear function of j Depends on other sources in the discrete network. The parameter γ j and δ j It is calculated only once at the beginning of the simulation and stored in a table for all PWL elements and all their states.
[0070] In some embodiments, the host simulation machine is a computer with Windows or Linux operating system installed, installed with software such as Matlab / simulink, RT-LAB, etc., loaded with the host computer monitoring interface and the energy storage system grid-connected model.
[0071] In this embodiment, the upper simulation machine and the real-time simulation machine are connected via Ethernet.
[0072] The real-time simulator is loaded with monitoring system programming software, which is a platform that can make the simulation model run in real time. It can also detect whether the algorithm is reasonable and realize real-time online compilation and modification.
[0073] The simulation steps of the real-time simulator are: first select the real-time simulator, then decompose the simulation model, then generate C code, compile the generated C code and transfer the compiled model.
[0074] The energy storage grid-connected test system provided by the present invention adds an FPGA board module to the RT-LAB simulation system, and the nonlinear elements in the FPGA board module are modeled using a piecewise linear model, and the characteristics of the modeled piecewise linear elements are represented by a constant system matrix, so that the RT-LAB simulation system can be more in line with the actual operating state of the energy storage grid-connected system, and the simulation accuracy is higher.
[0075] On the other hand, the present invention also provides a test method for an energy storage grid-connected test system based on RT-LAB, comprising:
[0076] Step S110: setting simulation operating parameters of the simulation model and / or parameters of the controller.
[0077] In some embodiments, the simulation operating parameters of the simulation model include at least one of the following: grid voltage, grid frequency, DC voltage, filter inductance, and filter capacitance.
[0078] Specifically, the DC voltage can be set to 800V, the grid voltage to 415V, the frequency to 50HZ, and the filter inductance to 5×10 -4 , filter capacitor 1×10 -4 .
[0079] In this embodiment, the controller is an energy storage converter embedded controller, and the parameters of the energy storage converter embedded controller include a frequency filter coefficient and a proportional / integral coefficient.
[0080] Step S120: Determine whether the energy storage grid-connected test system meets the grid-connected requirements based on the voltage and current of the controller displayed on the host computer.
[0081] By connecting the embedded controller of the energy storage converter to the RT-LAB simulation system, the test results can be closer to the actual working conditions.
[0082] By adding an FPGA board module to the RT-LAB simulation system, an FPGA-based simulation system was established. In the FPGA simulation system, the piecewise linear approximation method was used to model nonlinear components. The system matrix method that accurately supports the characteristics of any piecewise linear components was applied, so that the real-time simulation system can fit the actual operating state of the system and has very good simulation accuracy and simulation results.
[0083] In order to verify the accuracy of the energy storage grid-connected test system based on RT-LAB provided by the present invention, the following Figure 2 The topology of a storage grid-connected system is shown in Figure 1. The storage grid-connected system is simulated. Figure 4 shown.
[0084] Among them, the DC voltage is: 800V, the grid voltage is 415V, the frequency is 50HZ, and the filter inductance is 5×10 -4 , filter capacitor 1×10 -4 .
[0085] The simulation results of the AC side displayed in the host computer are as follows: Figure 5 As shown, the voltage and current waveforms can accurately reflect the control performance of the controller's voltage and current, and thus the performance of the entire energy storage grid-connected system.
[0086] Figure 6This is a comparison chart of the current simulation results using this system and using Simulink. The cross symbol in the figure is the real-time simulation result of this system, and the dotted line is the Simulink digital simulation result. It can be seen from the figure that this system has similar simulation results compared with the pure digital simulation of Simulink, which reflects the feasibility and accuracy of this system.
[0087] The present invention uses the RT-LAB platform to build a multi-segment linear network simulation system based on FPGA, and uses a system matrix method that accurately supports the characteristics of any multi-segment linear components, providing a safe and reliable platform for the FPGA simulation system. In order to verify the effectiveness of the system, a semi-physical simulation system for energy storage grid connection was established, and the accuracy of the system was proved through experimental verification. Therefore, compared with the existing switching circuit power electronic simulator, the modeling accuracy can be improved, while maintaining the speed advantage compared with the general simulation tool.
[0088] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0089] The embodiments described above 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. Such 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, and should all be included in the protection scope of the present invention.
Claims
1. An energy storage grid-connected test system based on RT-LAB, It is characterized in that include: A host simulator, an RT-LAB simulator and a controller, wherein the RT-LAB simulator includes a real-time simulator, an FPGA board module and an interface module; The upper simulation machine is used to establish a simulation model and transmit simulation data to the real-time simulation machine; The real-time simulator is used to receive the simulation data, and after processing the simulation data through the FPGA board module, obtain analog signals of current and voltage, and transmit the analog signals to the controller; wherein, the nonlinear elements in the FPGA board module are modeled using a piecewise linear model, and the characteristics of the piecewise linear elements after modeling are represented by a constant system matrix; the FPGA board module equates all reactive elements to discrete networks represented by resistors, and the switch-on state of the switch device is equivalent to an inductor, and the switch-off state is equivalent to a capacitor; the inductor and the capacitor are discretized respectively, and the inductor and the capacitor are represented by a current source and a resistor in parallel respectively; in a discrete network, the piecewise linear element of any port is equivalent to a parallel structure of a resistor and a current source, and the conductance of the resistor is the only parameter affecting the system matrix; The controller is used for processing the analog signal to obtain a digital signal, and transmitting the digital signal to the FPGA board module and the real-time simulator through the interface module.
2. The energy storage grid-connected test system according to claim 1, It is characterized in that The current source i sj for: I Sj =c j C j +d j ; Among them, C j For the jth modeled nonlinear element, it depends on all independent sources in the discrete network except the current source, γ j and δ j Is a fixed value.
3. The energy storage grid-connected test system according to claim 1, It is characterized in that The simulation model is an energy storage grid-connected system, and the topological structure of the energy storage grid-connected system includes an energy storage battery, a three-phase full-bridge inverter circuit and an LCL filter circuit; The direct current generated by the energy storage battery is processed by a three-phase full-bridge inverter circuit to generate three-phase alternating current, and the three-phase alternating current is filtered by an LCL filter circuit and then connected to the power grid.
4. The energy storage grid-connected test system according to claim 3, It is characterized in that The simulation data includes electrical parameters required for use in the simulation and the topological structure of the simulation model.
5. The energy storage grid-connected testing system according to claim 1, It is characterized in that The controller is an energy storage converter embedded controller; The interface module includes an analog interface and a digital interface, and the analog interface of the RT-LAB simulation system is connected to the energy storage converter embedded controller, and is used to send the three-phase voltage and current of the output node to the energy storage converter embedded controller; The digital interface of the RT-LAB simulation system is connected to the embedded controller of the energy storage converter and is used for receiving the control signal and the switch signal of the embedded controller of the energy storage converter.
6. The energy storage grid-connected testing system according to claim 1, It is characterized in that The upper simulation machine is also used to display the voltage and current waveforms obtained by simulation on the AC side.
7. A test method for the energy storage grid-connected test system according to any one of claims 1 to 6, It is characterized in that include: Setting simulation operating parameters of the simulation model and / or parameters of the controller; According to the voltage and current of the controller displayed on the host computer, it is determined whether the energy storage grid-connected test system meets the grid-connected requirements.
8. The test method of the energy storage grid-connected test system according to claim 7, It is characterized in that The simulation operating condition parameters include at least one of the following: grid voltage, grid frequency, DC voltage, filter inductance, and filter capacitance; The controller is an energy storage converter embedded controller, and the parameters of the energy storage converter embedded controller include a frequency filter coefficient and a proportional / integral coefficient.
