A method for optimizing the calculation of the central pipe segmentation of medium-deep underground pipes
By establishing the heat transfer and economic calculation model of medium and deep buried pipes, combined with heuristic optimization algorithm, the multi-stage dual-objective optimization of the central pipe in the middle and deep buried pipes is achieved, and the lack of optimization of the central pipe design in the existing technology is solved. The problem improves the thermal and economic performance of the system.
Patent Information
- Application Number
- CN202411147941.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-21
AI Technical Summary
The existing medium- and deep underground pipe systems lack optimization in the design of the central pipe, which makes it difficult to take into account both thermal and economic performance, and lacks optimization calculation methods for different depths and conditions.
A middle- and deep buried pipe central pipe segment optimization calculation method is adopted. By establishing a heat transfer calculation model and economic calculation model, combining heuristic optimization algorithm, it automatically detects the rationality of parameters and realizes multi-stage dual-objective optimization of the central pipe. Select the optimal solution based on user weights.
Implementing the optimal design of the central pipe under different geological and system conditions improves the thermal and economic performance of the system and reduces initial investment and operating costs.
Smart Images

Figure CN118657070B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of medium-deep buried pipe system design, and in particular relates to a method for optimizing the calculation of the central pipe segments of a medium-deep buried pipe. Background Art
[0002] At present, the medium and deep geothermal energy development technology is a veritable green, environmentally friendly and energy-saving new technology. It is achieved by installing heat exchangers at a vertical depth of 2000-3000 meters underground, extracting heat from the medium and deep underground rock and soil layers, and then supplying heat to buildings or terminals through a special equipment system on the ground, thereby solving people's energy needs for heating, hot water, refrigeration and power generation. It has the characteristics of advanced system technology, long life, stable, safe and reliable, universal applicability, continuous circulation, high efficiency and energy saving, low operating costs, zero environmental interference and zero pollution emissions.
[0003] The medium-deep underground heat exchanger is a key component for extracting geothermal energy from deep underground. Its structure adopts the form of coaxial sleeve, which consists of an outer sleeve and a central tube. The outer sleeve is used to obtain as much heat as possible from the underground strata, while the central tube is used to reduce the heat exchange between the central tube fluid and the outer sleeve fluid as much as possible. At present, the common practice is to use a central tube of uniform material, or to perform a small amount of insulation treatment on the central tube at the outlet, but these practices do not solve the optimization problem of the central tube in theory and practice, and thus do not achieve the optimization design problem of the medium-deep underground heat exchanger.
[0004] Through patent search, it can be found that there are some patents for the optimization design of medium-deep buried pipe systems. For example, the application number is 202310766866.2, and the name of the invention is "A method and system for optimizing the design of heating for medium-deep buried pipe heat exchangers". According to the content disclosed in this invention, it only optimizes the length / diameter and flow rate of medium-deep buried pipes, which is a very preliminary optimization design and does not involve the detailed optimization design of the central pipe. For medium-deep buried pipe heat exchangers, it is generally believed that increasing the thermal resistance of the central pipe can effectively improve the thermal performance of the system, but this will also increase costs. If different pipes, different diameters, different wall thicknesses, and different length ratios can be used for central pipes of different depths, it is possible to save initial investment and operating costs while ensuring that the system has higher energy efficiency. However, for such a problem of searching for the optimal solution in a complex variable space, there is currently no such type of optimization calculation method in either domestic or foreign journals or patent disclosures. Summary of the invention
[0005] In response to the gap in the above-mentioned technical field, the purpose of the present invention is to provide a segmented optimization calculation method for the central pipe of medium-deep buried pipes, which can automatically detect the rationality of parameters and automatically realize the dual-objective optimization of the central pipe in multiple sections under any given reasonable geological parameters, system parameters and other conditions, and realize the unique and definite optimal solution based on the user's weight selection of the system's thermal performance and economic performance.
[0006] In order to achieve the above object, the specific technical solution adopted by the present invention is:
[0007] A method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe comprises the following steps:
[0008] S1: Obtain and input the basic parameters required for optimization calculation;
[0009] S2: Establish a heat transfer calculation model for medium-deep buried pipes and an economic calculation model for medium-deep buried pipes, and detect the rationality of the setting of basic parameters in step S1;
[0010] S3: Input all the alternative center tube optimization calculation parameters and input the constraint condition set of the center tube segmented optimization design;
[0011] S4: Use the heat transfer calculation model of the deep buried pipe in S2 to check the rationality of the constraints related to the thermal conditions;
[0012] S5: Based on all the input basic parameters and optimization constraints, a heuristic optimization algorithm is used, and the heat transfer calculation model and economic calculation model of the medium-deep buried pipe are used as basic tools to iteratively calculate and optimize the design parameters of the central pipe to be optimized, and a dual-objective optimization calculation method of thermal performance and economic performance is selected;
[0013] S6: Based on the calculation results of the dual-objective optimization, input the weight ratio of thermal performance to economic performance, draw the Pareto frontier diagram, and give the optimization results under the current dual-objective weights.
[0014] The process of establishing the heat transfer calculation model of the medium-deep buried pipe in step S2 is as follows:
[0015] The heat transfer model inside the deep buried pipe and the heat transfer model outside the pipe are established respectively. The heat transfer model inside the pipe is solved by a set of ordinary differential equations (1), while the heat transfer model outside the pipe is solved by the partial differential equations of heat transfer in the soil (2). Both are solved by the finite difference method.
[0016]
[0017] Where: C represents the volume specific heat capacity of the fluid in the tube, which can be calculated by multiplying the volume of the fluid in the unit tube length by the fluid density and the specific heat capacity, J / K; T represents the temperature of the fluid, °C; Δt represents the time step of the calculation, s; R represents the thermal resistance, k / W; m represents the mass flow rate of the fluid flow, kg / s; c f represents the specific heat capacity of the fluid, J / (kg.K); Δz represents the length of the spatial discretization during calculation, m; A represents the cross-sectional area of the tube, m 2 ; w represents the thermal conductivity of the fluid, W / (mK); subscript 1 represents the water inlet pipe; subscript 2 represents the water outlet pipe; subscript 12 represents the heat transfer relationship between the inner casing and the outer casing; subscript b represents the heat transfer relationship between the outer casing and the borehole wall; subscript j represents the jth grid for the discrete calculation of the equation; superscript n and n+1 represent the current moment and the next moment respectively; a represents the thermal diffusion coefficient of the underground soil, m 2 / s; T represents underground soil temperature, ℃; t represents time, s; r represents the distance in the radial direction, m; z represents the distance in the vertical depth direction, m;
[0018] The process of establishing the economic calculation model of the medium-deep buried pipe in step S2 is as follows:
[0019] For the economic calculation model of the medium-deep buried pipe system, three sub-models are established, namely the initial investment model (3), the heat pump operation cost calculation model (4) and the water pump operation cost calculation model (5). The system efficiency coefficient COP in equation (4) is calculated by equation (6).
[0020]
[0021]
[0022] Among them, C tube represents the cost of the central casing, in RMB; price represents the cost of the pipe, in RMB; ρ represents the density of the pipe, in kg / m 3 ; dco, dci represent the outer diameter and inner diameter of the central tube, respectively, m; L represents the length of the central tube section, m; subscript i represents the i-th central tube section; s represents the total number of sections of the central tube; P hp Indicates the power consumption of the heat pump, W; Q building represents the heat load on the building side, W; COP represents the energy efficiency coefficient of the heat pump; the COP value is a function of the outlet water temperature of the deep buried pipe, T out Indicates the outlet water temperature of the buried pipe, ℃; P wp is the power consumption of the water pump, W; H wp is the pump head, which is the sum of local resistance and friction resistance, m; η wpis the efficiency of the pump; m is the mass flow rate, kg / s;
[0023] The center tube optimization calculation parameters in step S3: a total of 11 parameters need to be optimized, including the first section length ratio r1 of the center tube, the second section length ratio r2, the first section material x1, the second section material x2, the third section material x3, the first section outer diameter dco1, the second section outer diameter dco2, the third section outer diameter dco3, the first section wall thickness b1, the second section wall thickness b2, the third section wall thickness b3;
[0024] Furthermore, the basic parameters in step S1 include but are not limited to the following parameters:
[0025] Geological parameters: geometric and thermophysical parameters of different geological layers;
[0026] Outer jacket parameters: outer jacket size and thermal physical parameters;
[0027] Inner casing parameters: Inner casing size and thermal physical parameters. The inner casing can be divided into three sections by default. The pipe material, pipe diameter and pipe wall thickness of each section can be set to different parameters.
[0028] System parameters: user-side heat load, water pump flow, heating hours in a year;
[0029] Model parameters: number of discrete units in depth and radius directions.
[0030] Furthermore, the heat transfer calculation model of the medium-deep buried pipe in step S2 is realized by simultaneously solving the differential equations of the water flow heat transfer in the medium-deep buried pipe hole and the soil heat transfer outside the hole using the finite difference discretization format; the economic calculation model of the medium-deep buried pipe in step S2 is divided into an initial investment calculation module and an operating cost calculation module, wherein the operating cost calculation module further includes heat pump operating cost and water pump operating cost calculation sub-modules.
[0031] Furthermore, the rationality of the input basic parameters is checked in step S2, specifically: using the set user-side heat load to continuously extract underground heat in a cycle, recording the outlet water temperature and underground soil temperature at each moment, and after calculating a calculation cycle, judging whether the outlet water temperature has been maintained at a level above 5 degrees Celsius, and whether the trend of the outlet water temperature change is first a rapid increase and then a slow decrease. If these conditions are met, the program automatically modifies the user-side heat load, and can choose to increase or decrease it, and then re-run the calculation for a calculation cycle. If the trend of the outlet water temperature change is opposite to the trend of the user-side heat load change, that is, if the outlet water temperature decreases as the user-side heat load increases, it means that all current basic parameter settings are reasonable and the next step of calculation can be entered. If it does not meet the predetermined requirements, it will remind that there is a problem with the current parameter setting and the parameters need to be checked and re-entered.
[0032] Furthermore, the set of central tube constraint conditions in step S3 includes but is not limited to: upper and lower limits for searching the length ratio of each section of the central tube, upper and lower limits for searching the tube material of each section, upper and lower limits for searching the outer diameter, upper and lower limits for searching the tube wall thickness, and some additional constraint conditions.
[0033] Furthermore, the rationality of setting the detection constraint conditions in step S4 is specifically as follows: randomly selecting some values within the range of each constraint condition and parameter search and inputting them into the heat transfer calculation model of the medium-deep buried pipe, and repeatedly implementing step S2 to determine whether there are contradictions between the various parameters; if the detection is normal, you can proceed to the next step, if there is an abnormality, return the reason.
[0034] Furthermore, step S5 is specifically as follows: using the medium-deep buried pipe heat transfer calculation model and the economic calculation model as basic tools, after the parameters to be optimized are initialized, a large number of populations to be optimized are randomly generated, and the populations to be optimized are input into the medium-deep buried pipe heat transfer calculation model and the economic calculation model, and the outlet water temperature Tout and the total cost Cost under each set of parameter settings are calculated, and the outlet water temperature Tout is converted into the opposite number -Tout, and the vector group {-Tout, Cost} is uniformly minimized, and a genetic algorithm is used to perform continuous iterative optimization calculations. After completing the set number of iterative calculations, the calculation is terminated and the calculation results are saved; in the process of optimization iterative calculations, a group of calculation results that do not meet the constraints are punished so that they cannot enter the next round of optimization iterative calculations.
[0035] Furthermore, step S6 is specifically as follows: the dual-objective optimization results are stored in a two-dimensional matrix F, where each row in F has two elements [-Tout, Cost], representing the opposite of the outlet water temperature of the medium-deep buried pipe and the total cost respectively, and the elements of all rows in F are plotted in the form of a scatter plot, where the horizontal axis is temperature and the vertical axis is cost. In this scatter plot, there are two endpoints, the left endpoint is [-Tout_left, Cost_left], where -Tout value is the smallest and Cost value is the largest, and the right endpoint is [-Tout_right, Cost_right], where -Tout value is the largest and Cost value is the smallest. At this time, when the thermal and economic weight values given by the user are x1:x2, and x1+x2=1, it is necessary to search for a point [-Tout,i, Cost,i] on the scatter plot so that [-Tout,i, Cost,i] reaches
[0036] The ratio of the distance from [-Tout_left,Cost_left] to the distance from [-Tout,i,Cost,i] to [-Tout_right,Cost_right] is equal to x2:x1.
[0037] The present invention specifically relates to a heuristic optimization algorithm, which uses the heuristic optimization algorithm to perform refined dual-objective optimization calculations on the segmented design of the central pipe of a medium-deep buried pipe, and directly obtains the optimal design solution under different thermal and economic requirements.
[0038] The present invention can automatically detect parameter rationality under any given reasonable geological parameters, system parameters and other conditions, automatically realize dual-objective optimization of the central tube multi-section, and can realize a unique and definite optimal solution based on the user's weight selection of the system's thermal performance and economic performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a flow chart of the method for optimizing the design of the central pipe segments of a deep buried pipe according to the present invention.
[0040] Figure 2 A discretization diagram of the heat transfer domain in the heat transfer model construction of the deep buried pipe system of the present invention;
[0041] Figure 3 The structure diagram of the fluid-soil coupled heat transfer matrix (the structure of the matrix in the DCBHE heat transfer model) is constructed for the heat transfer model of the deep buried pipe system of the present invention. DETAILED DESCRIPTION
[0042] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0043] like Figure 1 As shown, a method for optimizing the segmented design of the central pipe of a medium-deep buried pipe comprises the following steps:
[0044] Step S1: Obtain the basic parameters required for optimization calculation. In the embodiment of the present invention, the underground environment parameters, the parameters of the buried pipe itself, the user and system level parameters, the model parameters, etc. required for the deep buried pipe heat transfer calculation in the calculation are mainly obtained. This embodiment is only an example and is not limited to this. Other data information may also be included in other embodiments.
[0045] Step S2: Establish a heat transfer calculation model for medium-deep buried pipes. The model mainly uses the finite difference discretization format of the differential equations of water flow heat transfer in the holes of the medium-deep buried pipes and soil heat transfer outside the holes to perform joint solution to establish an economic calculation model for medium-deep buried pipes. The model is mainly divided into an initial investment calculation module and an operating cost calculation module, wherein the operating calculation module further includes a heat pump operating cost calculation submodule and a water pump operating cost calculation submodule; considering that the operating costs of each year are almost the same when calculating the costs for long-term operation, the calculation method adopted in the present invention is to only calculate the operating costs of the first year, and multiply it by the operating years to obtain the total operating costs of the long-term operation.
[0046] Check the rationality of the basic parameters entered. In this step, the parameters of the central tube use the most commonly used materials, and the segmented design calculation is not used for the central tube for the time being. By setting the user-side heat load to continuously extract underground heat, record the outlet water temperature and underground soil temperature at each moment, and after calculating a calculation cycle (usually a heating season), judge whether the outlet water temperature has been maintained above 5 degrees Celsius, and whether the trend of the outlet water temperature change is first a rapid rise and then a slow decline. If these conditions are met, the program automatically modifies the user-side heat load, and you can choose to increase or decrease it, and then re-run the calculation for a calculation cycle. If the trend of the outlet water temperature change is opposite to the trend of the user-side heat load change (for example, the user-side heat load increases and the outlet water temperature decreases), it means that all current basic parameter settings are reasonable and you can proceed to the next step of calculation. If it does not meet the predetermined requirements, it will remind you that there is a problem with the current parameter setting and you need to check and re-enter the parameters.
[0047] Step S3: Input optimization calculation parameters. In the embodiment of the present invention, a total of 11 parameters need to be optimized, including the first section length ratio r1 of the central tube, the second section length ratio r2, the first section material x1, the second section material x2, the third section material x3, the first section outer diameter dco1, the second section outer diameter dco2, the third section outer diameter dco3, the first section wall thickness b1, the second section wall thickness b2, the third section wall thickness b3. For these central tube parameters to be optimized, it is necessary to give an optimized search interval for each parameter, and it is also necessary to input some additional constraints, such as the heat resistance constraint of the pipe, which means that the underground environment temperature that the section of the pipe is exposed to cannot exceed its own upper limit of heat resistance temperature; for example, the constraint of pipe connection, because this optimization design adopts a multi-section structure, it is also necessary to constrain the outer diameter difference between the first section and the second section, and the outer diameter difference between the second section and the third section.
[0048] Step S4: Check the rationality of constraint setting. In the embodiment of the present invention, some values are randomly selected within the search range of various constraints and parameters and input into the heat transfer calculation model of medium-deep buried pipes, and step S2 is repeatedly implemented to determine whether there are contradictions between the various parameters. If everything is normal in the detection, you can proceed to the next step. If there is an abnormality, the reason is returned. The reason may be a violation of the constraint itself or a violation of the rationality of the parameter setting. If the constraint itself is violated, it will not affect the subsequent optimization calculation. If the rationality of the parameter setting is violated, the calculation program will inform the problem through step S2.
[0049] Step S5: Perform dual-objective optimization calculations based on basic parameters and optimized calculation parameters. In the embodiment of the present invention, the medium-deep buried pipe heat transfer calculation model and the economic calculation model are used as basic tools. After the initialization settings of the 11 parameters to be optimized are completed, a large number of populations to be optimized are randomly generated first, and these populations are input into the medium-deep buried pipe heat transfer calculation model and the economic calculation model. The outlet water temperature Tout and the total cost Cost under each set of parameter settings are calculated, and the outlet water temperature Tout is converted into the opposite number -Tout. In this way, the vector group {-Tout, Cost} can be uniformly minimized, and the genetic algorithm is used to perform continuous iterative optimization calculations. After completing the set number of iterative calculations, the calculation is terminated and the calculation results are saved. Specifically, in the process of optimization iterative calculation, a group of calculation results that do not meet the constraints are punished so that they cannot enter the next round of optimization iterative calculations. Specifically, the outlet water temperature is forced to be set to 0 degrees, and the cost value is forced to be set to a larger number, such as 10^9.
[0050] Step S6: Determine the required results of single-objective optimization based on the dual-objective optimization results. For dual-objective optimization problems, it is necessary to give the weight ratio of the two optimization objectives in order to finally give a definite optimization result. The specific method is to store the dual-objective optimization results in a two-dimensional matrix F, where each row in F has two elements [-Tout, Cost], representing the opposite of the outlet water temperature of the medium-deep buried pipe and the total cost, respectively. The elements of all rows in F are plotted in the form of a scatter plot, where the horizontal axis is temperature and the vertical axis is cost. There are two endpoints in this scatter plot, the left endpoint is [-Tout_left, Cost_left], -Tout value is the smallest, Cost value is the largest, and the right endpoint is [-Tout_right, Cost _right], -Tout value is the largest, and Cost value is the smallest. At this time, when the thermal and economic weight values given by the user are x1:x2, and x1+x2=1, it is necessary to search for a point [-Tout,i,Cost,i] on the scatter plot so that the ratio of the distance from [-Tout,i,Cost,i] to [-Tout_left,Cost_left] and the distance from [-Tout,i,Cost,i] to [-Tout_right,Cost_right] is equal to x2:x1.
[0051] The present invention can automatically detect parameter rationality under any given reasonable geological parameters, system parameters and other conditions, automatically realize dual-objective optimization of the central tube multi-section, and can realize a unique and definite optimal solution based on the user's weight selection of the system's thermal performance and economic performance.
[0052] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0053] Attachment: Related model information
[0054] The construction of the heat transfer calculation model and economic calculation model of the medium-deep buried pipe of the present invention and the related functions refer to the following materials:
[0055] 1. Heat transfer model of medium-deep buried pipe system
[0056] 1. Heat transfer of fluid in multi-section tubes
[0057] The heat transfer model of this multi-segment structure is very similar to the traditional structure, but the thermal resistance of each segment should be set separately. The differential equation is shown in equation (1), which takes into account both convection and conduction heat transfer effects. Therefore, the solution of this set of equations is applicable to both flowing and static states. In equation (1), C represents the volume specific heat capacity of the fluid in the tube, which can be calculated by multiplying the volume of the fluid per unit tube length by the fluid density and the specific heat capacity, J / K; T represents the temperature of the fluid, ℃; Δt represents the time step during calculation, s; R represents thermal resistance, k / W; m represents the mass flow rate of the fluid flow, kg / s; c f represents the specific heat capacity of the fluid, J / (kg.K); Δz represents the length of the spatial discretization during calculation, m; A represents the cross-sectional area of the tube, m 2 ; w represents the thermal conductivity of the fluid, W / (mK); subscript 1 represents the water inlet pipe; subscript 2 represents the water outlet pipe; subscript 12 represents the heat transfer relationship between the inner casing and the outer casing; subscript b represents the heat transfer relationship between the outer casing and the borehole wall; subscript j represents the jth grid of the discrete calculation of the equation; superscript n and n+1 represent the current moment and the next moment respectively.
[0058]
[0059] The finite difference method is used to transform equation (1) into a solvable algebraic equation (2).
[0060]
[0061] This heat transfer process has two boundaries: one at the inlet and the other at the bottom. The equations for these boundary conditions are listed in Equation (3), where the subscript in represents the inlet water of the underground shell-and-tube heat exchanger.
[0062]
[0063] In order to calculate the updated fluid temperature in the iteration, equation (2) is converted into the matrix format equation (4) together with the boundary condition equation (3), and the matrix formula is shown in equations (4a)-(4d), where the vector Tf stores the fluid temperature data of 2n nodes in the underground casing heat exchanger; the matrices Af, Bf, Cf, and Ds represent the coefficient matrix affecting the fluid temperature at the next moment, the coefficient matrix affecting the fluid temperature at the current moment, the coefficient matrix affecting the fluid temperature at the next moment, and the coefficient matrix affecting the fluid temperature at the current moment; Tb represents the temperature at different depths of the borehole wall, ℃; T in represents the inlet water temperature, °C. Note that all parameters in equations (4a)-(4d) are calculated using the same method as given in equation (4e).f The inner product of the inverse matrix of the coaxial line and a matrix on the right can directly use the matrix expression and the operation of the current fluid temperature in the coaxial line to represent the fluid temperature inside the coaxial line at the next time node. This process can be updated at any time. The matrix equation form composed of equation (4) is as follows Figure 3 is given in the "Fluid" section.
[0064]
[0065]
[0066]
[0067] It should be noted that in these matrices, the coefficients at the diagonal positions have different values based on the actual division of the central tube. This should be properly addressed in the algorithm design for the system heat transfer simulation.
[0068] 2. Heat transfer of buried pipes in semi-infinite earth
[0069] The heat transfer outside the tube is carried out in the semi-infinite underground space, which is governed by the partial differential equation (5). In order to solve this equation efficiently using numerical methods, the coordinate transformation technique and the finite difference discretization method in time and space are used. Therefore, by assuming that σ = ln(r / r b ) and Δσ=ln(r i+1 / r i ) transforms equation (5) into equation (6), where Figure 2 Given the structure of spatial discretization, Figure 2 Medium T f1 ,T f2 They represent the temperatures of the water inlet and outlet respectively, ℃; nz represents the number of segments in the depth direction of the buried pipe; nbottom considers more spatial discrete numbers based on nz, generally 5% of the number of nz can be selected for consideration; nr is the number of spatial segments in the radial direction.
[0070] In equation (5), a represents the thermal diffusion coefficient of the underground soil, m 2 / s; T represents underground soil temperature, °C; t represents time, s; r represents the distance in the radial direction, m; z represents the distance in the vertical depth direction, m. In equation (6), the subscript ij represents the current calculation grid; the subscript i-1, j represents the grid adjacent to the left of the current calculation grid; the subscript i+1, j represents the grid adjacent to the right of the current calculation grid; the subscript i, j-1 represents the grid adjacent to the top of the current calculation grid; the subscript i, j+1 represents the grid adjacent to the bottom of the current calculation grid; all these adjacent grids are separated by a spatial step of Δz in the depth direction; the superscript n, n+1 represent the time step of Δt between the current calculation moment and the next calculation moment.
[0071]
[0072] Then determine the boundary condition equations. The boundaries that need to be determined include the surface, pipe wall, bottom ground and far-field boundary. Table 1 lists their names, numbers and equations, where λ represents the thermal conductivity of the soil, W / (mK); h s represents the convection heat transfer coefficient of the ground surface, W / (m 2 .K); T air Indicates the air temperature on the ground, ℃; r b Indicates the radius of the buried pipe, m; h b Indicates the comprehensive heat transfer coefficient between the buried pipe and the adjacent soil, W / (m 2 .K); T f1 Indicates the fluid temperature along the inlet pipe of the buried pipe, °C; T surface represents ground temperature, °C; gg represents geothermal gradient, K / m; z bottom Represents the depth coordinate value of the lowest point in the calculation domain, m; r far It represents the radius length of the farthest point in the calculation domain in the radial direction, m; H represents the length of the buried pipe, m; z represents the vertical depth position, m; r represents the radial distance, m.
[0073] Table 1 Boundary condition equations
[0074]
[0075]
[0076] Next, if Figure 2 As shown, Figure 2The discretization diagram of the heat transfer domain in the heat transfer model construction of the deep buried pipe system in the present invention is discretized with a linear step in the depth direction and a logarithmic step in the radius direction. By applying a similar matrix expression method, all ground temperatures at the next time node can be expressed by some matrix inner products and the previous temperature vector, as shown in equation (7), where the Ts vector stores Figure 2 The temperature value in each grid, ℃; Tg represents the temperature at r far A vector composed of the temperatures in nz grids in the vertical direction of the position, ℃; Tf1 represents the temperature vector along the water inlet pipe in the buried pipe, ℃; the matrices As, Bs, Cs, Ds, and Es respectively represent the coefficient matrix affecting the soil temperature at the next moment, the coefficient matrix affecting the soil temperature at the next moment by the current soil temperature, the coefficient matrix affecting the soil temperature at the next moment by the air temperature above the ground, the coefficient matrix affecting the soil temperature at the next moment by the far-field temperature of the soil, and the coefficient matrix affecting the soil temperature at the next moment by the water temperature in the casing. The superscripts n and n+1 represent the current calculation moment and the next calculation moment, respectively, and the difference between the two is a time step of Δt. The matrix equation can be sorted out to get Figure 3 The contents of the "Soil" section.
[0077]
[0078] 3. Convection-conduction coupled heat transfer model based on combined matrix
[0079] The heat transfer inside the tube is mainly dominated by convection process, while the heat transfer outside the tube is dominated by conduction. In many previous studies, these two heat transfer models are used in an alternative way in each time step because they provide a critical boundary for each other, which is unknown before updating the other model.
[0080] In this study, we use integral solution to obtain the fluid and ground temperatures in one calculation, and adopt matrix-based expressions based on the equations in the last two subsections. The main idea is to assemble a larger matrix containing the fluid and ground heat transfer information in one go. First, we must create a solution vector T x , which is expressed as [T f1 ,T f2 ,T s ] T, whose shape is (2·nf+nr·nzb,1). Equation (8) gives the fluid-soil coupled heat transfer matrix equation, where vector Tx is the direct stacking of vectors Tf and Ts, representing the temperature of all fluid and soil grid points in the calculation domain, ℃; matrices A, B, C, D, and E represent the coefficient matrix affecting the temperature of all grid points at the next moment, the coefficient matrix affecting the current grid point temperature at the next moment, the coefficient matrix affecting the ground air temperature at the next moment, the coefficient matrix affecting the grid point temperature at the next moment, the coefficient matrix affecting the water inlet temperature at the next moment, and the coefficient matrix affecting the soil far-field temperature at the next moment. Assemble the matrix structure as shown in the figure. Figure 3 As shown, Figure 3 The "fluid + soil" part is a structural diagram of the fluid-soil coupled heat transfer matrix in the heat transfer model construction of the deep buried pipe system of the present invention (the structure of the matrix in the DCBHE heat transfer model).
[0081]
[0082] 2. Economic evaluation model of medium-deep buried pipe system
[0083] Heat transfer models are primarily used to evaluate the thermal performance of the system, fluid temperature affects heat pump efficiency, pipe size parameters affect water pump efficiency, and initial investment. These items should be carefully calculated for a final system optimization study. It should be noted that since the depth of the borehole has a huge impact on the drilling cost, which is the largest investment, this study assumes that the borehole depth has been selected and the only uncertain investment is the cost of the central pipe. It is easy to include each cost in each component.
[0084] 1. Initial Investment
[0085] In this section, the cost refers to the pure material cost of the central pipe, including the material cost of the pipe and some additional material costs. After market research, there are four materials available for the central pipe of the medium-deep buried pipe, and their thermal parameters and economic parameters are shown in Table 2. The basic cost calculation formula is equation (9), where C tube represents the cost of the central casing, in RMB; price represents the cost of the pipe, in RMB; ρ represents the density of the pipe, in kg / m 3 ; dco, dci represent the outer diameter and inner diameter of the central tube, respectively, m; L represents the length of the central tube section, m; subscript i represents the i-th section of the central tube; s represents the total number of sections of the central tube.
[0086] Table 2 Thermal economic parameters of available central tube materials
[0087]
[0088]
[0089]
[0090] It should be noted that if PEX material is used in the center tube, there will be additional cost for the pipe clamp, which is determined by the section length round(L / 200)·600, where round represents a rounding function.
[0091] 2. Heat pump operating costs
[0092] The power consumption of the heat pump is affected by the COP and the heat load on the user side, as shown in equation (10), where P hp Indicates the power consumption of the heat pump, W; Q building represents the heat load on the building side, W; COP represents the energy efficiency coefficient of the heat pump. The COP value is a function of the outlet water temperature of the deep buried pipe, as shown in equation (11), where T out Indicates the outlet water temperature of the buried pipe, ℃.
[0093]
[0094]
[0095] 3. Pump operating costs
[0096] The power consumption of the water pump is to overcome the friction between the fluid and the pipe wall, as shown in equation (12). wp is the power consumption of the water pump, W; H wp is the pump head, which is the sum of local resistance and friction resistance, m; η wp is the efficiency of the pump; m is the mass flow rate, kg / s.
[0097]
[0098] The water head of a water pump includes the resistance along the way and the local resistance. These resistances can be calculated by the general formula in fluid dynamics.
Claims
1. A method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe, characterized in that: The steps include: S1: Obtain and input the basic parameters required for optimization calculation; S2: Establish a heat transfer calculation model for medium-deep buried pipes and an economic calculation model for medium-deep buried pipes, and detect the rationality of the setting of basic parameters in step S1; S3: Input all the alternative center tube optimization calculation parameters and input the constraint condition set of the center tube segmented optimization design; S4: Use the heat transfer calculation model of the deep buried pipe in S2 to check the rationality of the constraints related to the thermal conditions; S5: Based on all the input basic parameters and optimization constraints, a heuristic optimization algorithm is used, and the heat transfer calculation model and economic calculation model of the medium-deep buried pipe are used as basic tools to iteratively calculate and optimize the design parameters of the central pipe to be optimized, and a dual-objective optimization calculation method of thermal performance and economic performance is selected; S6: Based on the calculation results of the dual-objective optimization, input the weight ratio of thermal performance to economic performance, draw the Pareto frontier diagram, and give the optimization results under the current dual-objective weights; The process of establishing the heat transfer calculation model of the medium-deep buried pipe in step S2 is as follows: The heat transfer model inside the deep buried pipe and the heat transfer model outside the pipe are established respectively. The heat transfer model inside the pipe is solved by a set of ordinary differential equations (1), while the heat transfer model outside the pipe is solved by the partial differential equations of heat transfer in the soil (2). Both are solved by the finite difference method. Where: C represents the volume specific heat capacity of the fluid in the tube, which can be calculated by multiplying the volume of the fluid in the unit tube length by the fluid density and the specific heat capacity, J / K; T represents the temperature of the fluid, °C; Δt represents the time step of the calculation, s; R represents the thermal resistance, k / W; m represents the mass flow rate of the fluid flow, kg / s; c f represents the specific heat capacity of the fluid, J / (kg.K); Δz represents the length of the spatial discretization during calculation, m; A represents the cross-sectional area of the tube, m 2 ; w represents the thermal conductivity of the fluid, W / (mK); subscript 1 represents the water inlet pipe; subscript 2 represents the water outlet pipe; subscript 12 represents the heat transfer relationship between the inner casing and the outer casing; subscript b represents the heat transfer relationship between the outer casing and the borehole wall; subscript j represents the jth grid for the discrete calculation of the equation; superscript n and n+1 represent the current moment and the next moment respectively; a represents the thermal diffusion coefficient of the underground soil, m 2 / s; T represents underground soil temperature, ℃; t represents time, s; r represents the distance in the radial direction, m; z represents the distance in the vertical depth direction, m; The process of establishing the economic calculation model of the medium-deep buried pipe in step S2 is as follows: For the economic calculation model of the medium-deep buried pipe system, three sub-models are established, namely the initial investment model (3), the heat pump operation cost calculation model (4) and the water pump operation cost calculation model (5). The system efficiency coefficient COP in equation (4) is calculated by equation (6). Among them, C tube represents the cost of the central casing, in RMB; price represents the cost of the pipe, in RMB; ρ represents the density of the pipe, in kg / m 3 ; dco, dci represent the outer diameter and inner diameter of the central tube, respectively, m; L represents the length of the central tube section, m; subscript i represents the i-th central tube section; s represents the total number of sections of the central tube; P hp Indicates the power consumption of the heat pump, W; Q building represents the heat load on the building side, W; COP represents the energy efficiency coefficient of the heat pump; the COP value is a function of the outlet water temperature of the deep buried pipe, T out Indicates the outlet water temperature of the buried pipe, ℃; P wp is the power consumption of the water pump, W; H wp is the pump head, which is the sum of local resistance and friction resistance, m; η wp is the efficiency of the pump; m is the mass flow rate, kg / s; The optimization calculation parameters of the central tube in step S3: a total of 11 parameters need to be optimized and calculated, including the length ratio r1 of the first section of the central tube, the length ratio r2 of the second section, the material x1 of the first section, the material x2 of the second section, the material x3 of the third section, the outer diameter dco1 of the first section, the outer diameter dco2 of the second section, the outer diameter dco3 of the third section, the wall thickness b1 of the first section, the wall thickness b2 of the second section, and the wall thickness b3 of the third section.
2. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 1 is characterized in that: The basic parameters in step S1 include but are not limited to the following parameters: Geological parameters: geometric and thermophysical parameters of different geological layers; Outer jacket parameters: outer jacket size and thermal properties; Inner casing parameters: Inner casing size and thermal physical parameters. The inner casing can be divided into three sections by default. The pipe material, pipe diameter and pipe wall thickness of each section can be set to different parameters. System parameters: user-side heat load, water pump flow, heating hours in a year; Model parameters: number of discrete units in depth and radius directions.
3. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 1 is characterized in that: The heat transfer calculation model for the medium-deep buried pipe in step S2 is realized by simultaneously solving the differential equations of the water flow heat transfer in the medium-deep buried pipe hole and the soil heat transfer outside the hole using the finite difference discretization format; the economic calculation model for the medium-deep buried pipe in step S2 is divided into an initial investment calculation module and an operating cost calculation module, wherein the operating cost calculation module further includes heat pump operating cost and water pump operating cost calculation submodules.
4. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 3 is characterized in that: In step S2, the rationality of the input basic parameters is checked, specifically: using the set user-side heat load to continuously extract underground heat in a cycle, recording the outlet water temperature and underground soil temperature at each moment, and after calculating a calculation cycle, judging whether the outlet water temperature has been maintained at a level above 5 degrees Celsius, and whether the change trend of the outlet water temperature is first a rapid increase and then a slow decrease. If these conditions are met, the program automatically modifies the user-side heat load, and can choose to increase or decrease it, and then re-run the calculation for a calculation cycle. If the outlet water temperature decreases as the user-side heat load increases, it means that all current basic parameter settings are reasonable and the next step of calculation can be entered. If it does not meet the predetermined requirements, it will remind that there is a problem with the current parameter setting and the parameters need to be checked and re-entered.
5. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 1 is characterized in that: The central tube constraint condition set in step S3 includes but is not limited to: the upper and lower limits of the length ratio search of each section of the central tube, the upper and lower limits of the tube material search of each section, the upper and lower limits of the outer diameter search, the upper and lower limits of the tube wall thickness search, and some additional constraints.
6. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 5 is characterized in that: The rationality of setting the detection constraint conditions in step S4 is specifically as follows: randomly select some values within the constraint conditions and parameter search range and input them into the heat transfer calculation model of the medium-deep buried pipe, and repeat step S2 to determine whether there are contradictions between the various parameters; if the detection is normal, proceed to the next step, if an abnormality occurs, return the reason.
7. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 1 is characterized in that: Step S5 is specifically as follows: using the medium-deep buried pipe heat transfer calculation model and the economic calculation model as basic tools, after the parameters to be optimized are initialized, a large number of populations to be optimized are randomly generated, and the populations to be optimized are input into the medium-deep buried pipe heat transfer calculation model and the economic calculation model, and the outlet water temperature Tout and the total cost Cost under each set of parameter settings are calculated, and the outlet water temperature Tout is converted into the opposite number -Tout, and the vector group {-Tout, Cost} is uniformly minimized, and the genetic algorithm is used to perform continuous iterative optimization calculations. After completing the set number of iterative calculations, the calculation is terminated and the calculation results are saved; in the process of optimization iterative calculations, a group of calculation results that do not meet the constraints are punished so that they cannot enter the next round of optimization iterative calculations.
8. The method for optimizing the calculation of the central pipe segmentation of a medium-deep buried pipe according to claim 1 is characterized in that: Step S6 is specifically as follows: the dual-objective optimization results are stored in a two-dimensional matrix F, where each row in F has two elements [-Tout, Cost], which represent the opposite of the outlet water temperature of the deep buried pipe and the total cost respectively. The elements of all rows in F are plotted in the form of a scatter plot, where the horizontal axis is the temperature and the vertical axis is the cost. There are two endpoints in this scatter plot, the left endpoint is [-Tout_left, Cost_left], where -Tout is the smallest and Cost is the largest, and the right endpoint is [-Tout_right, Cos t_right], -Tout value is the largest and Cost value is the smallest. At this time, when the thermal and economic weight values given by the user are x1:x2, and x1+x2=1, it is necessary to search for a point [-Tout,i,Cost,i] on the scatter plot so that the ratio of the distance from [-Tout,i,Cost,i] to [-Tout_left,Cost_left] to the distance from [-Tout,i,Cost,i] to [-Tout_right,Cost_right] is equal to x2:x1.
Citation Information
Patent Citations
Heat supply design optimization method and system for medium-deep layer buried pipe heat exchanger
CN117010157A
Full-life-cycle economical efficiency evaluation method for medium-deep layer coaxial sleeve type buried pipe heat supply system
CN116128369A
Middle-deep geothermal coupling phase change heat storage system design optimization method with high calculation efficiency
CN117556696A
