A variable-step-size dynamic simulation method for integrated energy systems
By dynamically adjusting the simulation step size and parameter interaction between modules in the integrated energy system, the problems of discrete operation and simulation accuracy of the traditional energy system are solved, the overall efficiency and stability of the energy system are improved, and more efficient energy complementation and new energy are achieved. Consumption.
Patent Information
- Application Number
- CN202110891712.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-08-04
AI Technical Summary
The discrete operation of traditional energy systems results in the inability to exert complementary interactive characteristics and cascade utilization potential among multiple energy sources, reducing the comprehensive energy utilization efficiency and increasing carbon emissions and environmental pollution problems. Improper selection of step sizes in dynamic simulations will lead to simulation accuracy and calculation A matter of time.
This paper proposes a variable-step dynamic simulation method for an integrated energy system. By establishing an electrical, gas, and thermal energy network model, the system is divided into modules, the time scale is selected based on differences in dynamic characteristics, and the interpolation method is used to realize parameter interaction between modules and dynamically adjust the simulation step. to accommodate perturbation and non-perturbation conditions.
It improves the simulation accuracy and speed, reduces the calculation time, enhances the security and stability of the system, ensures real-time and accuracy, and improves energy complementation and new energy consumption capabilities.
Smart Images

Figure CN113536591B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of energy system simulation, and in particular relates to a variable-step-size dynamic simulation method for an integrated energy system. Background Art
[0002] Traditional energy systems are mostly based on discrete operation. Most mainstream energy systems such as coal, oil, natural gas, electricity, and cooling / heating systems operate independently, forming relatively closed industries and interest barriers. Due to the existence of these barriers, multiple energy sources cannot play their complementary and interactive characteristics and cascade utilization potential, thus reducing the comprehensive utilization efficiency of energy, and to a certain extent increasing carbon emissions and exacerbating environmental pollution problems.
[0003] In the context of the urgent need for transformation and upgrading of the world's energy system, the concept of Integrated Energy System (IES) has been widely supported by academia and industry. The Integrated Energy System can break the barriers of the discrete operation of the traditional energy system, give full play to the complementary and interactive characteristics and cascade utilization potential of various forms of energy (including coal, oil, natural gas, electricity, heat / cold, wind, light, water, hydrogen, etc.), thereby improving the comprehensive energy efficiency of the energy system, reducing carbon emissions and pollutant emissions, improving the stability and reliability of the energy supply system, and promoting the consumption of renewable energy. Therefore, it has a bright development prospect.
[0004] The simulation analysis of the integrated energy system is an experimental verification of the system construction plan. By establishing equipment and pipeline network operating models that conform to the actual situation, reproducing the real physical process that occurs in the actual system, and simulating the state of the system in various scenarios, it provides security verification and operation analysis for IES, and plays a key role in the development and maintenance of the integrated energy system. In-depth research on simulation algorithms can improve the accuracy and credibility of system simulation, provide a strong guarantee for the effectiveness of the construction plan, and have a far-reaching impact on the development of the integrated energy system.
[0005] The simulation of integrated energy systems is divided into steady-state and dynamic. Steady-state focuses on the operating conditions of the system after it stabilizes in a certain scenario, and ignores the change of state over time during the simulation process. Dynamic simulation emphasizes the description of the change of operating conditions over time. The latter considers a more refined model during the simulation process. By analyzing the changes in operating conditions under disturbances, problems such as pipe crossing and overload can be judged, further improving the safety and stability of the system. At the same time, dynamic simulation can improve the precision of multi-energy coordinated scheduling, enhance the energy interaction between energy subsystems in strong coupling scenarios, give full play to the advantages of IES energy complementarity and cascade utilization, and improve the system's new energy absorption capacity and user experience.
[0006] The time and space step size in the dynamic simulation of the integrated energy system determines the accuracy and speed of the solution. If the step size is too large, the description of the working condition changes of each energy network will not be detailed enough, and the simulation cannot accurately depict the dynamic changes of the water temperature of the heating network and the air pressure of the gas network. There will also be large errors in the heat loss and thermal delay calculation of the heating network and the description of the state parameters of the gas network pipe section. At the same time, when the parameters in the system interact, the step size is too large and the interpolation accuracy is affected, reducing the accuracy of the dynamic simulation. If the selected simulation step size is too small, the dimension of the equation group will be greatly increased. When the heating network is iteratively solved, the result will be difficult to converge due to the increase in the dimension of the parameters to be iterated, and the number of iterations and iteration time will be greatly increased. For the gas network, the increase in network dimension will greatly increase the solution scale of the solver, resulting in slow solution of network parameter planning. Therefore, reducing the simulation step size will make the dynamic simulation calculation time of the entire system too long and lose real-time performance. Therefore, we propose a variable step size dynamic simulation method for integrated energy systems. Summary of the invention
[0007] In view of the deficiencies in the prior art, the object of the present invention is to provide a variable-step-size dynamic simulation method for an integrated energy system to solve the problems raised in the above-mentioned background technology.
[0008] The object of the present invention can be achieved by the following technical solution: A variable step size method for dynamic simulation of an integrated energy system comprises the following steps:
[0009] Step 1. Establish electricity, gas, and heat energy network models and equipment models;
[0010] Step 2. Establish a comprehensive energy system model and divide the model into different energy networks and equipment modules;
[0011] Step 3. Obtain system parameters, system normal load, and system fault conditions, select different time scales according to the differences in dynamic characteristics to iteratively solve the single energy network, and establish a parameter transfer mechanism based on interpolation method to realize interaction between modules.
[0012] As a further solution of the present invention, in step 3, the dynamic characteristic difference is divided into disturbance and non-disturbance conditions, and a small time scale simulation is adopted under disturbance, and a large time scale simulation is adopted under non-disturbance.
[0013] As a further solution of the present invention, in step 3, the inter-module parameter interaction method based on the interpolation method,
[0014] After the parameters are input into the model, if the model simulation time step is less than 1s, the instantaneous value at each moment is obtained by interpolation;
[0015] If the simulation step is longer than 1s, for models with power accumulation such as heating networks, the average value of the input quantity within the simulation time can be taken;
[0016] For models with transient changes such as power grids, the instantaneous value at that moment can be directly taken, and the time interval of the input quantity can be changed from 1s to ΔT. Before the model outputs the parameters, the interpolation method is used to change the time step of the parameters from ΔT to 1s.
[0017] As a further solution of the present invention, based on large step length simulation, the following steps are included:
[0018] Step 1: Establish a comprehensive energy system model and input simulation duration, load and other parameters;
[0019] Step 2: Record the current simulation time and detect whether there is a disturbance at the current moment. If not, use the normal state large step size simulation;
[0020] Step 3: Set the simulation step size to the normal step size in a single module and perform calculations;
[0021] Step 4: Update the simulation time and check whether the current simulation time reaches the total simulation time. If not,
[0022] Return to step 2 and recheck whether there is disturbance. If yes, the simulation ends.
[0023] As a further solution of the present invention, a small step size simulation is adopted under disturbance, comprising the following steps:
[0024] Step 1: Establish a comprehensive energy system model and input simulation duration, load and other parameters;
[0025] Step 2: Record the current simulation time and check whether there is a disturbance at the current moment. If so, use the fault state small step simulation;
[0026] Step 3: Perform calculations in a single module with a simulation step length of 1 s;
[0027] Step 4: Update the simulation time and check whether the disturbance has ended. If not, return to step 2. If it has ended, check whether the simulation time has reached the total simulation time. If not, return to step 2. If so, the simulation ends.
[0028] As a further solution of the present invention, when a fault is detected to be imminent before the system disturbance, the simulation step size is reduced. When a disturbance exists within a large time step of the current time but the disturbance has not occurred yet, the simulation step size is reduced until the disturbance ends.
[0029] Beneficial effects of the invention: The invention proposes a method for dynamic simulation of an integrated energy system with variable step length. By changing the step length before and after the disturbance in the simulation, the overall simulation speed is improved and the simulation time is reduced. At the same time, the accuracy of the solution under faults is improved and the accuracy loss of the module parameter transmission in the time period is reduced, which can provide real-time guarantee for the operation safety analysis of the integrated energy system.
[0030] By interpolating and changing the time scale of module input and output parameters, the smooth interaction of parameters between system modules is ensured, so that more accurate pipeline network and equipment information can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 It is the flow chart of variable step size simulation;
[0033] Figure 2 Schematic diagram of parameter interaction for inter-module interpolation method;
[0034] Figure 3 is a structural diagram of an embodiment of the present invention;
[0035] Figure 4 This is a diagram showing the supply and return water temperature variation of the heat source node No. 28 in an embodiment of the present invention;
[0036] Figure 5 is the supply and return water temperature change of heat source node No. 27 in the embodiment of the present invention;
[0037] Figure 6 is the supply and return water temperature change of load node No. 11 in the embodiment of the present invention;
[0038] Figure 7 This is a diagram showing the power variation of the generator in the embodiment of the present invention;
[0039] Figure 8 A diagram showing changes in gas network node pressure before a fault in an embodiment of the present invention;
[0040] Fig. 9 A diagram showing changes in gas pressure at a gas network node during a fault in an embodiment of the present invention;
[0041] Fig.10 This is a diagram of the change in gas pressure at a gas network node after a fault in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] like Figure 3 As shown, in this embodiment, there are three energy networks, namely, heat network, gas network and power network, as well as various energy coupling devices such as gas boilers, steam turbines, and electric boilers. The parameters of each energy network and device do not have a substantial impact on the method proposed in the present invention, so they will not be described here. In the embodiment, the total simulation time is 6000s. Assuming that due to a fault problem, the radiator of a node in the heat network fails and cannot work normally, and loses heat load at 2000-2600s, the variable step size dynamic simulation method of the integrated energy system is used at this time, such as Figure 1 As shown, the specific steps are as follows:
[0044] Step 1: Build an integrated energy system;
[0045] Step 2: Input the heating network nodes and pipeline parameters to determine the normal load and fault nodes, time and duration;
[0046] Step 3: Reset the current simulation time to t = 0 and enter the total simulation time T = 6000s;
[0047] Step 4: Input the normal simulation time and space step ΔT = 4s, Δh = 5m;
[0048] Step 5: Check whether there is disturbance within a large step of the current time. If yes, proceed to step 6; if no, proceed to step 9;
[0049] Step 6: Perform simulation with a simulation step length of 1s;
[0050] Step 7: Update various parameters of the heating network and the current simulation time;
[0051] Step 8: Check whether the disturbance has ended. If it has not ended, that is, the current time is less than the simulation end time, proceed to step 6; if it is greater than the simulation end time, proceed to step 11;
[0052] Step 9: Perform simulation with a simulation step length of 4s;
[0053] Step 10: Update system parameters and current simulation time;
[0054] Step 11: Check whether the current simulation time t is less than the total simulation time T. If so, return to step 5, otherwise proceed to the next step;
[0055] Step 12: After a single simulation of the heat network module is completed, the parameters are converted from a 5s time scale to a 1s time scale through interpolation as required, and the thermal power is transferred to the electric boiler and the steam-water heat exchanger.
[0056] Step 13: After simulating the electric boiler and steam-water heat exchanger and other equipment, the electric load is transferred to the power grid;
[0057] Step 15: Input the parameters of power grid generation, load, pipeline and the time of heat network failure;
[0058] Step 16: Reset the current simulation time to t = 0 and enter the total simulation time T = 6000s;
[0059] Step 17: Input the normal state simulation time step of the power grid ΔT=750s;
[0060] Step 18: Check whether the disturbance time is reached within a large step of the current time. If it is reached, a small step simulation is used and step 19 is performed. If it is not reached, step 22 is performed.
[0061] Step 19: Perform simulation with a simulation step length of 1s;
[0062] Step 20: Update system parameters and current simulation time;
[0063] Step 21: Check whether the disturbance time is exceeded. If it is not exceeded, that is, the current time is less than the simulation end time, then proceed to step 19; if it is greater than the simulation end time, then proceed to step 24
[0064] Step 22: Perform simulation with ΔT as the simulation step length;
[0065] Step 23: Update system parameters and current simulation time;
[0066] Step 24: Check whether the current simulation time t is less than the total simulation time T. If so, return to step 18, otherwise proceed to the next step;
[0067] Step 25: After the single simulation of the power grid module is completed, the parameters are converted from the time scale of 750s to the time scale of .1s through interpolation method according to the requirements, and the generated power is transmitted to the generator.
[0068] Step 26: Simulate the generator and the steam turbine to obtain the steam output of the steam turbine;
[0069] Step 27: Simulate the steam turbine to obtain the input gas volume of the steam turbine;
[0070] Step 28: Input gas network pipeline parameters and heat network failure time;
[0071] Step 29: Reset the current simulation time to t = 0, and enter the total simulation time T = 6000s;
[0072] Step 30: Input the normal simulation time step ΔT = 40s and the space step h = 1000m of the gas network;
[0073] Step 31: Check whether the disturbance time is reached within a large step of the current time. If it is reached, a small step simulation is used to proceed to step 32. If it is not reached, step 35 is performed;
[0074] Step 32: Perform simulation with a simulation step length of 1 s;
[0075] Step 33: Update system parameters and current simulation time;
[0076] Step 34: Check whether the disturbance has ended. If it has not ended, that is, the current time is less than the simulation end time, proceed to step 32; if it is greater than the simulation end time, proceed to step 37.
[0077] Step 35: Perform simulation with ΔT as the simulation step length;
[0078] Step 36: Update system parameters and current simulation time;
[0079] Step 37: Check whether the current simulation time t is less than the total simulation time T. If so, return to step 31, otherwise the simulation ends, thereby obtaining the final dynamic energy flow results of each pipe network.
[0080] The total simulation time of this embodiment is 6000s, the normal time and space step of the heat network is 4s / 5m, the normal time simulation time step of the power grid is 750s, and the normal time and space step of the gas network is 40s / 1000m. The simulation results are as follows Figures 4 to 7 As shown. The simulation time of the embodiment is 1141s. Figure 4 This is the change in the supply and return water temperature of heat source node No. 28. Since node No. 28 is far away from the fault node, the return water temperature will not be affected, and the temperature change during the fault is not obvious. Figure 5 The supply and return water temperature changes of heat source node No. 27. The supply water temperature of node No. 27 is controlled by the PI controller, and the heating temperature can be kept constant under disturbance scenarios. Therefore, the outlet water temperature of the heat source node is constant. Due to the radiator failure at node 11, the return water temperature rises due to the temporary loss of load, so the return water temperature of node No. 27 also rises to a certain extent. Figure 6 This is the supply and return water temperature change diagram of the fault node No. 11. Since the heating temperature of the heat source is constant, the return water temperature of node No. 11 increases significantly during the fault period.
[0081] Figure 7 This is the change in generator power. Since the heat source has a small heating burden during the fault and the power load on the grid is reduced, the generator power decreases during the fault and returns to normal after the fault ends. Figure 8 is the pressure change of five nodes in the gas network before the fault, Fig. 9 is the pressure change of five nodes in the gas network during the fault. Fig.10This is the change in gas pressure at five nodes of the gas network after the fault. Due to the decrease in generator power and steam demand during the fault, the gas boiler load and gas load decrease, so the gas pressure drops slightly during the fault and rises again after the fault ends. In addition, due to the small simulation step size during the fault, the pressure fluctuation is obvious and the characterization is accurate. The solution speed is fast during the normal state, and the solution time is much less than the fault state solution time.
[0082] The variable step method of dynamic simulation of integrated energy system divides the energy system into modules, and after iteratively solving a specific module, the parameters are passed to the next module, traversing all the modules of the entire system. When solving each module, due to the huge differences in dynamic characteristics, completely different time scales are used, and the interaction between modules is realized through interpolation. For a single module, when the system does not encounter disturbances, the state parameters are stable. The conventional state simulation method is used to ensure the simulation time when the accuracy requirements are not high. After encountering disturbances, the fault state simulation method ensures the simulation accuracy at this time. In order to avoid the adverse numerical effects of sudden step drops on the simulation, the transition method of the simulation step is used to ensure the stability of the solution after the fault.
[0083] For those skilled in the art, it is understood that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention. Therefore, from any point of view, the embodiments should be regarded as instructive and non-restrictive. The scope of the present invention is limited by the attached claims rather than the above description. It is only a preferred embodiment of the present invention and is not intended to limit the present invention. All modifications, equivalent substitutions, improvements, etc. within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A variable step size dynamic simulation method for an integrated energy system, characterized in that: The following steps are involved: Step 1. Establish electricity, gas, and heat energy network models and equipment models; Step 2. Establish a comprehensive energy system model and divide the model into different energy networks and equipment modules; Step 3. Obtain system parameters, system normal load, and system fault conditions, select different time scales according to the dynamic characteristics to iteratively solve the single energy network, and establish a parameter transfer mechanism based on the interpolation method to realize the interaction between modules; In step 3, the dynamic characteristic difference is divided into disturbance and non-disturbance conditions, a small time scale simulation is adopted based on disturbance, and a large time scale simulation is adopted based on non-disturbance; In step 3, the inter-module parameter interaction method based on the interpolation method specifically includes the following steps: After the parameters are input into the model, if the model simulation time step is less than 1s, the instantaneous value at each moment is obtained by interpolation; If the simulation step is longer than 1s, for models with power accumulation such as heating networks, the average value of the input quantity within the simulation time can be taken; For models with transient changes such as power grids, the instantaneous value at that moment can be directly taken, and the time interval of the input quantity can be changed from 1s to ΔT. Before the model outputs the parameters, the interpolation method is used to change the time step of the parameters from ΔT to 1s.
2. A variable step size dynamic simulation method for an integrated energy system according to claim 1, characterized in that: Based on large step size simulation, the following steps are included: Step 1: Establish a comprehensive energy system model and input simulation duration, load and other parameters; Step 2: Record the current simulation time and detect whether there is a disturbance at the current moment. If not, use the normal state large step size simulation; Step 3: Set the simulation step size to the normal step size in a single module and perform calculations; Step 4: Update the simulation time and check whether the current simulation time reaches the total simulation time. If not, return to step 2 and recheck whether there is a disturbance. If so, the simulation ends.
3. A variable step size dynamic simulation method for an integrated energy system according to claim 1, characterized in that: The small step size simulation under disturbance includes the following steps: Step 1: Establish a comprehensive energy system model and input simulation duration, load and other parameters; Step 2: Record the current simulation time and check whether there is a disturbance at the current moment. If so, use the fault state small step simulation; Step 3: Perform calculations in a single module with a simulation step length of 1 s; Step 4: Update the simulation time and check whether the disturbance has ended. If not, return to step 2. If it has ended, check whether the simulation time has reached the total simulation time. If not, return to step 2. If so, the simulation ends.
4. A variable step size dynamic simulation method for an integrated energy system according to claim 1, characterized in that: When a fault is detected before the system disturbance, the simulation step size is reduced. When a disturbance exists within a large time step of the current time but has not occurred yet, the simulation step size is reduced until the disturbance ends.
