1. Introduction
Fin array (FA) structural designs are broadly utilized in many devices which require a significant level of fluid–solid contact. FAs are composed of uniformly distributed and identical structures with a repeated pattern and large surface area to volume ratios, suitable for high performance and compact heat or mass transfer applications, such as micro heat-exchangers [
1] and micro-reactors [
2]. The promising performance of FAs, however, comes with the price of high pressure drop [
3,
4], which can be very challenging for pumping supply, particularly at micro-scales or applications with space limitations. Previous numerical and experimental studies on isothermal single-phase flow across fin arrays suggest that geometrical attributes, such as fin shape, alignment and pitch-space play a significant role on the total flow pressure drop [
5,
6,
7,
8]. Therefore, in this work, we utilize a density-based topology optimization approach to find the optimal fin geometries which minimize flow pressure drop (power loss), considering the designing aspects of fin arrays, and develop a numerical tool for this purpose.
Towards minimizing pressure drops by improving fin geometry, topology optimization (TO) [
9] is fundamentally a superior approach, primarily for its ultimate ability to deal with complex geometries. TO was originally developed for optimizing solid structures [
10,
11], but soon after was extended to optimization of fluid flow systems [
12,
13,
14,
15], and in the past decade, new TO developments have shown very promising performances in various applications, such as hydrothermal systems [
16,
17], fluid–structure interaction (FSI) problems [
18,
19] and microfluidic mixers [
20,
21]. Various TO approaches have been previously developed focusing on isothermal flow power loss minimization for internal (channel) flow [
13,
15,
22] and external flow problems [
12,
18], where the latter is the case for flow past an array of fins, considered in the present work. In this context, Borrvall and Petersson [
12] were pioneer to achieve optimal hydrodynamic shapes, similar to rugby balls, corresponding to a prescribed volume constraint and featuring minimized Stokes flow power dissipation. Guest and Prévost [
23] developed a Darcy–Stokes topology optimization model for very low Reynolds flows, equipped with an inverse homogenization method to design porous material micro-structures. Targeting maximum flow permeability, they interestingly achieved porous materials with periodic micro-structures; however, they reported some numerical difficulties regarding the choice of initial mWaterial distribution. Kondoh et al. [
24] investigated drag minimization and lift maximization via a convenient body force integration objective function and successfully achieved optimal airfoils for low to moderate Reynolds numbers. Lundgaard et al. [
25] studied optimal topologies of a plate obstacle with six different objective functions such as minimum flow dissipated energy and structural compliance, using a robust density-based TO formulation, and comprehensively discussed the critical implementation details. Zhou et al. [
26] more recently proposed a combined shape and topology optimization method with a boundary-smoothing regularization technique to guarantee a stable convergence, and achieved physically meaningful optimal hydrodynamic shapes, submerged in Stokes flow.
In this work, we present a novel TO approach for drag minimization of fin arrays in isothermal two-dimensional (2D) steady flows. We assume a doubly periodic computational domain, including a single design region for individual fins. This assumption is well consistent with the repeated flow pattern across uniform fins at low Reynolds numbers, and significantly saves computational efforts. In addition, single periodic design domain, in favor of topology optimization, requires fixed number of design variables for fin topologies independent FA size, and allows full pressure-velocity fields decomposition which leads to reduced number of state variables by factor of 2/3. For the numerical flow solution, we utilize highly accurate pseudo-spectral scheme, equipped with Brinkman volume penalization technique. Pseudo-spectral scheme is based on discrete Fourier approximation of the periodic solution on a uniform grid, which provides a desirable level of accuracy with less grid points compared to other numerical techniques such as finite difference methods [
27]. Moreover, because of the global approximation of the flow solution, the accuracy at a solid–fluid boundary is well satisfactory [
28], especially when the boundary is moving over a fixed uniform grid, as it is the case for optimization process.
For gradient-based optimization, we describe the analytical sensitivity analysis for the pseudo-spectral method, and validate its accuracy using finite differencing method. We use GCMMA [
29] as the optimizer and implement a convenient factorization technique which substantially reduces numerical efforts with respect to computing the required sensitivities at a satisfactory accuracy level. The remainder of the paper is organized as follows: In
Section 2, we concisely introduce pseudo-spectral scheme used for penalized Navier-Stokes, and discuss the computational model, boundary conditions and etc. We present in
Section 3 the topology optimization formulation and derive the sensitivity analysis followed by finite differencing verification. In
Section 4, we study three optimization examples to qualitatively and quantitatively investigate flexibility, robustness, accuracy and overall performance of the present TO approach in drag minimization of fin arrays, at different Reynolds number and solid volume sized.
Section 5 summarizes the key features and state-of-the-art achievements we investigated using the present tool.
3. Topology Optimization
The required hydrodynamic power supply (
) to compensate the fluid pressure drop is computed by
where the required power is linearly proportional to pressure drop, assuming that the flow rate (
) and density are constant. Moreover, the total pressure drop is a function of hydrodynamic drag forces exerted on fins. Therefore, to minimize the required pumping power supply, we aim to establish a hydrodynamic drag minimization problem, given by:
where
C is the drag force and the objective function,
V the fin volume (cross-section area),
the minimum desired fin volume, and
the vector of design variables in the design domain
. Design variables
’s are uniformly defined on entire the design domain, located at each discretization point
. The topology function
is then calculated at each point
from the corresponding design variable
using a continuous interpolation function [
12], as
where,
is a parameter which controls the interpolation convexity, i.e., the transition from fluid to solid for intermediate design variables (
).
For the present gradient-based optimization problem we use the globally convergent method of moving asymptotes (GCMMA) [
29] optimizer. GCMMA algorithm is particularly developed for TO problems with large number of design variables, which is up to
in our test cases. We adjust the algorithm with the standard settings, however, the move step parameter is reduced to 0.1 and the maximum number of sub-cycles is limited to 10 sub-iterations. In practice, we observed a very satisfactory performance by using GCMMA, in terms of efficiency as well as accuracy and robustness.
3.1. Sensitivity Analysis
The goal of sensitivity analysis is to precisely calculate changes of a desirable function caused by varying the design variables. This step is essential for gradient-based topology optimization, especially when there are very large number of design variables such that finite difference approximation of the sensitivities become significantly expensive. In our particular case, we need to accurately compute the drag force gradients with respect to ’s, at a reasonable computational cost.
The objective function in Equation (
19), computed by Equation (
17), is a function of velocity field and the topology (penalization) function and is concisely defined as
And we derive the total derivative of
C with respect to the vector of design variables,
, using the chain rule of differentiation by
We note that the simplicity of Equation (
17) allows a convenient calculation of partial derivatives
,
and
at a very low cost. We also calculate
simply from Equation (
20). The total derivatives
and
represent the total rate of change in flow velocity field with respect to change of design variables and are generally difficult to derive analytically and expensive to compute. For pseudo-spectral scheme, however, it is rather straightforward to derive those derivatives by analytical differentiation of the discrete solution of Equation (
11). In this regard, we integrate the solution of Equation (
11) in time using Euler method and derive it for discretized
at time step
by
where
is the time step size, chosen based on CFL condition for numerical stability. Next, by taking the derivative of Equation (
23) directly with respect to
, we obtain
where the Jacobian matrices (
) are derived directly from differentiation of Equations (
13)–(
16). For instance, we compute the matrix of
, using the chain rule of differentiation by
where
and
are simply calculated from differentiating Equation (
14).
Direct Computation of
and
, as derived in Equation (
24), is very expensive, but we employ a few techniques that substantially reduces the computational costs for it. In this regards, we first reformulate Equation (
24) to obtain an unified matrix form, as
or in a succinct form such as
To save computational effort, we compute
and
matrices with the converged flow solutions of Equation (
23) only once. Since the initial guess for velocity is always fixed,
equals zero. Therefore, we obtain
We further simplify Equation (
28) using algebraic factorization. For steps which
m equals to
(k is a natural number), we can derive
Therefore, instead of iterating over Equation (
26) for every single step of
m, we only compute
at
, which leads to an extremely fast convergence. More precisely, for solution of Equation (
26),
matrix additions and multiplications are required if
; on the other hand, only
k matrix additions and
multiplications are required for Equation (
29). Numerical experiments, as shown in
Figure 2a, suggest that
reasonably converges after only
iteration steps for Reynolds numbers up to 75, where the flow remains laminar and steady-state.
3.2. Accuracy Verification and Cost of Sensitivity Computation
A crucial step for a gradient-based topology optimization approach is the accuracy of the sensitivities. In our case, sensitivities are derived based on an analytical differentiation which is exact, however, they are computed via an iterative factorization technique (Equations (
27)–(
29)). Therefore the accuracy of the converged sensitivities as well as the implementation correctness have to be verified. For this purpose, we approximate the sensitivities
using central differencing finite difference method (FDM), as the reference of comparison, via:
where
is the design variable perturbation. Then, the relative error between analytical and FDM sensitivities for design variable
i is computed by
Figure 2c illustrates the relative errors for a
design space for various perturbation sizes. We can observe a perfect match between the obtained sensitivities for
, which verifies the accuracy to a desirable level of
.
For every single iteration of optimization steps, we need to calculate objective function via pseudo-spectral solver (Equations (
13)–(
16)) and sensitivities corresponding to the current state of design variables. Computing sensitivities mainly consists of two parts: (a) calculation/assembly of matrices in Equation (
26), and (b) computing Equation (
29) in an iterative manner.
Figure 2b illustrates an averaged CPU time required to compute the three stated tasks on a 14-core processor, for various problem sizes. The computational cost of pseudo-spectral solver is reasonably low and scales roughly with total number of grid points. The main computational burden is dedicated to computing Equation (
29), since Jacobian matrices sizes are
and grow rapidly by problem size
N. Using our current code implementation and for
size, which is sufficiently accurate as discussed before, it takes roughly 15–20 min for a single optimization iteration on a multi-core processor and requires up to 18 GB of memory in total.
We point out that we derived the discrete sensitives of the pseudo-spectral fluid solver via an analytical process and direct differentiation. However, in general, for other complex flow solvers such as finite volume method (FVM) with an iterative SIMPLE scheme [
42], exact sensitivity derivation is not straightforward [
15], and often this crucial task is delivered to automatic differentiation (AD) tools [
43,
44]. AD tools are accurate to the machine precision, but they normally require significant amount of memory and are sometimes very time consuming. In addition, computing the required sensitivities are performed using discrete adjoint method [
45]. This is a commonly utilized approach to reduce computational costs independent of number of design variables. Adjoint method, however, requires solving a linear system of equations, while the present approach does not require solving any system of equations, its cost is also independent of design variable numbers and relies only on the basic matrix operation, which could be easily implemented and computed via parallel processing.
4. Optimization Results and Discussion
In this section, we study several test problems to investigate the utility and flexibility of the present topology optimization approach for fin array drag (pressure loss) minimization. As illustrated in the schematic
Figure 3a,b, we consider two fin array configurations: in-line, and staggered (
) alignments.
Figure 3c presents our computational model as well as the design space. The dashed square area represents the periodic computational domain
, and the gray area shows the design domain
. We take
as the characteristic length, and circular fins as the reference design. Length of the design domain (
) varies between
and
L, depending on the simulation case. For consistency among different simulations and fin shapes, we always calculate Reynolds number based on the characteristic length
. In addition, for sake of convenience, we rotate upstream flow direction by
to model staggered array instead of rotating computational domain (compare
Figure 3a,b).
Since we employ a gradient-based optimization approach, it is important to analyze the sensitivities we obtained from
Section 3.1, prior to studying the optimization results.
Figure 4 demonstrates the contour field of hydrodynamic drag sensitivities for a staggered circular fin array (
). The dashed white circle defines the penalized (no permeable) solid zone, and the red line indicates
contour level. Inside the red enclosure sensitivities are negative, i.e.,
. Negative gradient zones are of critical importance, because by increasing design variables
or equivalently the solid zones, drag force decreases. We can then anticipate the potentials for new topologies such that produce less drags. It should be noted that the red contour does not necessarily represent the final optimum fin geometry. The sensitivity field which is plotted here corresponds to the circular fin before optimization, and by changing the fin geometry during the optimization process, sensitivities change as well. What we can also expect from sensitivity analysis is that the optimum topology should match the zero gradient contour for unconstrained volume optimization, i.e., no unfilled negative gradient zones should be left.
In the following, we study different example problems, to investigate the utility of our topology optimization approach for fin array drag minimization. In the first case, we begin with optimizing circular in-line and staggered fin arrays with constrained volume and explore the robustness of our TO approach in terms of insensitiveness to the initial (unoptimized) design. In the second case, we study the optimal fin topologies by varying the flow conditions, particularly the Reynolds number. In the last case, we aim to optimize passive (circular) designs, by restricting the optimizer to solid volume augmentations, in order to investigate the flexibility and accuracy of the present approach in different settings. The computational domain for all considered examples is discretized with 128-by-128 grid points and all of the simulations are computed using an in-house developed code, with shared-memory parallel computing.
4.1. Case 1: Pressure Loss Minimization and Robustness Verification
We study two cases in this example: case (a), drag minimization topology optimization of a circular fin array, and in case (b), we examine the optimization robustness in terms of the initial input. In case (a), the optimizer is free to modify the initial fins to minimize drag by appending or removing solid zones in the design domain (). We also impose a minimum volume (cross-section area) constraint, equivalent to the initial volume for optimization. We consider both in-line and staggered configurations and set the periodic flow domain length, L, to 2, the design domain length to , and the upstream flow velocity . All the parameters are non-dimensionalized with respect to the characteristic length of . In case (b), we employ the similar problem setting, but start the optimization with different initial fin design variables to investigate the robustness.
Figure 5 shows the initial and optimal fin topologies as well as the flow velocity field, for both in-line and staggered arrays at
. For in-line array, as shown in
Figure 5b, the optimum design is stretched stream-wise to increase the cross-section aspect-ratio and reduce the frontal area to for a more hydrodynamic fin. The upper and lower surface curvatures facilitate the flow from tip to tail, because the main flow stream has a periodic converging–diverging format. As the result, the optimal design features ∼39% less drag force, as listed in
Table 1. The first reason is that the frontal area is now smaller than the initial circular fin and each fins. The second reason is that the increased gap space between fin rows reduces the maximum flow velocity, and consequently the exerted drag force. We should also note that the front and end of the optimal fins are attached to the the border of design domain. This is not surprising, since at
the viscous drag is less severe than the pressure drag, and theoretically we know that parallel plates produce minimum drag. Therefore we observe that by increasing
, the optimizer minimizes the pressure drag by increasing gap space between fin rows and filling the gap space between upstream and downstream fins, until the fins are fully attached and a uniform parallel channels are created.
In staggered alignment, as shown in
Figure 5c, the flow is not unidirectional and the fluid velocity magnitude in front of the fins is not negligible, which results in higher fin drag force and total pressure drop in staggered alignment compared to in-line. The optimal staggered fin, as shown in
Figure 5d, is a symmetric convex cross-section shape, with sharp fronts and tails and less frontal areas, similar to airfoils. The wake region behind the original cylindrical fin is almost eliminated after the optimization which demonstrates a better flow guidance within the fin array. The maximum flow velocity is also reduced considerably, because of the increased cross-gap space. The drag force in staggered fin array after the optimization is
less, while the total cross-section area is equivalent to the initial fin array. Overall, we find the results to be consistent with the physics of flow across the fins and the performance of the TO well satisfactory.
In case (b) of the first example, our goal is to investigate the robustness of our TO tool by examining different initial values for design variables and compare the final optimum topologies to verify whether the results are insensitive to the initial (unoptimized) designs. For this purpose, we repeat the previous topology optimization example of staggered configuration in case (a), but we set all the initial
’s to either 1 (full solid) or 0 (no solid) and compare them with the initial circular fin. We note that the same volume constraint as the circular fin of case (a) is imposed; therefore, starting the optimization with no solid area violates the volume constraint in the beginning, however, we expect the optimizer to eventually satisfy that.
Figure 6 illustrates the topology optimization process for those three different initial designs, and
Figure 7 shows the convergence history of the drag forces, as well as the total fin volumes. We note that the optimization process for circular and full initial designs are rather smooth, because the optimization starts from feasible design space. On the other hand, for the case of empty initial design, the optimization process begins from infeasible state; therefore, the optimizer uniformly fills the design domain to first satisfy the minimum volume constraint (near to iteration 10), and then continues an optimization process similar to full solid case. Regardless of the starting phase, all three cases reached similar final topologies with closely identical drag forces. We also obtained similar performance for in-line configuration, and overall, we find the optimization processes promisingly insensitive to the initial design which confirm the robustness as we desired.
4.2. Case 2: Fin Geometry at Different Flow Reynolds Numbers
In this test example, we aim to investigate optimal fin topologies at different flow conditions, particularly at different Reynolds numbers. More precisely, the flow Reynolds number is the only variant in this study, and the rest of the parameters such as volume constraint are similar to the staggered case of 1-(a).
Figure 8 shows the schematic of optimized staggered fin arrays for Reynolds numbers of 2, 10 and 50, and in addition
Table 2 also lists the fin aspect ratios as well as the optimal drag force compared to circular (unoptimized) fins. At first glance, we observe that optimizer has reduced the frontal areas and increased the spanwise length, to produce a better hydrodynamical shapes. At
, drag force is
reduced and fin cross-section shapes suggest the minimum frontal area as well as the maximum aspect ratio. In this case, the viscous drag is much less severe than the pressure drag, consequently fin has a relatively large aspect ratio of 3.63. On the other hand, at
flow is more viscus and therefore viscus drag is more dominant. In such case, fin shape has comparatively the least aspect ratio (1.99) with only
reduced drag. As the flow Reynolds increases, the boundary layer becomes thiner and fins aspect ratios increases. The gap space between fins are larger and we observe a more straight flow stream which confirms a less dissipative flow. We note that for higher Reynolds numbers (
), flow becomes unsteady and requires unsteady sensitivity analysis which is beyond the scope of this paper.
The promising fin array optimization results consistent with the flow conditions confirms the utility and flexibility of the present topology optimization approach to find the optimal geometries featuring the minimized pressure loss, as initially was targeted.
4.3. Case 3: Drag Minimization of Passive Designs
For the last example, we further consider to minimize drag (pressure loss) particularly for pre-designed circular arrays. More precisely, we keep the initial design unchanged during optimization such that the optimizer is allowed to merely add solid zones to the initial fins. In this regard, we decompose the design domain into two parts: passive domain,
, and active domain,
. In the passive domain corresponding to the initial fin design,
’s are fixed to 1 during optimization, however, in the active domain, the design variables are free to change as before. In summary, we can define the two domains by
where
.
The main purpose of this example is to demonstrate the utility of our TO tool to minimize fin drag force, while the frontal projected area as well as the gap spaces can not be reduced anymore. We perform unconstrained optimization procedure, therefore, no volume constraint is imposed in this case, however, increasing solid volumes reduces the total empty space for fluid to flow, which may cause higher flow velocity and drag forces. For this task, we use again staggered cylindrical fin arrays with various sizes as the initial designs, at
.
Figure 9 shows the initial designs in white and the newly added parts after optimization in black. In all cases, after the optimization two solid parts are created and attached to the cylinders, one to the tip and one to the tail of the cylinders, in the streamwise direction The added parts facilitate fluid flow in front and in wake spaces to reduce high stagnation pressure and modify the low pressure wake region, respectively. As listed in
Table 3, the optimal topologies with better hydrodynamical profiles promisingly produce up to 9% less drag forces, while the frontal projected areas remained fixed.
To better understand functionality and reveal the importance of an added tail, we examine the vorticity fields before and after the optimization. As plotted in
Figure 10a, two vortices exist after the flow separation points in the wake region, behind the cylinders. The low pressurized wake area considerably contributes to the pressure drag and increases the total pressure loss. However, as shown in
Figure 10b, the added tail in the optimal fin profile has properly filled the wake area. In the optimal design, flow experiences a very smooth path and back flow pressure is fully recovered. Flow separation has been successfully eliminated, which leads to a less energy dissipative flow regime. For smaller solid volume fractions, pitch distance and gap space are relatively large, therefore, the mainstream flow is roughly straight. In this case, the optimal fin shape resembles an airfoil with larger aspect ratio and longer tail to better guide the flow and and recover back pressure. On the other hand, for larger solid volume fractions, the flow path is wavy with high curvature. The maximum velocity, due to the smaller gap space, is also larger, and flow magnitude in the front and back of the fins is considerable. The added tip and tail elements conform to the wavy flow stream, nevertheless, they are relatively smaller. At highest volume fraction (VF = 0.3), the tip element almost vanishes but a tail is again added to better guide the flow in the wake and recover the pressure. We note that the optimizer has satisfyingly modified the circular fin arrays for all volume fractions and as promised, successfully minimized drag forces, nevertheless the frontal area was kept fixed.
5. Conclusions
We presented a novel topology optimization tool for hydrodynamic drag (power loss) minimization of fin arrays. We developed our numerical topology optimization approach based on the accurate and powerful pseudo-spectral scheme equipped with the Brinkman penalization method. We provided a detailed sensitivity analysis, derived directly from a pseudo-spectral scheme and chain rule of differentiation, and verified it by a finite differencing method. We also applied few techniques, such as a convenient algebraic factorization, to substantially increase computational efficiency and reduce total cost of optimization. Using several test examples, we investigated the accuracy, flexibility and robustness of our tool. We successfully reduced the drag force (pressure loss) of a circular fin array by up to ∼53.6%, and conveniently obtained optimal fin geometries at different Reynolds numbers (from 2 to 50), for both in-line and staggered arrays. We lastly performed several unconstrained topology optimization test cases to investigate the numerical flexibility in terms minimizing the drag for passive fin designs. Interestingly, the optimal topologies eliminated flow separation as well as low pressure wake by adding tip and tail, and reduced drag forces up to , nevertheless, the frontal projected area was fixed.