Special-shaped heat exchange tube arrangement optimization method and equipment and storage medium
The genetic algorithm is used to optimize the arrangement of special-shaped heat exchange tubes, which solves the problem of inappropriate arrangement of special-shaped heat exchange tubes in the existing technology and significantly improves the overall performance of special-shaped heat exchangers.
Patent Information
- Application Number
- CN202410653074.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
The equilateral triangle fork arrangement of special-shaped heat exchange tubes in existing heat exchangers is not suitable, which affects the heat transfer efficiency, and it is difficult to significantly improve the overall performance of special-shaped heat exchangers using traditional methods.
Genetic algorithm is used to optimize the arrangement of special-shaped heat exchange tubes. By establishing comprehensive evaluation factors and optimization models, the optimal arrangement is determined to improve the overall performance of the heat exchanger.
It significantly improves the comprehensive heat exchange performance of special-shaped heat exchangers, is suitable for various special-shaped tubes, and has universal applicability.
Smart Images

Figure CN118607355A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of heat exchangers, and in particular relates to a method, a device and a storage medium for optimizing the arrangement of special-shaped heat exchange tubes. Background Art
[0002] At present, the shell and tube heat exchanger is composed of a tube box, a shell, a tube sheet and heat exchange tubes. The heat exchange tubes are mostly round tubes, which are simple to process and have uniform flow. However, compared with other special-shaped heat exchange tubes, such as elliptical tubes and drop tubes, the thermal efficiency of round tubes is lower. Under the same heat exchange conditions, special-shaped heat exchange tubes can reduce vortex-induced oscillation, reduce the wake area, reduce impurity deposition, and have better comprehensive heat exchange performance.
[0003] At the same time, the arrangement of the heat exchange tubes in the heat exchanger is a regular triangle cross row. This most common arrangement simplifies the marking and drilling process of the tube sheet, and the arrangement is tight, so more heat exchange tubes can be arranged on a given tube sheet area. However, this arrangement is more suitable for circular tubes, because the cross-sectional shape of circular tubes is centrally symmetrical, while for non-circular special-shaped heat exchange tubes, their cross-sectional shape is no longer centrally symmetrical. Maintaining the regular triangle cross row arrangement will make the special-shaped tubes densely arranged in the direction perpendicular to the long symmetry axis, while the arrangement in the direction parallel to the long symmetry axis is relatively sparse, affecting the heat exchange efficiency of the heat exchanger using special-shaped tubes. Further simulation with CFD technology found that the change in the cross-sectional shape of a single tube can effectively improve the resistance performance and heat exchange performance of a single heat exchange tube, but if the regular triangle cross row is still used to arrange these special-shaped heat exchange tubes, the improvement of the heat exchanger is not obvious.
[0004] In summary, it is necessary to design a new arrangement for special-shaped heat exchange tubes to improve the overall performance of the heat exchanger. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a method, equipment and storage medium for optimizing the arrangement of special-shaped heat exchange tubes, so as to avoid the problem that the distribution method of the regular triangle cross-row in the existing heat exchanger is not suitable for special-shaped heat exchange tubes, and to achieve the effect of improving the comprehensive performance of the heat exchanger using special-shaped heat exchange tubes.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] A method for optimizing the arrangement of special-shaped heat exchange tubes comprises the following steps:
[0008] S1. Establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized, and obtaining a comprehensive evaluation factor of the heat exchanger, wherein the comprehensive evaluation factor is used to evaluate the comprehensive heat exchange performance of the heat exchanger;
[0009] S2. Taking improving the comprehensive evaluation factor of the heat exchanger as the optimization goal, a genetic algorithm is used to solve the special-shaped heat exchange tube arrangement model to obtain the optimal arrangement method. The special-shaped heat exchange tubes can be arranged in the heat exchanger according to the optimal arrangement method.
[0010] To further improve the above technical solution, the calculation process of the comprehensive evaluation factor PEC is as follows:
[0011]
[0012] Where Nu is the Nusselt number; h″ is the convective heat transfer coefficient; D h represents the hydraulic diameter of the heat exchanger; k represents the thermal conductivity of the working fluid;
[0013]
[0014] Where q″ represents the heat flux density; T i represents the heat exchanger fluid inlet temperature, T o Indicates the outlet temperature of the heat exchanger fluid;
[0015]
[0016]
[0017] In the formula, f Fanning represents the Fanning friction coefficient; ΔP represents the pressure drop; L represents the flow length of the heat exchanger; ρ represents the fluid density; U0 represents the average value of the fluid inlet velocity of the heat exchanger within the time τ, t represents the time, τ represents the time for the fluid to flow through the unit length of the heat exchanger, and u represents the fluid flow rate;
[0018] For cyclical flows:
[0019]
[0020]
[0021]
[0022]
[0023] Where z represents a specific position in the flow length direction of the heat exchanger. is the average Nusselt number per unit time, <nu>represents the average Nusselt number per unit length, It represents the average Nusselt number per unit area per unit time; It represents the average Fanning friction coefficient per unit area per unit time;
[0024]
[0025] Among them, Nu0 and f Fanning0 They respectively represent the average Nusselt number per unit area and the average Fanning friction coefficient per unit area of the smooth straight channel under the condition of the heat exchanger inlet with U0 as a constant velocity.
[0026] Furthermore, in step S1, establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized specifically include:
[0027] For a single heat exchange tube: take the long axis of the cross section of the special-shaped heat exchange tube as the x-axis and the short axis of the cross section as the y-axis to establish a rectangular coordinate system. The position parameters of each heat exchange tube include the abscissa value x, the ordinate value y and the spin angle value θ;
[0028] R represents the radius of the inner circle of the heat exchanger cross section, and the inner circle of the heat exchanger cross section is divided into an inner circle with a radius of r and a circular ring with a radius of Rr, and then the inner circle is divided into n regions with equal areas, and the circular ring is divided into m regions with equal areas. The number of heat exchange tubes num is the sum of n and m; the initialization range of each heat exchange tube is determined in polar coordinates by the range function;
[0029] The specific content of the range function is shown in the following table:
[0030]
[0031] Where α represents the constraint correction angle.
[0032] Furthermore, the step S2 specifically includes:
[0033] S201, creating an initial population, wherein the initial population includes a plurality of chromosomes, each chromosome represents the arrangement of the special-shaped heat exchange tubes of a single heat exchanger, and the gene expression on each chromosome represents the position parameters of the special-shaped heat exchange tubes in a single heat exchanger; setting the number of heat exchange tubes, the number of populations, the number of iterations, the crossover probability and the mutation probability, and initializing the number of iterations;
[0034] Establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached;
[0035] S202, evaluating the comprehensive heat transfer performance of each chromosome in the population obtained in step S201, and establishing a decoding rule, specifically including:
[0036] Input the position parameters of the special-shaped heat exchange tube arrangement corresponding to each chromosome into the simulation software, perform simulation analysis under the preset working conditions, and obtain the comprehensive evaluation factor corresponding to each chromosome;
[0037] Calculate the fitness value Fit of each chromosome. The specific expression of the fitness value is as follows:
[0038]
[0039] The fitness value of each chromosome is obtained. The chromosome with a smaller fitness value means that the arrangement of the corresponding special-shaped heat exchange tube is better.
[0040] S203, based on the fitness calculation result obtained in step S202, performing selection, operation, crossover operation and mutation operation on the initial population to obtain a descendant population and update the number of iterations;
[0041] S204, performing the chromosome processing in step S201 again on each chromosome of the offspring population obtained in step S203 until the required population size is reached;
[0042] S205, repeat step S202 for each chromosome in the offspring population, obtain the fitness value of each chromosome in the offspring population, and save the minimum value minFit of the fitness value of each generation population and its corresponding chromosome;
[0043] S206. Repeat steps S203 to S205 until the preset number of iterations is reached or the fitness value meets the requirements, stop the iteration, and select the chromosome individual with the smallest fitness value as the optimal arrangement of the special-shaped heat exchange tubes in the heat exchanger. The inverse of the corresponding fitness value is the comprehensive evaluation factor of the heat exchanger under this arrangement.
[0044] Furthermore, in step S201, establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached specifically includes:
[0045] The Code function is combined with the linear interpolation method to randomly generate the heat exchange tube coordinates within the initialization range of each heat exchange tube by adding the lower bound of the boundary range to the boundary range. At this time, each heat exchange tube has an initialized polar coordinate (l i , theta i );
[0046] The specific expression of the Code function is as follows:
[0047] Generate a random number matrix pick, where the element rand takes values from a uniform distribution of 0-1, with a size of 1 row and 3×num columns. Get the polar coordinates of the position parameter of the i-th chromosome chrompole(i). The specific calculation formula is as follows:
[0048] pick=[rand1, rand2, rand3,...rand num ] T
[0049] chrompole(i)=bound1 T +(pick×(bound2-bound1)) T
[0050] The polar coordinates are converted into rectangular coordinates using the following formula to obtain the rectangular coordinate form of the position parameter of the i-th chromosome chrom(i):
[0051] chrom(i)=pol2cart(chrompole(i))
[0052] chrom(i)=[x1,y1,θ1,x2,y2,θ2,x3,y3,θ3,...,x num ,y num ,θ num ]
[0053] Bound1 represents the lower bound of the boundary range, bound2 represents the upper bound of the boundary range, and the specific definition of the boundary matrix is as follows:
[0054] bound1=[theta1(1), l1(1), θ1(1), theta1(2), l1(2), θ1(2),..., theta1(i), l1(i), θ1(i)] T
[0055] bound2=[theta2(1), l2(1), θ2(1), theta2(2), l2(2), θ2(2), ..., theta2(i), l2(i), θ2(i)] T
[0056] Then, the Test function is used to perform boundary collision detection on chrom(i), and the minimum distance between every two heat exchange tubes is constrained. The position parameters of the special-shaped heat exchange tube arrangement corresponding to the chromosomes that meet the constraint conditions are input into the simulation software, and simulation analysis is performed under the preset working conditions to obtain the comprehensive evaluation factor corresponding to each chromosome, and the corresponding fitness value is calculated;
[0057] The specific expression of the Test function is as follows:
[0058] First calculate the ideal distance between the center coordinates of the two heat exchange tubes:
[0059] max l =2×(a+0.1)
[0060] Then calculate the distance between the two heat exchange tubes:
[0061]
[0062] Perform pairwise calculations between 1-num heat exchange tubes and take the minimum value:
[0063]
[0064] When min distance <2×max l When , it is determined that the chromosome does not meet the constraints, the chromosome that does not meet the constraints is discarded, and the Code function is used to regenerate new genes that meet the constraints, and then the chromosome that meets the constraints is obtained until the required population size is reached.
[0065] Furthermore, the step S203 specifically includes:
[0066] Selection: Based on the fitness calculation result obtained in step S202, a roulette method is used to make individuals with lower fitness more likely to be selected;
[0067] Crossover: Set the crossover probability to pcross, generate a random number that conforms to the uniform distribution of 0-1, and start crossover when the random number is less than the crossover probability, otherwise cancel crossover;
[0068] The two selected chromosomes will randomly select a segment from a certain gene position to the last gene position as the crossover segment, and then the two chromosomes will directly exchange gene segments to produce new chromosome individuals;
[0069] After completing the crossover, continue to use the Test function to check whether the chromosome meets the constraints. If not, cross over again until it meets the constraints.
[0070] Mutation: 20% of the total chromosomes are mutated, and the chromosome and gene positions are selected using random functions and rounding up. The original chromosome genes are randomly linearly interpolated. After completion, the Test function is used to perform boundary collision detection to determine whether the constraints are met. Finally, the newly generated chromosome individuals are used to replace the chromosome individuals in the original population to form a new generation.
[0071] The present invention also relates to a device, comprising a memory and a processor, wherein the memory stores computer processing instructions, and the processor executes the above-mentioned method for optimizing the arrangement of special-shaped heat exchange tubes by calling the computer processing instructions.
[0072] The present invention also relates to a storage medium, wherein the storage medium stores one or more programs, and when the one or more programs are executed by a processor, the steps of the above-mentioned method for optimizing the arrangement of special-shaped heat exchange tubes are executed.
[0073] Compared with the prior art, the present invention has the following beneficial effects:
[0074] A method for optimizing the arrangement of special-shaped heat exchange tubes of the present invention changes the position parameters of the special-shaped heat exchange tubes to improve the comprehensive heat exchange performance of the heat exchanger as the optimization goal, and then based on a genetic algorithm, real number encoding is performed on the position parameters of the heat exchange tube arrangement to generate a population, simulate natural selection in iterations to cross-variate, obtain the optimal arrangement through the survival of the fittest, and optimize the arrangement of the special-shaped heat exchange tubes in the heat exchanger; in this way, on the basis of changing the cross-sectional shape of a single heat exchange tube, the arrangement of the special-shaped tubes in the heat exchange tubes is further optimized, which can significantly improve the comprehensive heat exchange performance of the heat exchanger; and the optimization method of the present invention is applicable to various special-shaped tubes and has universal applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a schematic diagram of establishing a special-shaped tube arrangement model in the embodiment (heat exchanger);
[0076] Figure 2 Schematic diagram of establishing a special-shaped tube arrangement model in the embodiment (single heat exchange tube);
[0077] Figure 3 This is an example of the optimized arrangement of RBC type heat exchange tubes used in the embodiment;
[0078] Figure 4 This is an example of the optimized arrangement of the elliptical heat exchange tubes used in the embodiment;
[0079] Figure 5 This is an example of the optimized arrangement of the water drop-shaped heat exchange tubes used in the embodiment;
[0080] Figure 6 Schematic diagram of the cross-sectional shape of the RBC type heat exchange tube in the embodiment. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0082] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invented product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and it does not mean that the structure must be completely horizontal, but it can be slightly tilted. In the description of the present invention, it should also be noted that, unless otherwise clearly specified and limited, the terms "setting", "installation", "connection", and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0083] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0084] A method for optimizing the arrangement of special-shaped heat exchange tubes in a specific embodiment includes the following steps:
[0085] S1. Establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized, and obtaining a comprehensive evaluation factor of the heat exchanger, wherein the comprehensive evaluation factor is used to evaluate the comprehensive heat exchange performance of the heat exchanger;
[0086] S2. Taking improving the comprehensive evaluation factor of the heat exchanger as the optimization goal, a genetic algorithm is used to solve the special-shaped heat exchange tube arrangement model to obtain the optimal arrangement method. The special-shaped heat exchange tubes can be arranged in the heat exchanger according to the optimal arrangement method.
[0087] A method for optimizing the arrangement of special-shaped heat exchange tubes in an embodiment changes the position parameters of the special-shaped heat exchange tubes to improve the comprehensive heat exchange performance of the heat exchanger as the optimization goal, and then based on a genetic algorithm, real number encoding is performed on the position parameters of the heat exchange tube arrangement to generate a population, simulate natural selection in iterations to cross-variate, obtain the optimal arrangement through the survival of the fittest, and optimize the arrangement of the special-shaped heat exchange tubes in the heat exchanger; in this way, on the basis of changing the cross-sectional shape of a single heat exchange tube, the arrangement of the special-shaped tubes in the heat exchange tubes is further optimized, which can significantly improve the comprehensive heat exchange performance of the heat exchanger; and the optimization method of the present invention is applicable to various special-shaped tubes and has universal applicability.
[0088] The calculation process of the comprehensive evaluation factor PEC is as follows:
[0089]
[0090] Where Nu is the Nusselt number; h″ is the convective heat transfer coefficient; D h represents the hydraulic diameter of the heat exchanger; k represents the thermal conductivity of the working fluid;
[0091]
[0092] Where q″ represents the heat flux density; T i represents the heat exchanger fluid inlet temperature, T o Indicates the outlet temperature of the heat exchanger fluid;
[0093]
[0094]
[0095] In the formula, f Fanning represents the Fanning friction coefficient; ΔP represents the pressure drop; L represents the flow length of the heat exchanger; ρ represents the fluid density; U0 represents the average value of the fluid inlet velocity of the heat exchanger within the time τ, t represents the time, τ represents the time for the fluid to flow through the unit length of the heat exchanger, and u represents the fluid flow rate;
[0096] For cyclical flows:
[0097]
[0098]
[0099]
[0100]
[0101] Where z represents a specific position in the flow length direction of the heat exchanger. is the average Nusselt number per unit time, <nu>represents the average Nusselt number per unit length, It represents the average Nusselt number per unit area per unit time; It represents the average Fanning friction coefficient per unit area per unit time;
[0102]
[0103] Among them, Nu0 and f Fanning0 They respectively represent the average Nusselt number per unit area and the average Fanning friction coefficient per unit area of the smooth straight channel under the condition of the heat exchanger inlet with U0 as a constant velocity.
[0104] Thus, through the expression of comprehensive evaluation factor PEC, Used to reflect the temperature change of the heat exchanger. Used to reflect the change in pressure difference of the heat exchanger.
[0105] Among them, see Figure 1 and Figure 2 In step S1, establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized specifically include:
[0106] For a single heat exchange tube: take the long axis of the cross section of the special-shaped heat exchange tube as the x-axis and the short axis of the cross section as the y-axis to establish a rectangular coordinate system. The position parameters of each heat exchange tube include the abscissa value x, the ordinate value y and the spin angle value θ;
[0107] R represents the radius of the inner circle of the heat exchanger cross section, and the inner circle of the heat exchanger cross section is divided into an inner circle with a radius of r and a circular ring with a radius of Rr, and then the inner circle is divided into n regions with equal areas, and the circular ring is divided into m regions with equal areas. The number of heat exchange tubes num is the sum of n and m; the initialization range of each heat exchange tube is determined in polar coordinates by the range function;
[0108] In specific implementation, the range function is specifically the following table to determine the initialization range of each heat exchange tube:
[0109]
[0110]
[0111] In the table, α represents the constraint correction angle.
[0112] Wherein, the step S2 specifically includes:
[0113] S201, creating an initial population, wherein the initial population includes a number of chromosomes, each chromosome represents the arrangement of the special-shaped heat exchange tubes of a single heat exchanger, and the gene expression on each chromosome represents the position parameters of the special-shaped heat exchange tubes in a single heat exchanger; setting the number of heat exchange tubes, the number of populations, the number of iterations, the crossover probability and the mutation probability, and initializing the number of iterations; since the position parameters of each special-shaped heat exchange tube include the abscissa value x, the ordinate value y and the spin angle value θ, the number of genes on each chromosome is three times the number of heat exchange tubes. After setting the number of heat exchange tubes, the number of genes on each chromosome can also be determined;
[0114] Establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached;
[0115] S202, evaluating the comprehensive heat transfer performance of each chromosome in the population obtained in step S201, and establishing a decoding rule, specifically including:
[0116] Input the position parameters of the special-shaped heat exchange tube arrangement corresponding to each chromosome into the simulation software, perform simulation analysis under the preset working conditions, and obtain the comprehensive evaluation factor corresponding to each chromosome;
[0117] Calculate the fitness value Fit of each chromosome. The specific expression of the fitness value is as follows:
[0118]
[0119] The fitness value of each chromosome is obtained. The chromosome with a smaller fitness value means that the arrangement of the corresponding special-shaped heat exchange tube is better.
[0120] S203, based on the fitness calculation result obtained in step S202, performing selection, operation, crossover operation and mutation operation on the initial population to obtain a descendant population and update the number of iterations;
[0121] S204, performing the chromosome processing in step S201 again on each chromosome of the offspring population obtained in step S203 until the required population size is reached;
[0122] S205, repeat step S202 for each chromosome in the offspring population, obtain the fitness value of each chromosome in the offspring population, and save the minimum value minFit of the fitness value of each generation population and its corresponding chromosome;
[0123] S206. Repeat steps S203 to S205 until the preset number of iterations is reached or the fitness value meets the requirements, stop the iteration, and select the chromosome individual with the smallest fitness value as the optimal arrangement of the special-shaped heat exchange tubes in the heat exchanger. The inverse of the corresponding fitness value is the comprehensive evaluation factor of the heat exchanger under this arrangement.
[0124] During implementation, in step S202, the position parameters of the special-shaped heat exchange tube arrangement corresponding to each chromosome are input into MATLAB Livelink For COMSOL, and simulation can be performed to obtain the temperature change and pressure difference change of the heat exchanger model corresponding to each chromosome, and the comprehensive evaluation factor corresponding to the chromosome can be calculated, and then the fitness value can be calculated.
[0125] Wherein, in step S201, establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached specifically includes:
[0126] The Code function is combined with the linear interpolation method to randomly generate the heat exchange tube coordinates within the initialization range of each heat exchange tube by adding the lower bound of the boundary range to the boundary range. At this time, each heat exchange tube has an initialized polar coordinate (l i , theta i );
[0127] The specific expression of the Code function is as follows:
[0128] Generate a random number matrix pick, where the element rand takes values from a uniform distribution of 0-1, with a size of 1 row and 3×num columns. Get the polar coordinates of the position parameter of the i-th chromosome chrompole(i). The specific calculation formula is as follows:
[0129] pick=[rand1, rand2, rand3,...rand num ] T
[0130] chrompole(i)=bound1 T +(pick×(bound2-bound1)) T
[0131] The polar coordinates are converted into rectangular coordinates using the following formula to obtain the rectangular coordinate form of the position parameter of the i-th chromosome chrom(i):
[0132] chrom(i)=pol2cart(chrompole(i))
[0133] chrom(i)=[x1,y1,θ1,x2,y2,θ2,x3,y3,θ3,...,x num ,y num ,θ num ]
[0134] Bound1 represents the lower bound of the boundary range, bound2 represents the upper bound of the boundary range, and the specific definition of the boundary matrix is as follows:
[0135] bound1=[theta1(1), l1(1), θ1(1), theta1(2), l1(2), θ1(2),..., theta1(i), l1(i), θ1(i)] T
[0136] bound2=[theta2(1), l2(1), θ2(1), theta2(2), l2(2), θ2(2), ....., theta2(i), l2(i), θ2(i)] T
[0137] Then, the Test function is used to perform boundary collision detection on chrom(i), and the minimum distance between every two heat exchange tubes is constrained. The position parameters of the special-shaped heat exchange tube arrangement corresponding to the chromosomes that meet the constraint conditions are input into the simulation software, and simulation analysis is performed under the preset working conditions to obtain the comprehensive evaluation factor corresponding to each chromosome, and the corresponding fitness value is calculated;
[0138] The specific expression of the Test function is as follows:
[0139] First calculate the ideal distance between the center coordinates of the two heat exchange tubes:
[0140] max l =2×(a+0.1)
[0141] Then calculate the distance between the two heat exchange tubes:
[0142]
[0143] Perform pairwise calculations between 1-num heat exchange tubes and take the minimum value:
[0144]
[0145] When min distance <2×max l When , it is determined that the chromosome does not meet the constraints, the chromosome that does not meet the constraints is discarded, and the Code function is used to regenerate new genes that meet the constraints, and then the chromosome that meets the constraints is obtained until the required population size is reached.
[0146] Wherein, the step S203 specifically includes:
[0147] Selection: Based on the fitness calculation result obtained in step S202, a roulette wheel method is used to make individuals with lower fitness more likely to be selected;
[0148] Crossover: Set the crossover probability to pcross, generate a random number that conforms to the uniform distribution of 0-1, and start crossover when the random number is less than the crossover probability, otherwise cancel crossover;
[0149] The two selected chromosomes will randomly select a segment from a certain gene position to the last gene position as the crossover segment, and then the two chromosomes will directly exchange gene segments to produce new chromosome individuals;
[0150] After completing the crossover, continue to use the Test function to check whether the chromosome meets the constraints. If not, cross over again until it meets the constraints.
[0151] Mutation: 20% of the total chromosomes are mutated, and the chromosome and gene positions are selected using random functions and rounding up. The original chromosome genes are randomly linearly interpolated. After completion, the Test function is used to perform boundary collision detection to determine whether the constraints are met. Finally, the newly generated chromosome individuals are used to replace the chromosome individuals in the original population to form a new generation.
[0152] During implementation, the mutation operation is performed using the following calculation formula:
[0153] pos=ceil(rand×num)-1
[0154] Among them, pos represents the position of the selected mutation, and its position must start from the x-coordinate of a certain heat exchange tube; rand represents a random function, which is a random number between 0 and 1; ceil represents rounding up.
[0155] Randomly select 1-3 heat exchange tube position parameters, that is, 3-9 consecutive data for mutation.
[0156] When the random number fg>0.5,
[0157] chrom(i, pos)=chrom(i, pos)+fg×(bound(pos, 2)-chrom(i, pos)) T
[0158] When the random number fg<0.5,
[0159] chrom(i, pos)=chrom(i, pos)+fg×(chrom(i, pos)-bound(pos, 1)) T
[0160] Wherein, chrom(i, pos) represents the posth gene of the i-th chromosome; bound(pos, 1) represents the lower bound of the position parameter corresponding to the mutated gene, and bound(pos, 2) represents the upper bound of the position parameter corresponding to the mutated gene;
[0161] Taking the third heat exchange tube as an example, the data after mutation is
[0162] chrom(inew)=[x 1i ,y 1i ,θ 1i , x 2new ,y 2new ,θ 2new , x 3i ,y 3i ,θ 3i ,......,x numi ,y numi ,θ numi ]
[0163] Among them, chrom(inew) represents the position parameter of the ith chromosome after mutation.
[0164] Below, an example of an implementation of a method for optimizing the arrangement of special-shaped heat exchange tubes according to the present invention is shown.
[0165] A shell and tube heat exchanger is formed by 14 special-shaped tubes, and the optimization method of the present invention is applied to obtain the best arrangement in this example:
[0166] See also Figure 4 , is an example of the arrangement of heat exchange tubes in a shell and tube heat exchanger composed of elliptical heat exchange tubes after being optimized by the optimization method of the present invention; Figure 4 The position parameters corresponding to each elliptical heat exchange tube are shown in the following table:
[0167]
[0168] See also Figure 5 , is an example of the arrangement of heat exchange tubes in a shell and tube heat exchanger composed of water drop-shaped heat exchange tubes after being optimized by the optimization method of the present invention; Figure 5 The position parameters corresponding to each drop-shaped heat exchange tube are shown in the following table:
[0169]
[0170] See also Figure 3 , is an example of the arrangement of heat exchange tubes in a shell and tube heat exchanger composed of RBC (red blood cell) type heat exchange tubes after being optimized by the optimization method of the present invention; Figure 3 The position parameters corresponding to each RBC type heat exchange tube are shown in the following table:
[0171]
[0172] For this RBC type heat exchange tube, please refer to Figure 6 The cross-sectional shape is a centrally symmetrical double-concave disc-shaped structure, the left and right ends of the cross-sectional shape are two symmetrical major arcs, and the middle concave parts of the upper and lower surfaces of the cross-sectional shape are two symmetrical minor arcs; both ends of the minor arc segment are tangently transitionally connected to the adjacent major arc segment.
[0173] The RBC type heat exchange tube is further described below: its cross-sectional shape satisfies the following configuration equation:
[0174]
[0175] Among them, r M Represents the radius of the major arc, R M represents the radius of the minor arc, θ M Indicates the central angle of the minor arc; I is the replacement variable, I = θ M +sinθ M +π.
[0176] The configuration equation must satisfy the configuration constraint, and the specific expression of the configuration constraint is as follows:
[0177]
[0178] Among them, D max Indicates the maximum value of the cross-sectional thickness, D min Indicates the minimum value of the cross-sectional thickness.
[0179] The equivalent diameter of the cross-sectional shape of the RBC type heat exchange tube body The value range of is 0.015-0.218;
[0180] The expression of the equivalent diameter is as follows:
[0181]
[0182] Among them, H M Indicates half of the minimum distance between the upper and lower minor arcs, L M It represents half of the maximum distance between the major arcs at both ends.
[0183] The optimal shape parameters of the cross-sectional shape of the RBC type heat exchange tube body are specifically: equivalent diameter
[0184] The RBC type heat exchange tubes with the above-mentioned optimal shape parameters are selected to form a shell and tube heat exchanger, and the optimization method of the present invention is used to obtain an arrangement example, whose comprehensive evaluation factor is increased by 13.72% compared with the equilateral triangle arrangement and by 34.98% compared with the traditional round tube heat exchanger.
[0185] The above-mentioned RBC type heat exchange tube applies the double-concave disc-shaped RBC to the tube shape of the heat exchange tube, and regards the cross-section of the RBC as a combination of two sections of superior arcs arranged symmetrically on the left and right and two sections of inferior arcs arranged symmetrically on the top and bottom, so as to obtain the cross-section of the RBC type heat exchange tube; compared with ordinary circular tubes, the equivalent diameter of the RBC type heat exchange tube is reduced, and the wake area is also smaller, which is beneficial to reducing the vortex-induced oscillation effect of the heat exchange tube. At the same time, the double-concave structure of the RBC can enhance the turbulence in a small range. As the equivalent diameter decreases, the fluid flow cross-section of the double-concave part increases rapidly, the residence time in the turbulent zone is prolonged, the heat exchange area is significantly increased, and convective heat exchange is effectively promoted; the RBC type low-resistance enhanced heat exchange tube has good flow characteristics, can reduce pressure loss, and significantly improves the comprehensive heat exchange performance.
[0186] The present invention also provides a storage medium, wherein the storage medium stores one or more programs, and when the one or more programs are executed by a processor, the steps of the above-mentioned method for optimizing the arrangement of special-shaped heat exchange tubes are executed.
[0187] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.< / nu> < / nu>
Claims
1. A method for optimizing the arrangement of special-shaped heat exchange tubes, characterized in that: The following steps are involved: S1. Establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized, and obtaining a comprehensive evaluation factor of the heat exchanger, wherein the comprehensive evaluation factor is used to evaluate the comprehensive heat exchange performance of the heat exchanger; S2. Taking improving the comprehensive evaluation factor of the heat exchanger as the optimization goal, a genetic algorithm is used to solve the special-shaped heat exchange tube arrangement model to obtain the optimal arrangement method. The special-shaped heat exchange tubes can be arranged in the heat exchanger according to the optimal arrangement method.
2. The method for optimizing the arrangement of special-shaped heat exchange tubes according to claim 1, characterized in that: The calculation process of the comprehensive evaluation factor PEC is as follows: Where Nu is the Nusselt number; h″ is the convective heat transfer coefficient; D h represents the hydraulic diameter of the heat exchanger; k represents the thermal conductivity of the working fluid; Where q″ represents the heat flux density; T i represents the heat exchanger fluid inlet temperature, T o Indicates the outlet temperature of the heat exchanger fluid; In the formula, f Fanning represents the Fanning friction coefficient; ΔP represents the pressure drop; L represents the flow length of the heat exchanger; ρ represents the fluid density; U0 represents the average inlet velocity of the heat exchanger fluid within the time period of τ, t represents time, τ represents the time for the fluid to flow through the unit length of the heat exchanger, and u represents the fluid flow rate; For cyclical flows: Where z represents a specific position in the flow length direction of the heat exchanger. is the average Nusselt number per unit time, <nu>represents the average Nusselt number per unit length, It represents the average Nusselt number per unit area per unit time; It represents the average Fanning friction coefficient per unit area per unit time;< / nu> Among them, Nu0 and f Fanning0 They respectively represent the average Nusselt number per unit area and the average Fanning friction coefficient per unit area of the smooth straight channel under the condition of the heat exchanger inlet with U0 as a constant velocity.
3. The method for optimizing the arrangement of special-shaped heat exchange tubes according to claim 2, characterized in that: In step S1, establishing a special-shaped heat exchange tube arrangement model and determining the position parameters of the heat exchange tube to be optimized specifically include: For a single heat exchange tube: take the long axis of the cross section of the special-shaped heat exchange tube as the x-axis and the short axis of the cross section as the y-axis to establish a rectangular coordinate system. The position parameters of each heat exchange tube include the abscissa value x, the ordinate value y and the spin angle value θ; R represents the radius of the inner circle of the heat exchanger cross section, and the inner circle of the heat exchanger cross section is divided into an inner circle with a radius of r and a circular ring with a radius of Rr, and then the inner circle is divided into n regions with equal areas, and the circular ring is divided into m regions with equal areas. The number of heat exchange tubes num is the sum of n and m; the initialization range of each heat exchange tube is determined in polar coordinates by the range function; The specific content of the range function is shown in the following table: Where α represents the constraint correction angle.
4. The method for optimizing the arrangement of special-shaped heat exchange tubes according to claim 3, characterized in that: The step S2 specifically includes: S201, creating an initial population, wherein the initial population includes a plurality of chromosomes, each chromosome represents the arrangement of the special-shaped heat exchange tubes of a single heat exchanger, and the gene expression on each chromosome represents the position parameters of the special-shaped heat exchange tubes in a single heat exchanger; setting the number of heat exchange tubes, the number of populations, the number of iterations, the crossover probability and the mutation probability, and initializing the number of iterations; Establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached; S202, evaluating the comprehensive heat transfer performance of each chromosome in the population obtained in step S201, and establishing a decoding rule, specifically including: Input the position parameters of the special-shaped heat exchange tube arrangement corresponding to each chromosome into the simulation software, perform simulation analysis under the preset working conditions, and obtain the comprehensive evaluation factor corresponding to each chromosome; Calculate the fitness value Fit of each chromosome. The specific expression of the fitness value is as follows: The fitness value of each chromosome is obtained. The chromosome with a smaller fitness value means that the arrangement of the corresponding special-shaped heat exchange tube is better. S203, based on the fitness calculation result obtained in step S202, performing selection, operation, crossover operation and mutation operation on the initial population to obtain a descendant population and update the number of iterations; S204, performing the chromosome processing in step S201 again on each chromosome of the offspring population obtained in step S203 until the required population size is reached; S205, repeat step S202 for each chromosome in the offspring population, obtain the fitness value of each chromosome in the offspring population, and save the minimum value minFit of the fitness value of each generation population and its corresponding chromosome; S206. Repeat steps S203 to S205 until the preset number of iterations is reached or the fitness value meets the requirements, stop the iteration, and select the chromosome individual with the smallest fitness value as the optimal arrangement of the special-shaped heat exchange tubes in the heat exchanger. The inverse of the corresponding fitness value is the comprehensive evaluation factor of the heat exchanger under this arrangement.
5. The method for optimizing the arrangement of special-shaped heat exchange tubes according to claim 4, characterized in that: In step S201, establishing a coding rule, and screening chromosomes that meet the requirements according to the coding rule until the required population size is reached specifically includes: The Code function is combined with the linear interpolation method to randomly generate the heat exchange tube coordinates within the initialization range of each heat exchange tube by adding the lower bound of the boundary range to the boundary range. At this time, each heat exchange tube has an initialized polar coordinate (l i ,theta i ); The specific expression of the Code function is as follows: Generate a random number matrix pick, where the element rand takes values from a uniform distribution of 0-1, with a size of 1 row and 3×num columns. Get the polar coordinates of the position parameter of the i-th chromosome chrompole(i). The specific calculation formula is as follows: pick=[rand1,rand2,rand3,……rand num ] T chromepole(i)=bound1 T +(pick×(bound2-bound1)) T The polar coordinates are converted into rectangular coordinates using the following formula to obtain the rectangular coordinate form of the position parameter of the i-th chromosome chrom(i): chrom(i)=pol2cart(chrompole(i)) chrom(i)=[x1,y1,θ1,x2,y2,θ2,x3,y3,θ3,……,x num ,y num ,θ num ] Bound1 represents the lower bound of the boundary range, bound2 represents the upper bound of the boundary range, and the specific definition of the boundary matrix is as follows: bound1=[theta1(1),l1(1),θ1(1),teta1(2),l1(2),θ1(2),……,theta1(i),l1(i),θ1(i)] T bound2=[theta2(1),l2(1),θ2(1),theta2(2),l2(2),θ2(2),…,theta2(i),l2(i),θ2(i)] T Then, the Test function is used to perform boundary collision detection on chrom(i), and the minimum distance between every two heat exchange tubes is constrained. The position parameters of the special-shaped heat exchange tube arrangement corresponding to the chromosomes that meet the constraint conditions are input into the simulation software, and simulation analysis is performed under the preset working conditions to obtain the comprehensive evaluation factor corresponding to each chromosome, and the corresponding fitness value is calculated; The specific expression of the Test function is as follows: First calculate the ideal distance between the center coordinates of the two heat exchange tubes: max l =2×(a+0.1) Then calculate the distance between the two heat exchange tubes: Perform pairwise calculations between 1-num heat exchange tubes and take the minimum value: When min distance <2×max l When , it is determined that the chromosome does not meet the constraints, the chromosome that does not meet the constraints is discarded, and the Code function is used to regenerate new genes that meet the constraints, and then the chromosome that meets the constraints is obtained until the required population size is reached.
6. The method for optimizing the arrangement of special-shaped heat exchange tubes according to claim 5, characterized in that: The step S203 specifically includes: Selection: Based on the fitness calculation result obtained in step S202, a roulette method is used to make individuals with lower fitness more likely to be selected; Crossover: Set the crossover probability to pcross, generate a random number that conforms to the uniform distribution of 0-1, and start crossover when the random number is less than the crossover probability, otherwise cancel crossover; The two selected chromosomes will randomly select a segment from a certain gene position to the last gene position as the crossover segment, and then the two chromosomes will directly exchange gene segments to produce new chromosome individuals; After completing the crossover, continue to use the Test function to check whether the chromosome meets the constraints. If not, cross over again until it meets the constraints. Mutation: 20% of the total chromosomes are mutated, and the chromosome and gene positions are selected using random functions and rounding up. The original chromosome genes are randomly linearly interpolated. After completion, the Test function is used to perform boundary collision detection to determine whether the constraints are met. Finally, the newly generated chromosome individuals are used to replace the chromosome individuals in the original population to form a new generation.
7. A device, characterized in that: The device includes a memory and a processor, the memory stores computer processing instructions, and the processor executes a method for optimizing the arrangement of special-shaped heat exchange tubes according to any one of claims 1 to 6 by calling the computer processing instructions.
8. A storage medium, characterized in that: The storage medium stores one or more programs, and when the one or more programs are executed by the processor, the steps of the method for optimizing the arrangement of special-shaped heat exchange tubes according to any one of claims 1 to 6 are executed.
Citation Information
Cited By
Hydraulic part multi-element arrangement design method and system based on additive manufacturing
CN118981968A
Method and device for optimizing layout rule of heat dissipation bottom plate
CN119312686A
