3.2. Optimization of Spatial Array via a Hybrid Deep Learning-Genetic Algorithm Approach
The discussion in the previous section showed that under a limited number of BCC structures, spatial arrangement plays a decisive role in suppressing HTD for supercritical CO
2. In this section, a genetic algorithm capable of global optimization is employed to investigate whether an optimal spatial arrangement exists, aiming to achieve the best possible HTD suppression effect and thereby guide the design for suppressing HTD in supercritical CO
2 systems. The Genetic Algorithm (GA) [
33] is a heuristic algorithm inspired by biological evolution in nature. It is one of the common methods for finding optimal solutions to optimization problems with relatively low computational cost. Its main principle involves maintaining a fixed population size, generating new offspring through genetic crossover and mutation, and selecting the fittest individuals via survival of the fittest. The objective of this study is to use the GA to find the spatial arrangement that yields the minimum Δ
T*
max for a fixed number of BCC lattice structures. This necessitates constructing a function approximation model to calculate the fitness which in this problem is Δ
T*
max for various arrangements. Considering the complex heat transfer characteristics of supercritical CO
2 flowing through channels with BCC lattice structures, a deep learning approach is adopted to establish a neural network model for fitting the data of each case. The dataset utilizes the results from
Section 3.1. Data points are sampled at 1 mm intervals along the flow direction for each simulation case, yielding approximately 20,000 data points. 90% of these are used as the training set and 10% as the test set to train a neural network with 8 inputs (7 quantitative arrangement parameters and 1 streamwise position parameter) and 1 output (local Δ
T*). This model is used to compute the streamwise distribution of Δ
T* for each case. The fitness (Δ
T*
max) for a given arrangement is then determined by comparing all local Δ
T* values along the flow direction for that arrangement. Upon completion of training, the
R2 values for both the validation and test sets exceed 0.999, prompting early stopping and confirming model convergence. Model validation is shown in
Figure 9, where an unseen configuration (i.e., not encountered during training) is used, indicating reasonable generalization ability.
Taking the case with 5 BCC lattice structures as an example, the GA is employed to search for the arrangement that minimizes Δ
T*
max. Real-number encoding, random-position crossover, and Gaussian mutation are employed in the genetic algorithm. For the optimization of five BCC structures, in addition to the geometric constraints described in
Section 2.1, the conditions
x6 =
x7 = 0 must be satisfied. These two variables are therefore fixed at zero and excluded from the evolution process, effectively reducing the dimensionality of the optimization problem. The genetic algorithm was configured with a constant population size of 500 over 50 generations. For crossover, a random-position single-point scheme is used: for each pair of parent individuals, a crossover point is uniformly selected along the gene length, and the offspring inherit genes from the two parents on either side of this point. The crossover probability is set to 1.0, meaning all offspring pairs undergo crossover. Mutation is performed using a Gaussian operator: for every offspring individual, a randomly selected gene is perturbed by adding a normally distributed random value with zero mean and a standard deviation of 5% of the variable range, followed by clipping to the feasible bounds from 10 to 50 for the active variables. The mutation rate is 1.0 per individual. Selection is based on fitness ranking, favoring individuals with lower objective values. A population size of 500 was chosen following preliminary trials to balance computational efficiency and solution quality while avoiding premature convergence. Convergence was monitored via the best fitness value, which stabilized well before the final generation. The optimization terminates when the optimal solution exhibits minimal change over successive generations. To avoid local optima, the entire process was repeated three times, producing consistent results. Therefore, it is concluded that an optimal spatial arrangement exists for 5 BCC lattice structures under the given conditions, and the optimal arrangement is: [34.9, 54.1, 11.6, 56.6, 29.9, 0, 0]. To verify the accuracy of the prediction, CFD simulations were conducted for this optimal arrangement to obtain its heat transfer characteristics. As shown in
Figure 9, the black curve represents the HTD condition in a smooth tube, where regions with Δ
T* > 1.0 are considered to be in a state of HTD. In contrast, the optimized result completely suppresses HTD, with a maximum Δ
T*
max of 0.69. Furthermore, the model’s prediction shows good agreement with the CFD results, with a maximum error of approximately 8.8%. Since the optimal arrangement did not appear in either the training or test sets, this also demonstrates the reliability of the predictive deep learning model. Compared to the average Δ
T*
max of random arrangements, the optimization result shows an improvement of 38.86% and completely eliminates the HTD phenomenon.
The positional relationship between the optimal arrangement and the HTD temperature peak was further analyzed. It can be inferred that placing BCC structures sequentially upstream of each temperature peak could yield a favorable arrangement. To quantitatively analyze the relationship between the optimal arrangement and the positions of individual temperature peaks, a step-by-step CFD analysis was performed by adding BCC structures one by one, as illustrated in
Figure 10. After obtaining the wall temperature distribution for the smooth tube (a), the first BCC structure was placed at the location of the temperature peak (marked in red on the axis). A second CFD simulation was then conducted for the channel with one BCC structure to obtain the new wall temperature distribution (b) and identify the new temperature peak position, where the second BCC was inserted. This process was repeated through multiple CFD simulations, inserting BCC structures at each identified temperature peak, resulting in a predicted arrangement: [6.33
D, 8.67
D, 3
D, 8.83
D, 3.67
D]. Comparing this to the optimal arrangement [5.82
D, 9.02
D, 1.93
D, 9.43
D, 4.98
D] (marked in blue in subplot (f)), the discrepancy is relatively small. However, considering the significant computational cost and complexity of obtaining the optimal arrangement, an approximate optimal arrangement rule can be derived by correcting the predicted arrangement.
Comparing the two results suggests a corrected rule: insert BCC lattice structures at 0.5–2
D upstream of each identified temperature peak. Even so, obtaining an approximate optimal arrangement requires conducting CFD simulations a number of times equal to the number of BCC structures. To explore whether a simpler design method exists, an input sensitivity analysis was performed based on the optimal arrangement results. As shown in
Figure 11, while keeping the other four inputs of the optimal arrangement fixed, the positions of the first, second, third, fourth, and fifth BCC structures (Δ
x1~Δ
x5) were varied individually to observe the corresponding changes in relative temperature difference along the flow direction. The results indicate that only the change in the position of the first BCC structure leads to a significant variation in Δ
T*, even exceeding 1.0 and causing HTD. Although changes in the positions of subsequent BCC structures result in different Δ
T* distributions, their impact on the maximum Δ
T* is relatively minor. Therefore, to design a simplified arrangement with performance close to the approximate optimal one at a lower computational cost, one can consider placing the first BCC structure at 0.5~2
D upstream of the HTD temperature peak in the smooth channel (as per the approximate optimal design rule above), while distributing the remaining BCC structures uniformly within the channel section between the first BCC structure and the outlet. The underlying flow physics can be summarized as follows: at the leading edge of a BCC structure, an impinging flow generates reverse horseshoe-shaped vortices that enhance local mixing. At the trailing edge, flow separation produces a streamwise vortex that extends far downstream, persistently increasing turbulence intensity. Moreover, at ligament intersections, longitudinal vortex pairs induce secondary flows that enhance radial mixing between the bulk fluid and the boundary layer, thereby weakening the buoyancy effect—the primary driver of heat transfer deterioration (HTD). These mechanisms explain why placing the first BCC structure within 0.5–2
D upstream of the expected temperature peak is critical: it disrupts the developing deterioration before the peak forms, and the induced vortices sustain improved mixing downstream. For more details, see ref. [
28].
Figure 12 summarizes the arrangement design methodology proposed in this chapter. First, determine the maximum allowable number of BCC structures within the channel based on design requirements, and test whether a uniform arrangement can effectively suppress HTD (i.e., achieve Δ
T*
max < 1.0). If a uniform arrangement fails to suppress HTD, optimization design should be considered. If the goal is to obtain an HTD-suppressing arrangement with relatively low computational cost, a simplified design can be adopted, focusing primarily on the placement of the first BCC structure while arranging the remaining structures uniformly. If an approximate optimal arrangement is desired, the position of each BCC structure needs to be considered.
It is important to note that the proposed design methodology, including the 0.5–2
D placement rule and the simplified design flowchart, is derived based on the specific baseline configuration and operating conditions investigated in this study. While the validation case under different operating conditions in
Section 3.3 demonstrates the potential applicability of this approach, the current evidence is limited to a relatively narrow parameter range. Therefore, the proposed design strategy should be regarded as a case-supported engineering heuristic for rapid preliminary design rather than a universally validated methodology. When applied to significantly different geometries or operating conditions, further verification through numerical simulation or experimental testing is recommended to ensure the effectiveness of the design.
3.3. Validation of the Proposed Design Methodology
To validate the reliability of the optimization design methodology, a different operating condition case was randomly selected to verify its effectiveness in suppressing HTD. As shown in
Table 6, the selected validation conditions differ from the previously used design conditions, allowing for an assessment of the generalizability of the proposed method.
First, the simplified design method is verified. As shown in
Figure 13, assuming the pressure drop constraint only allows for two BCC lattice structures, CFD simulation confirms significant HTD occurs in the smooth channel. A uniform arrangement of the two structures fails to effectively suppress HTD, indicating the need for an optimized design to achieve HTD suppression with a limited number of BCC lattices. The simplified design process requires obtaining the heat transfer characteristics and the temperature peak location of the smooth channel only. The first lattice structure is placed 1
D upstream of the temperature peak position, and the second BCC structure is placed at the midpoint between the first BCC structure and the channel outlet. CFD results, represented by the red curve in the figure, demonstrate that the layout obtained by the simplified design method effectively suppresses HTD.
Subsequently, validation of the approximate optimal design methodology was carried out. As illustrated in
Figure 14, a comparison is presented between the approximate optimal arrangement (Design Arrangement 2) and the simplified design arrangement (Design Arrangement 1). The approximate optimal arrangement was derived through the iterative process outlined in
Figure 10, which involved sequentially inserting BCC lattice structures and performing CFD simulations. Following the placement of the first BCC structure at a location 1
D upstream of the initial temperature peak in the smooth channel, an initial CFD simulation was conducted. The resulting temperature field identified the position of the second temperature peak, guiding the placement of the second BCC structure at 2
D upstream of this secondary peak. A final CFD simulation was then performed, yielding the temperature distribution marked by the purple curve in
Figure 14. The corresponding streamwise placement (
L/
D) for each design is indicated by markers on the horizontal axis. The comparison reveals that the approximate optimal arrangement achieves a marginally lower Δ
T*
max than the simplified design. Importantly, both designs successfully suppress heat transfer deterioration entirely and maintain the temperature distribution within a significantly lower range. Consequently, either the approximate optimal arrangement or the simplified design can be selected based on specific application requirements.
Although the validation case presented in this section confirms the effectiveness of both the simplified and approximate optimal design methods under an alternative operating condition, it should be emphasized that this represents only a single additional data point. The generalizability of the proposed design guidelines to a broader range of operating parameters, including extreme conditions far from the critical point, significantly different mass fluxes, or varying heat flux distributions, remains to be further investigated. Future studies involving a more comprehensive parametric matrix would be valuable to strengthen the statistical confidence in the proposed design heuristics.