Micro-grid rcp semi-physical simulation platform and method
Patent Information
- Application Number
- CN202311379649.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2043-10-24
AI Technical Summary
上述两件专利都是通过仿真模拟微电网的真实运行环境来监测微电网的状态,但是不能解决在微电网各个分布式电源进行入网时引起的电网稳定性震荡和由于入网电源参数与微电网中电网参数不匹配引起的电路损坏的问题,同时也没有考虑在各个分布式电源入网时的成本最小化问题
[0033]与现有技术相比,本发明的有益效果至少如下所述:
Smart Images

Figure CN117424277B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and more specifically to a hardware-in-the-loop (HIP) simulation platform and method for microgrids. Background Technology
[0002] With the rapid growth of global electricity demand, power generation modes are becoming increasingly diversified. Microgrids, as one of the emerging power generation modes in recent years, have advantages such as low cost, high power generation efficiency, and high reliability. Against the backdrop of China's rapid economic development and the continuous introduction of favorable industry policies, the penetration rate of microgrids is gradually increasing, and microgrid testing and simulation technologies are also gradually developing. For example, Chinese patent CN104330980A discloses a microgrid simulation and testing system based on RT-LAB. This invention discloses a microgrid simulation and testing system based on RT-LAB, which includes: an RT-LAB simulation system for building microgrid and distribution network simulation models and providing a real-time simulation environment; a DSP physical system for generating control signals for the converter circuit built in the simulation system; a power amplifier for connecting the RT-LAB simulation system and the microgrid physical simulation system; a microgrid physical simulation system for forming a digital physical microgrid with the RT-LAB simulation system and receiving monitoring and scheduling control from a monitoring system; and a microgrid monitoring system for monitoring the DSP physical system, the microgrid digital simulation model, and the physical simulation system. This invention establishes microgrid and distribution network simulation models on RT-LAB, combined with a microgrid physical simulation system, enabling realistic simulation of the operating states of power systems and microgrids. It boasts advantages such as real-time simulation, online parameter adjustment, rich interfaces, diverse test types, flexible test mode switching, simple operation, safety, reliability, high efficiency, and economy. For example, WO2018014450A1, a dynamic simulation test platform for realistic microgrid operation based on RT-LAB, uses the HYPERSIM software system to build a distribution network simulation model and the eMEGAsim software system to build a microgrid simulation model composed of micro-sources such as photovoltaics, energy storage, and hydrogen fuel cells. It collects the output quantities of each micro-source in the physical microgrid system as input quantities to the microgrid simulation model, giving the simulation system realistic microgrid operating characteristics. It fully considers the shortcomings of digital simulation, providing a combination of digital and physical methods, introducing the operating characteristics of the physical microgrid system into the simulator, realizing the realism of the overall microgrid operating characteristics, and providing a more realistic environment for equipment testing and simulation analysis. Both of the above patents monitor the state of a microgrid by simulating the real operating environment of the microgrid. However, they cannot solve the problems of grid stability oscillations caused by the connection of various distributed power sources to the grid, or circuit damage caused by the mismatch between the parameters of the connected power sources and the grid parameters in the microgrid. They also do not consider the cost minimization problem when various distributed power sources are connected to the grid. Summary of the Invention
[0003] To better address the above problems, this invention provides a hardware-in-the-loop (HIP) simulation method for microgrids, the method comprising:
[0004] Step S1: The data collection unit periodically collects the grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the grid parameters and environmental parameters respectively include the collection time;
[0005] Step S2: Based on the correspondence between the power consumption of the load and time in the first time period in the power grid parameters, the environmental parameters in the first time period and the environmental parameters in the second time period, predict and draw the load power consumption curve in the second time period.
[0006] Step S3: Calculate the energy consumption rate of the energy-consuming distributed power source in the microgrid and the power generation rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and formulate an access plan for the distributed power source in the microgrid based on the load power consumption curve in the second time period, the energy consumption rate of the energy-consuming distributed power source, the power storage capacity and power generation rate of the non-energy-consuming distributed power source.
[0007] Step S4: Adjust the access of distributed power sources in the microgrid through the access plan, and establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit;
[0008] Step S5: Simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model, obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected.
[0009] As a preferred embodiment of the present invention, step S2 includes the following steps:
[0010] Step S21: Obtain the power consumption of all loads of the microgrid at each moment in the first time period in the power grid parameters, and draw the load power consumption curve in the first time period based on the power consumption of all loads at each moment.
[0011] Step S22: Compare the environmental parameters in the first time period and the environmental parameters in the second time period, and obtain a first comparison result. Based on the first comparison result, obtain the loads in the microgrid affected by the first comparison result, and obtain the power consumption change of the loads based on the first comparison result.
[0012] Step S23: Overlay the load power consumption curve and the power consumption change in the first time period in chronological order to obtain the load power consumption curve in the second time period.
[0013] As a preferred embodiment of the present invention, step S3 further includes the following steps:
[0014] Step S31: Calculate the energy consumption rate of each energy-consuming distributed power source by the power consumption of each energy-consuming distributed power source and the energy consumption corresponding to the power consumption in the power grid parameters;
[0015] Step S32: Calculate the power productivity of the non-energy-consuming distributed power source at each time in the second time period based on the environmental parameters in the second time period, and sort the first power sources with a power storage capacity greater than the first power quantity in the non-energy-consuming distributed power source according to the power productivity from largest to smallest, and add them to the first queue to be connected to the network.
[0016] Step S33: Based on the load power consumption curve within the second time period, obtain a first sub-time period where the power consumption is less than or equal to a first threshold. Within the first sub-time period, when the sum of the power productivity of the first power sources in the first grid connection queue is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period, select N first power sources from the first grid connection queue in descending order of power productivity to supply power to the microgrid, wherein the sum of the power productivity of the N first power sources is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period. When the sum of the power productivity of the first power sources in the first grid connection queue is less than the power consumption value of the load at the corresponding time within the first sub-time period, use the first power sources in the first grid connection queue and select M energy-consuming distributed power sources in ascending order of energy consumption rate to jointly supply power, wherein the first power sources and the M energy-consuming distributed power sources can meet the power consumption value at the corresponding time within the first sub-time period.
[0017] As a preferred technical solution of the present invention, a second sub-time period with power consumption greater than the first threshold is obtained based on the load power consumption curve during the second time period. During the second sub-time period, when the sum of the power production of all the first power sources in the first grid-connection queue and the power production of all the energy-consuming distributed power sources is less than the power consumption value of the load at the corresponding time during the second sub-time period, the microgrid is powered by the first power source, the power storage unit of the remaining non-energy-consuming distributed power sources excluding the first power source, and the energy-consuming distributed power sources. When the sum of the power production of the first power source in the first grid-connection queue and the power production of the energy-consuming distributed power sources is greater than or equal to the power consumption value of the load at the corresponding time during the second sub-time period, the microgrid is powered by the first power source and the energy-consuming distributed power sources.
[0018] As a preferred embodiment of the present invention, step S5 further includes the following steps:
[0019] Step S51: Before the distributed power source to be connected to the microgrid, the distributed power source to be connected to the simulation model is connected first.
[0020] Step S52: Simulate the grid parameters of the microgrid through the simulation model, and obtain the maximum matching load value and the corresponding output power parameters of the distributed power source to be connected by adjusting the load value of the load simulation unit and the parameters of the distributed power source to be connected, and send the maximum matching load value and the corresponding output power parameters to the management unit of the distributed power source to be connected.
[0021] Step S53: The management unit adjusts the distributed power source to be connected according to the power parameters, and applies to the microgrid for load allocation according to the maximum matching load value.
[0022] As a preferred embodiment of the present invention, step S5 further includes:
[0023] After determining the power parameters and maximum matching load value of the distributed power source to be connected through step S5, the power parameters and maximum matching load value of the distributed power source to be connected can be simulated, and the simulated distributed power source to be connected can be connected to the microgrid for a third time period. The power parameters of the second power source with abnormal power parameters can be obtained through the grid parameters of the third time period, and the second power source can be adjusted to island mode. The grid parameters of the current microgrid can be re-obtained. At the same time, the second power source is used as the distributed power source to be connected and steps S51-S53 are repeated to re-obtain the maximum matching load value and corresponding power parameters of the second power source. The parameters and maximum matching load value of the second power source are adjusted through the management unit of the second power source. This process is repeated until the microgrid can operate stably.
[0024] As a preferred embodiment of the present invention, step S6 is further included after step S5:
[0025] The management unit adjusts the power parameters of the distributed power source to be connected, and applies for load allocation from the microgrid based on the maximum matching load value, and then connects the adjusted distributed power source to the microgrid.
[0026] As a preferred embodiment of the present invention, the first time period and the second time period are greater than or equal to 1 day and less than or equal to 3 days, wherein the second time period is adjacent to the first time period and the second time period is located after the first time period.
[0027] This invention also provides a hardware-in-the-loop (HIL) simulation platform for microgrid RCP, the platform being used to implement the HIL simulation method for microgrid RCP as described above, the platform comprising:
[0028] A data collection unit is used to periodically collect power grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the power grid parameters and the environmental parameters respectively include the collection time;
[0029] The plotting unit is used to predict and plot the load power consumption curve in the second time period based on the correspondence between the power consumption of the load and time in the first time period, the environmental parameters in the first time period, and the environmental parameters in the second time period.
[0030] The allocation unit is used to calculate the energy consumption rate of the energy-consuming distributed power source in the microgrid and the power production rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and to formulate an access plan for the distributed power source in the microgrid based on the load power consumption curve, the energy consumption rate of the energy-consuming distributed power source, the power storage capacity and power production rate of the non-energy-consuming distributed power source in the second time period.
[0031] The model creation unit is used to adjust the access of distributed power sources in the microgrid through the access plan, and to establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit.
[0032] The simulation unit is used to simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model, obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected.
[0033] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0034] This invention can acquire the grid parameters and environmental parameters of the microgrid through a data collection unit, laying the foundation for obtaining the load power consumption curve of the grid. By plotting the load power consumption curve in the second time period, in the first sub-time period when the power consumption is less than the first threshold, since the load energy consumption in the first sub-time period is relatively small, it can be determined whether the non-energy-consuming distributed power sources of the first power source in the first grid connection queue can meet the power supply demand. If they cannot meet the demand, then energy-consuming distributed power sources can be used to supplement the supply. When selecting the first power source and energy-consuming distributed power sources for power supply, distributed power sources with high power productivity in the first power source have higher priority, and distributed power sources with low energy consumption rate in the energy-consuming distributed power sources have higher priority. This not only meets the power supply demand of the microgrid but also ensures that the cost is minimized, making it more economical and applicable. In the second sub-time period when the power consumption is greater than or equal to the first threshold, since the load power consumption in the second sub-time period is relatively large and the environmental parameters have changed, some non-energy-consuming distributed power sources cannot output electricity. Yes, relying solely on the aforementioned primary power source and energy-consuming distributed power sources may not be sufficient to meet the power supply needs of the microgrid. Therefore, it is necessary to first determine whether the power productivity of the primary power source and the sum of its productivity with that of the energy-consuming distributed power sources can meet the power supply needs of the microgrid. If they can, the microgrid is supplied with power through the primary power source and non-energy-consuming distributed power sources. If they cannot, the microgrid is supplied with power through the primary power source, its corresponding energy storage unit, and non-energy-consuming distributed power sources, thus minimizing costs while meeting power supply needs. When adjusting the access of distributed power sources in the microgrid through the aforementioned access plan, a simulation model is established using a simulation unit based on the microgrid's distribution diagram, grid parameters, the location of the distributed power sources to be accessed, and the parameters of the distributed power sources to be accessed. This provides the conditions for simulating the adjustment of the distributed power sources to be accessed and the unstable secondary power source through the aforementioned simulation model. Through the cooperation of the above technical solutions, not only is cost minimized, but the stability of the entire microgrid is also ensured, and the damage to the grid caused by directly accessing the distributed power sources to be connected to the grid is reduced. Attached Figure Description
[0035] Figure 1 This is a flowchart of a hardware-in-the-loop (HIL) simulation method for microgrids according to the present invention;
[0036] Figure 2 This is a structural diagram of a microgrid RCP semi-physical simulation platform according to the present invention. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0038] This invention provides a hardware-in-the-loop (HIP) simulation method for microgrids, such as... Figure 1 As shown, the method includes:
[0039] Step S1: The data collection unit periodically collects the grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the grid parameters and environmental parameters respectively include the collection time;
[0040] Specifically, the aforementioned data collection unit can acquire the grid parameters and environmental parameters of the microgrid. The communication unit is implemented via RCP. The grid parameters can be obtained from the microgrid's storage unit, including: the power consumption of the load, the voltage and current of each distributed power source, and the corresponding load. The environmental parameters can be obtained from weather forecasts or other forecasting platforms, including temperature, precipitation, and illuminance. Both the grid parameters and environmental parameters include the time of acquisition. This technical solution lays the foundation for obtaining the load power consumption curve of the grid.
[0041] Step S2: Based on the correspondence between the power consumption of the load and time in the first time period in the power grid parameters, the environmental parameters in the first time period and the environmental parameters in the second time period, predict and draw the load power consumption curve in the second time period.
[0042] Specifically, the second time period is a future period adjacent to the first time period. The first and second time periods are of equal length, and their values range from 1 day to 3 days. A load power consumption curve is plotted based on the correlation between load power consumption and time within the first time period. The load power consumption change is obtained based on the change in environmental parameters within the second time period relative to the first time period. This change is then overlaid on the load power consumption curve within the first time period to obtain the load power consumption curve within the second time period. For example, if the temperature rises above 30 degrees Celsius within the second time period compared to the first time period, the power consumption of cooling equipment such as air conditioners increases during the operating period. The environmental parameters within the second time period can be obtained through weather forecasts or other forecasting platforms. This technical solution accurately obtains the load power consumption curve within the second time period, providing a basis for further distributing distributed power sources to the microgrid.
[0043] Step S3: Calculate the energy consumption rate of the energy-consuming distributed power source in the microgrid and the power generation rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and formulate an access plan for the distributed power source in the microgrid based on the load power consumption curve in the second time period, the energy consumption rate of the energy-consuming distributed power source, the power storage capacity and power generation rate of the non-energy-consuming distributed power source.
[0044] Specifically, the energy consumption rate of the distributed power source is obtained by comparing the power consumption value of the distributed power source within a predetermined time with the corresponding energy consumption value, and by calculating the ratio between the energy consumption value and the power consumption value. For example, if a diesel generator consumes 500Wh of electricity in 1 hour, that is, the amount of diesel fuel consumed is 10 liters, then the energy consumption rate of the diesel generator is 10 / 500. The productivity of the aforementioned non-energy-consuming power source is the average power generation per unit time, which is 1 minute. When the energy storage capacity of the aforementioned non-energy-consuming distributed power source is greater than a first energy level, it is designated as the first power source. Power sources are added to the first grid-connection queue according to their energy productivity from highest to lowest. In the load power consumption curve during the second time period, in the first sub-time period where the power consumption is less than the first threshold, since the load energy consumption is relatively low, it can be first determined whether the non-energy-consuming distributed power source in the first grid-connection queue can meet the power supply demand. If it cannot, then energy-consuming distributed power sources are considered for supplementation. When selecting the first power source and energy-consuming distributed power sources for power supply, distributed power sources with higher energy productivity among the first power sources have higher priority, and distributed power sources with lower energy consumption rates among the energy-consuming distributed power sources have higher priority. This technical solution not only meets the power supply demand of the microgrid but also ensures minimal cost. The system is designed to be more economical and practical. In the load power consumption curve during the second time period, during the second sub-time period when the power consumption is greater than or equal to the first threshold, the load power consumption is relatively large. For example, on summer nights, the power consumption will increase dramatically due to the use of air conditioning and various power-consuming equipment. At this time, due to changes in environmental parameters, some non-energy-consuming distributed power sources cannot output power. Therefore, the power supply demand of the microgrid may not be met by the first power source and the energy-consuming distributed power source alone. In view of this, it is necessary to first determine whether the power production of the first power source and the sum of the power production of the energy-consuming distributed power source within the preset time period can meet the power supply demand of the microgrid. If it can, the microgrid is powered through the first power source and the non-energy-consuming distributed power source. If it cannot, the microgrid is powered through the first power source, the power storage unit corresponding to the first power source, and the non-energy-consuming distributed power source, thereby minimizing costs while meeting the power supply demand.
[0045] Step S4: Adjust the access of distributed power sources in the microgrid through the access plan, and establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit;
[0046] Specifically, when adjusting the access of distributed power sources in the microgrid through the above-mentioned access plan, the simulation unit establishes the above-mentioned simulation model based on the distribution diagram of the microgrid, grid parameters, the location of the distributed power source to be connected, and the parameters of the distributed power source to be connected. The above-mentioned technical solution provides the conditions for simulating the adjustment of the distributed power source to be connected and unstable distributed power sources in the microgrid through the above-mentioned simulation model, thereby ensuring the stability of the entire microgrid and reducing the damage to the grid caused by directly connecting the distributed power source to be connected.
[0047] Step S5: Simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model, obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected.
[0048] Specifically, the microgrid is simulated using the aforementioned simulation model, and the distributed power sources to be connected are integrated. The maximum matching load and corresponding power parameters are obtained by adjusting the parameters and load of the distributed power sources to be connected. Simultaneously, the distributed power sources to be connected are simulated using the aforementioned simulation model and integrated into the microgrid. Unstable distributed power sources in the microgrid are adjusted to islanded mode, and the grid parameters of the microgrid are re-acquired. The microgrid includes the distributed power sources to be connected to the grid simulated by the simulation unit. The grid parameters of the microgrid are simulated using the simulation model, and the unstable distributed power sources are integrated. The maximum matching load and power parameters are obtained by adjusting the parameters of the unstable distributed power sources. The adjusted unstable distributed power sources are then re-integrated into the microgrid, thereby ensuring the stability of the microgrid.
[0049] Further, step S2 includes the following steps:
[0050] Step S21: Obtain the power consumption of all loads of the microgrid at each moment in the first time period in the power grid parameters, and draw the load power consumption curve in the first time period based on the power consumption of all loads at each moment.
[0051] Step S22: Compare the environmental parameters in the first time period and the environmental parameters in the second time period, and obtain a first comparison result. Based on the first comparison result, obtain the loads in the microgrid affected by the first comparison result, and obtain the power consumption change of the loads based on the first comparison result.
[0052] Step S23: Overlay the load power consumption curve and the power consumption change in the first time period in chronological order to obtain the load power consumption curve in the second time period.
[0053] Specifically, the load power consumption curve for the first time period is plotted by mapping the total load power consumption of the grid parameters to time within the first time period. Since the first and second time periods are adjacent and of the same duration, and environmental parameters for the second time period can be obtained from weather forecasts or other forecasting platforms, the environmental parameters for the first and second time periods are compared to obtain the change in environmental parameters, which is the first comparison result mentioned above. The change in power consumption corresponding to the change in environmental parameters is obtained by mapping the change in environmental parameters to load power consumption. At the same time, the change in power consumption is superimposed on the load power consumption curve for the first time period in chronological order to obtain the load power consumption curve for the second time period, providing a basis for further allocating distributed power sources to the microgrid.
[0054] Furthermore, step S3 also includes the following steps:
[0055] Step S31: Calculate the energy consumption rate of each energy-consuming distributed power source by the power consumption of each energy-consuming distributed power source and the energy consumption corresponding to the power consumption in the power grid parameters;
[0056] Specifically, by obtaining the energy consumption and electricity consumption of distributed energy sources within a predetermined time period, and calculating the ratio between the energy consumption and electricity consumption, the energy consumption rate of the distributed energy sources is obtained. The electricity consumption is equal to the electricity output of the distributed energy sources. This technical solution can obtain the energy consumption rate of each distributed energy source, laying the foundation for further allocating grid connection order based on the energy consumption rate of the distributed energy sources, thereby achieving the goal of minimizing costs.
[0057] Step S32: Periodically calculate the power productivity of the non-energy-consuming distributed power source at each time in the second time period based on the environmental parameters in the second time period, and sort the first power sources with a power storage capacity greater than the first power source in the non-energy-consuming distributed power source according to the power productivity from large to small, and add them to the first queue to be connected to the grid.
[0058] Specifically, the power productivity of non-energy-consuming distributed power sources during the second time period is calculated periodically based on environmental parameters. Since the power output of non-energy-consuming distributed power sources is highly dependent on environmental factors, they cannot continue to generate electricity once environmental factors fail to meet power generation requirements. To meet the power supply needs during periods when the power output of non-energy-consuming distributed power sources is low and power consumption is high due to changes in environmental factors, when using non-energy-consuming distributed power sources to supply power to the microgrid, priority is given to using non-energy-consuming distributed power sources with a power storage capacity greater than the first power storage capacity. Through the above technical solution, the first power source with a power storage capacity greater than the first power storage capacity in different time periods can be dynamically obtained, and the first queue of the first power sources to be connected to the grid can be obtained by sorting the power productivity from large to small, providing a basis for further reducing power supply costs.
[0059] Step S33: Based on the load power consumption curve within the second time period, obtain a first sub-time period where the power consumption is less than or equal to a first threshold. Within the first sub-time period, when the sum of the power productivity of the first power sources in the first grid connection queue is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period, select N first power sources from the first grid connection queue in descending order of power productivity to supply power to the microgrid, wherein the sum of the power productivity of the N first power sources is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period. When the sum of the power productivity of the first power sources in the first grid connection queue is less than the power consumption value of the load at the corresponding time within the first sub-time period, use the first power sources in the first grid connection queue and select M energy-consuming distributed power sources in ascending order of energy consumption rate to jointly supply power, wherein the first power sources and the M energy-consuming distributed power sources can meet the power consumption value at the corresponding time within the first sub-time period.
[0060] Specifically, since the load energy consumption is relatively small in the first sub-time period, it can be determined whether the non-energy-consuming distributed power sources of the first power source in the first grid connection queue can meet the power supply demand. When the sum of the power productivity of the first power sources is greater than or equal to the power consumption value of the load at the corresponding time in the first sub-time period, the power supply demand is met, and the microgrid can be powered only by the non-energy-consuming distributed power sources. When the sum of the power productivity of the first power sources is less than the power consumption value of the load at the corresponding time in the first sub-time period, the power consumption difference obtained by subtracting the sum of the power productivity of the first power sources at the corresponding time from the power consumption value of the microgrid is used to supply power through energy-consuming distributed power sources. Furthermore, energy-consuming distributed power sources are selected according to the energy consumption rate from low to high, which not only meets the energy consumption of the microgrid but also saves costs, making it more economical and practical.
[0061] Further, step S33 also includes: obtaining a second sub-time period with power consumption greater than the first threshold based on the load power consumption curve within the second time period; within the second sub-time period, when the sum of the power production of all the first power sources in the first grid-connection queue and the power production of all the energy-consuming distributed power sources is less than the power consumption value of the load at the corresponding time within the second sub-time period, the microgrid is powered by the first power source, the power storage unit of the remaining energy-consuming distributed power sources excluding the first power source, and the energy-consuming distributed power sources; when the sum of the power production of the first power sources in the first grid-connection queue and the power production of the energy-consuming distributed power sources is greater than or equal to the power consumption value of the load at the corresponding time within the second sub-time period, the microgrid is powered by the first power source and the energy-consuming distributed power sources.
[0062] Specifically, during the second sub-time period when the power consumption is greater than or equal to the first threshold, the load power consumption is relatively high. For example, on summer nights, the power consumption increases dramatically due to the use of air conditioning and various power-consuming devices. At this time, due to changes in environmental parameters, some non-energy-consuming distributed power sources cannot output power. Therefore, relying solely on the first power source and energy-consuming distributed power sources may not be sufficient to meet the power supply needs of the microgrid. In view of this, it is necessary to first determine whether the power production of the first power source and the sum of its production with that of the energy-consuming distributed power sources can meet the power supply needs of the microgrid at the corresponding time. If it can, the microgrid is powered through the first power source and non-energy-consuming distributed power sources. If it cannot, the microgrid is powered through the power storage units corresponding to the first power source and non-energy-consuming distributed power sources, as well as the energy-consuming distributed power sources, while minimizing costs while meeting the power supply needs.
[0063] Furthermore, step S5 also includes the following steps:
[0064] Step S51: Before the distributed power source to be connected to the microgrid, the distributed power source to be connected to the simulation model is connected first.
[0065] Step S52: Simulate the grid parameters of the microgrid through the simulation model, and obtain the maximum matching load value and the corresponding output power parameters of the distributed power source to be connected by adjusting the load value of the load simulation unit and the parameters of the distributed power source to be connected, and send the maximum matching load value and the corresponding output power parameters to the management unit of the distributed power source to be connected.
[0066] Step S53: The management unit adjusts the distributed power source to be connected according to the power parameters, and applies to the microgrid for load allocation according to the maximum matching load value.
[0067] Specifically, to prevent irreversible damage to the distributed power source due to uncertain power parameters and matching loads when it is connected to the grid, resulting in untimely parameter adjustments, a simulation unit is used to simulate the parameters of a microgrid. The distributed power source is then connected to the simulated microgrid. The load unit is used to obtain the maximum matching load of the distributed power source and the corresponding power parameters. This maximum matching load and corresponding power parameters are then sent to the management unit of the distributed power source. The management unit adjusts the parameters of the distributed power source, thereby improving its stability when connected to the grid.
[0068] Furthermore, step S5 also includes:
[0069] After determining the power parameters and maximum matching load value of the distributed power source to be connected through step S5, the power parameters and maximum matching load value of the distributed power source to be connected can be simulated, and the simulated distributed power source to be connected can be connected to the microgrid for a third time period. The power parameters of the second power source with abnormal power parameters can be obtained through the grid parameters of the third time period, and the second power source can be adjusted to island mode. The grid parameters of the current microgrid can be re-obtained. At the same time, the second power source is used as the distributed power source to be connected and steps S51-S53 are repeated to re-obtain the maximum matching load value and corresponding power parameters of the second power source. The parameters and maximum matching load value of the second power source are adjusted through the management unit of the second power source. This process is repeated until the microgrid can operate stably.
[0070] Specifically, to prevent oscillations or even damage to the distributed power sources in the microgrid when they are connected, the power parameters of the distributed power sources are simulated to simulate their connection to the microgrid for a third time period, which is less than or equal to 0.5 seconds. Due to the short duration, this not only detects the second power source with abnormal power parameters but also prevents damage to it. The second power source is then adjusted to islanded mode, and the current microgrid parameters are reacquired. Steps S51-S53 are repeated to reacquire the maximum matching load value and corresponding power parameters of the second power source, ensuring that the second power source matches the normal operation of the current microgrid and guarantees the stable operation of the entire microgrid.
[0071] Furthermore, step S5 is followed by step S6:
[0072] The management unit adjusts the power parameters of the distributed power source to be connected, and applies for load allocation from the microgrid based on the maximum matching load value, and then connects the adjusted distributed power source to the microgrid.
[0073] Furthermore, the first time period and the second time period are greater than or equal to 1 day and less than or equal to 3 days, wherein the second time period is adjacent to the first time period and the second time period is located after the first time period.
[0074] This invention also provides a hardware-in-the-loop (HIL) simulation platform for microgrid RCP, which is used to implement the aforementioned hardware-in-the-loop (HIL) simulation method for microgrid RCP. Figure 2 As shown, the simulation platform includes:
[0075] The data collection unit is used to periodically collect the grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the grid parameters and the environmental parameters respectively contain corresponding time information;
[0076] A communication unit is used for data communication between the data collection unit and the microgrid;
[0077] The plotting unit is used to predict and plot the load power consumption curve in the second time period based on the correspondence between the power consumption of the load and time in the first time period, the environmental parameters in the first time period, and the environmental parameters in the second time period.
[0078] The allocation unit is used to calculate the energy consumption rate of the energy-consuming distributed power source in the microgrid and the power production rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and to formulate an access plan for the distributed power source in the microgrid based on the load power consumption curve, the energy consumption rate of the energy-consuming distributed power source, the power storage capacity and power production rate of the non-energy-consuming distributed power source in the second time period.
[0079] The model creation unit is used to adjust the access of distributed power sources in the microgrid through the access plan, and to establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit.
[0080] The simulation unit is used to simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model, obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected.
[0081] In summary, this invention can acquire the grid parameters and environmental parameters of the microgrid through the data collection unit, laying the foundation for obtaining the load power consumption curve of the grid. By plotting the load power consumption curve in the second time period, in the first sub-time period where the power consumption is less than the first threshold, since the load energy consumption in the first sub-time period is relatively small, it can be determined whether the non-energy-consuming distributed power sources of the first power source in the first grid-connected queue can meet the power supply demand. If they cannot meet the demand, then energy-consuming distributed power sources can be used to supplement the supply. When selecting the first power source and energy-consuming distributed power sources for power supply, distributed power sources with high power productivity in the first power source have higher priority, and distributed power sources with low energy consumption in the energy-consuming distributed power sources have higher priority. This not only meets the power supply demand of the microgrid but also ensures cost minimization, making it more economical and applicable. In the second sub-time period where the power consumption is greater than or equal to the first threshold, since the load power consumption in the second sub-time period is relatively large and the environmental parameters have changed, some non-energy-consuming distributed power sources cannot supply power. The power generation from the first power source and the energy-consuming distributed power sources alone may not be sufficient to meet the power supply needs of the microgrid. Therefore, it is necessary to first determine whether the power productivity of the first power source and the sum of its productivity with that of the energy-consuming distributed power sources can meet the power supply needs of the microgrid. If they can, the microgrid is supplied with power through the first power source and the energy-consuming distributed power sources. If they cannot, the microgrid is supplied with power through the first power source, its corresponding energy storage unit, and the energy-consuming distributed power sources. This minimizes costs while meeting power supply needs. When adjusting the access of distributed power sources in the microgrid through the above-mentioned access plan, a simulation model is established by the simulation unit based on the microgrid's distribution diagram, grid parameters, the location of the distributed power sources to be accessed, and the parameters of the distributed power sources to be accessed. This provides the conditions for simulating the adjustment of the distributed power sources to be accessed and the unstable second power source through the simulation model. Through the cooperation of the above technical solutions, not only is cost minimized, but the stability of the entire microgrid is also ensured, and the damage to the grid caused by directly accessing the distributed power sources to be connected to the grid is reduced.
[0082] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0083] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this patent should be determined by the appended claims.
[0084] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A hardware-in-the-loop simulation method for microgrid RPC, characterized in that, The method includes: Step S1: The data collection unit periodically collects the grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the grid parameters and environmental parameters respectively include the collection time; Step S2: Based on the correspondence between the power consumption of the load and time in the first time period in the power grid parameters, the environmental parameters in the first time period and the environmental parameters in the second time period, predict and draw the load power consumption curve in the second time period. Step S3: Calculate the energy consumption rate of the energy-consuming distributed power source and the power generation rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and formulate the access plan for the distributed power source in the microgrid based on the load power consumption curve, the energy consumption rate of the energy-consuming distributed power source, the power generation rate of the non-energy-consuming distributed power source and the power storage amount in the second time period. Step S4: Adjust the access of distributed power sources in the microgrid through the access plan, and establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit; Step S5: Simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model to obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected; including: Step S51: Before the distributed power source to be connected is connected to the microgrid, the distributed power source to be connected is first connected to the simulation model; Step S52: Simulate the grid parameters of the microgrid through the simulation model, and obtain the maximum matching load value and the corresponding output power parameters of the distributed power source to be connected by adjusting the load value of the load simulation unit and the parameters of the distributed power source to be connected, and send the maximum matching load value and the corresponding output power parameters to the management unit of the distributed power source to be connected. Step S53: The management unit adjusts the distributed power source to be connected according to the power parameters, and applies to the microgrid for load allocation according to the maximum matching load value.
2. The microgrid RPC semi-physical simulation method according to claim 1, characterized in that, Step S2 includes the following steps: Step S21: Obtain the power consumption of all loads of the microgrid at each moment in the first time period in the power grid parameters, and draw the load power consumption curve in the first time period based on the power consumption of all loads at each moment. Step S22: Compare the environmental parameters in the first time period and the environmental parameters in the second time period, and obtain a first comparison result. Based on the first comparison result, obtain the loads in the microgrid affected by the first comparison result, and obtain the power consumption change of the loads based on the first comparison result. Step S23: Overlay the load power consumption curve and the power consumption change in the first time period in chronological order to obtain the load power consumption curve in the second time period.
3. The microgrid RPC semi-physical simulation method according to claim 1, characterized in that, Step S3 further includes the following steps: Step S31: Calculate the energy consumption rate of each energy-consuming distributed power source by the power consumption of each energy-consuming distributed power source and the energy consumption corresponding to the power consumption in the power grid parameters; Step S32: Calculate the power productivity of the non-energy-consuming distributed power source at each time in the second time period based on the environmental parameters in the second time period, and sort the first power sources with a power storage capacity greater than the first power quantity in the non-energy-consuming distributed power source according to the power productivity from largest to smallest, and add them to the first queue to be connected to the network. Step S33: Based on the load power consumption curve within the second time period, obtain a first sub-time period where the power consumption is less than or equal to a first threshold. Within the first sub-time period, when the sum of the power productivity of the first power sources in the first grid connection queue is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period, select N first power sources from the first grid connection queue in descending order of power productivity to supply power to the microgrid, wherein the sum of the power productivity of the N first power sources is greater than or equal to the power consumption value of the load at the corresponding time within the first sub-time period. When the sum of the power productivity of the first power sources in the first grid connection queue is less than the power consumption value of the load at the corresponding time within the first sub-time period, use the first power sources in the first grid connection queue and select M distributed energy sources from the energy-consuming power sources in ascending order of energy consumption rate for joint power supply, wherein the first power source and the M distributed energy-consuming power sources can meet the power consumption value at the corresponding time within the first sub-time period.
4. The microgrid RPC semi-physical simulation method according to claim 3, characterized in that, Based on the load power consumption curve within the second time period, a second sub-time period with power consumption greater than the first threshold is obtained. Within the second sub-time period, when the sum of the power production of all the first power sources in the first grid-connection queue and the power production of all the energy-consuming distributed power sources is less than the power consumption value of the load at the corresponding moment within the second sub-time period, the microgrid is powered by the first power source, the power storage unit of the remaining energy-consuming distributed power sources excluding the first power source, and the energy-consuming distributed power sources. When the sum of the power production of the first power sources in the first grid-connection queue and the power production of the energy-consuming distributed power sources is greater than or equal to the power consumption value of the load at the corresponding moment within the second sub-time period, the microgrid is powered by the first power source and the energy-consuming distributed power sources.
5. The microgrid RPC semi-physical simulation method according to claim 1, characterized in that, Step S5 further includes: After determining the power parameters and maximum matching load value of the distributed power source to be connected through step S5, the power parameters and maximum matching load value of the distributed power source to be connected are simulated, and the simulated distributed power source to be connected is connected to the microgrid for a third time period. The power parameters of the second power source with abnormal power parameters are obtained through the grid parameters of the third time period, and the second power source is adjusted to island mode. The grid parameters of the current microgrid are re-obtained. At the same time, the second power source is used as the distributed power source to be connected and steps S51-S53 are repeated to re-obtain the maximum matching load value and corresponding power parameters of the second power source. The power parameters and maximum matching load value of the second power source are adjusted through the management unit of the second power source. This process is repeated until the microgrid can operate stably.
6. The microgrid RPC semi-physical simulation method according to claim 1, characterized in that, Step S5 is followed by step S6: The management unit adjusts the power parameters of the distributed power source to be connected, and applies for load allocation from the microgrid based on the maximum matching load value, and connects the adjusted distributed power source to the microgrid.
7. The microgrid RPC semi-physical simulation method according to claim 3, characterized in that, The first time period and the second time period are greater than or equal to 1 day and less than or equal to 3 days, wherein the second time period is adjacent to the first time period and the second time period is located after the first time period.
8. A microgrid RPC hardware-in-the-loop simulation platform, characterized in that, The simulation platform is used to implement the microgrid RPC semi-physical simulation method as described in any one of claims 1-7, and the simulation platform includes: A data collection unit is used to periodically collect power grid parameters and environmental parameters of the microgrid based on the communication unit, wherein the power grid parameters and the environmental parameters respectively include the collection time; The plotting unit is used to predict and plot the load power consumption curve in the second time period based on the correspondence between the power consumption of the load and time in the first time period, the environmental parameters in the first time period, and the environmental parameters in the second time period. The allocation unit is used to calculate the energy consumption rate of the energy-consuming distributed power source in the microgrid and the power production rate of the non-energy-consuming distributed power source in the microgrid based on the grid parameters, and to formulate an access plan for the distributed power source in the microgrid based on the load power consumption curve, the energy consumption rate of the energy-consuming distributed power source, the power storage capacity and power production rate of the non-energy-consuming distributed power source in the second time period. The model creation unit is used to adjust the access of distributed power sources in the microgrid through the access plan, and to establish a semi-physical simulation model based on the grid parameters and distribution diagram of the microgrid, the load simulation unit and the distributed power sources to be accessed through the simulation unit. The simulation unit is used to simulate the parameters of the distributed power source to be connected and the parameters of the load simulation unit through the simulation model, obtain the power parameters and maximum matching load value of the distributed power source to be connected for stable power supply, and send the power parameters and maximum matching load value of the distributed power source to be connected to the management unit of the distributed power source to be connected.
Citation Information
Patent Citations
RT-LAB based microgrid simulation testing system
CN104330980A
RT-lab-based real microgrid operation dynamic simulation testing platform
WO2018014450A1
Real micro-grid operation dynamic simulation test platform based on RT-LAB
CN106054672A
Integrated energy microgrid grid-connected island semi-physical simulation method and system based on Typhoon
CN115333157A