Abstract
The design of fluid devices, such as flow machines, mixers, separators, and valves, with the aim to improve performance is of high interest. One way to achieve it is by designing them through the topology optimization method. However, there is a specific large class of fluid flow problems called 2D swirl flow problems which presents an axisymmetric flow with (or without) flow rotation around the axisymmetric axis. Some devices which allow such simplification are hydrocyclones, some pumps and turbines, fluid separators, etc. Once solving a topology optimization problem for this class of problems using a 3D domain results in a quite high computational cost, the development and use of 2D swirl models is of high interest. Thus, the main objective of this work is to propose a topology optimization formulation for 2D swirl flow fluid problem to design these kinds of fluid devices. The objective is to minimize the relative energy dissipation considering the viscous and porous effects. The 2D swirl laminar fluid flow modelling is solved by using the finite element method. A traditional material model is adopted by considering nodal design variables. An interior point optimization (IPOPT) algorithm is applied to solve the optimization problem. Numerical examples are presented to illustrate the application of this model for various 2D swirl flow cases.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Fluid devices are widely used in the industry, such as in flow machines, mixers, separators, and valves, which means that optimization to increase their performance is of high interest.
Topology optimization method has been initially applied to fluid problems by Borrvall and Petersson (2003), where the energy (power) dissipation is minimized in order to design flow channels in bi-dimensional domains. In this case, a Stokes flow is considered with a material model based on the Darcy law (Brinkman model) (Vafai 2005), which creates a porous media (intermediate material between solid and fluid). This intermediate material is able to relax the optimization problem from binary values to real number values.
Since then, the topology optimization method in fluids has been applied to a wide variety of flows: Stokes (Borrvall and Petersson 2003), Darcy-Stokes (Guest and Prévost 2006) (Wiker et al. 2007), Navier-Stokes (Evgrafov 2004; Olesen et al. 2006), slightly compressible (Evgrafov 2006), non-Newtonian (Pingen and Maute 2010), turbulent (Yoon 2016), etc.
It has been extended to the design of various fluid devices, such as valves (Song et al. 2009), mixers (Andreasen et al. 2009), rectifiers (Jensen et al. 2012), and flow machine rotors (Romero and Silva 2014).
In the design of flow machine rotors, Romero and Silva (2014) model the fluid flow in a rotating reference frame in order to ease the visualization of the fluid motion over the impeller of centrifugal pumps, in which Coriolis and centrifugal terms appear. The effect of body forces, such as gravity force, and Coriolis and centrifugal inertial forces, has been analyzed by Deng et al. (2013a, b).
Besides the pseudo-density approach used by Borrvall and Petersson (2003), the “level-set method” (Duan et al. 2016; Zhou and Li 2008) and topological derivatives (Sokolowski and Zochowski 1999; Sá et al. 2016) have also been applied to topology optimization for fluid problems.
According to Deng et al. (2013b), the pseudo-density approach has a rapid and robust convergence, weakly depends on the initial distribution of the design variable, and allows dealing with multiple constraints. Therefore, it is the method selected for this work.
There is a specific large class of fluid flow problems called 2D swirl flow problems which presents an axisymmetric flow with (or without) flow rotation around the axisymmetric axis. Once solving a topology optimization problem for this class of problems using a 3D domain results in a quite high computational cost, the development of 2D swirl models is of high interest. Up to now, no work related to the application of a 2D swirl flow model (“2D axisymmetric model with swirl”) in topology optimization has been reported in literature. Some examples of fluid devices that can be designed by such models are hydrocyclones, some pumps and turbines, and fluid separators.
Thus, the main objective of this work is to propose a topology optimization formulation for 2D swirl flow fluid problems in order to design 2D swirl fluid devices. The objective is to minimize the relative energy dissipation considering the viscous and porous effects. The 2D swirl laminar fluid flow modelling is solved by using the finite element method. In the topology optimization formulation, a traditional material model defined by Borrvall and Petersson (2003) is adopted by considering nodal design variables.
The algorithm is implemented in the FEniCS platform, by using the adjoint method for calculating sensitivities (Farrell et al. 2013), an interior point optimization algorithm (IPOPT) for solving the optimization problem (Wächter and Biegler 2006), and the MUMPS for solving the equations of weak form of the problem (Amestoy et al. 2001).
This paper is organized as follows: in Section 2, the flow model for a 2D swirl flow is briefly derived. In Section 3, the weak formulation of the problem is presented together with the finite element modelling, sensitivities, and discrete forms. In Section 4, the topology optimization is stated by considering the Brinkman model. In Section 5, the numerical implementation is briefly described. In Section 6, numerical examples are presented. And in Section 7, some conclusions are inferred.
2 Equilibrium equations
The equilibrium equations considered in this work are the continuity equation and the Navier-Stokes equations, which are considered for laminar flow (i.e., for low Reynolds numbers), incompressible fluid, and negligible variations in viscosity (i.e., for a liquid without high differences in temperature, and velocities not as high as the speed of sound).
2.1 Continuity equation
In the case of an incompressible fluid, the continuity equation is given by (Munson et al. 2009)
where vabs is the absolute velocity of the fluid and ∙ is used to denote the inner product.
2.2 Navier-Stokes equations
The Navier-Stokes equations correspond to the linear momentum equations. For laminar flow, incompressible fluid, negligible variations in viscosity, and stationary flow, they are given by (Munson et al. 2009)
where ρ is the density of the fluid, p is the pressure, μ is the dynamic viscosity, and ρf is the force per unit volume acting on the fluid.
2.3 2D swirl flow model
By considering a rotating reference frame with a rotation of ω = ω0ez, the velocity and acceleration in the stationary frame need to be converted as (White 2011)
where ω is the rotational speed of the reference system, s is a position in the flow, vabs and aabs are the absolute velocity and acceleration, ∧ is used to denote cross product, v and a are the relative velocity and acceleration, and vref and aref are the velocity and acceleration of the origin of the rotating reference frame (in this case, the origin is the center of rotation, therefore vref = 0 and aref = 0 ).
By assuming stationary flow (\(\dot {\boldsymbol {\omega }} = \mathbf {0}\)) and substituting (3) and (4) in (2), it is possible to derive the Navier-Stokes equations for a rotating reference frame
where T is the stress tensor given by
As can be noted above, two terms appear in the equations in relation to the stationary frame equations: the Coriolis force (− 2ρ(ω∧v) ) and the centrifugal inertial force (− ρω∧(ω∧s)).
Since the continuity equation should be valid in any reference frame, the continuity equation for a rotating reference frame is given by
In topology optimization, the material can be considered as a porosity in the flow. By considering the Brinkman model for a porous media (Vafai 2005), a resistance force directly proportional to the fluid velocity in relation to the porous media appears. Therefore, the Navier-Stokes equations for a rotating reference frame according to the Brinkman model become
where κ(α) is the absorption coefficient (“inverse permeability”), vmat is the velocity in relation to the porous material (vmat = (vr, v𝜃 − ωmatr, vz), where ωmat is the rotation of the porous media relative to the reference frame), and α is the pseudo-density (design variable), which attains values between 0 (solid) and 1 (fluid).
By considering a cylindrical coordinate system, the position and velocity become
The 2D swirl flow model denotes a case in which the coordinates are assumed as bi-dimensional (2D), however, with 3D velocity components. Figure 1 shows the computational domain in this type of model, consisting of a simplification of the 3D domain Π in a 2D domain Ω, while maintaining all the velocity components. Therefore,
By assuming axisymmetry, the derivatives in relation to 𝜃 become zero (i.e., \(\frac {\partial (\ )}{\partial \theta } = 0\)).
Thus, the boundary value problem can be stated as follows.
where Ω, Γin, Γwall, Γsym, and Γout are shown in Fig. 2. On the inlet boundary (Γin), a fixed velocity is imposed. On the walls (Γwall), the no-slip condition is imposed. On the symmetry axis (Γsym), the derivatives in relation to the r coordinate are considered to be zero, as well as the radial velocity. On the outlet boundary (Γout), depending on the numerical example, a different boundary condition is used and explicitly indicated. The first outlet boundary condition is stress free, which would mean that the flow is open to the atmosphere: T∙n = 0 (Neumann boundary condition). The second boundary condition consists of an internal flow, by imposing a velocity in which its radial (vr) and axial (vz) components are perpendicular to the outlet (Dirichlet boundary condition) (i.e., the tangential components of the velocity in the “2D plane” (vrz,t) are equal to zero), and imposing zero normal stress on the interface (n∙Tn = 0) (Neumann boundary condition). This last imposition means that the pressure is weakly imposed with a zero value on the boundary (see Appendix B for the derivation considering 2D swirl flow, which is quite similar to the one shown in Barth and Carey (2007) for 2D flow). If, instead, the outlet pressure was strongly imposed (Dirichlet boundary condition) for the analyzed numerical examples, it could, as opposed to the weak imposition of the pressure value, lead to sharp spikes of negative pressure right before the outlet, which characterizes an ill-posed boundary condition.
3 Finite element method
3.1 Weak formulation
In order to derive the weak form of equations (7) and (8) by the weighted-residual and Galerkin methods as a mixed (velocity-pressure) formulation, they should be multiplied by test functions for pressure (wp) and velocity (\(\boldsymbol {w}_{v} = \left [\begin {array}{llllllllllll}{w}_{v,r}\\{w}_{v,\theta }\\{w}_{v,z} \end {array}\right ]\)) and integrated in the whole 2D swirl domain. Therefore, by considering a 2D swirl flow,
where c stands for “continuity equation” and m stands for “linear momentum equation” (i.e., Navier-Stokes equations).
Note that, in the above equations, the multiplicative constant 2π related to the conversion from the 3D domain to the 2D domain is omitted, since it does not influence when solving the weak problem.
Since the two test functions are independent from each other, the two equations can be summed in order to form a single equation for the weak form, as
The derivation is further detailed in Appendix A.
3.2 Finite element modelling
For the velocity-pressure formulation to be stable, Taylor-Hood elements are chosen (see Fig. 3): 1st degree interpolation for pressure (P1 element) and 2nd degree interpolation for velocity (P2 element). For the design variable, 1st degree interpolation (P1 element) is chosen.
4 Formulation of the topology optimization problem
4.1 Material model
According to Borrvall and Petersson (2003), as the aim of the material model is to relax the design variable α to attain values between 0 (solid) and 1 (fluid), the idea is to choose a function α in order to provide intermediate values for the absorption coefficient κ(α) (Borrvall and Petersson 2003). Therefore, a convex interpolation function is used:
where κmin and κmax are, respectively, the minimum and the maximum values of κ(α). The parameter q is the penalization parameter, which controls the convexity of κ(α) (q > 0). It determines the intermediary (“gray”) part of the optimized structure, which represents an intermediary behavior between the full flow and the porous flow given by the material model resistance force. The choice of κmax is important, given that a low value can cause the fluid to penetrate in solid regions and a too high value can cause a stagnation in the topology evolution. A high value of q (penalization parameter) means that the transition between solid and fluid is less “relaxed,” closer to a straight line, as shown in Borrvall and Petersson (2003)’s material model (see Fig. 4). The choice of q depends on the fluid flow problem, where a higher value of q tends to create a more discrete solution. A low value of q means that intermediary values of α present a low resistance to the flow, for example, with q = 0.01, regions with α = 0.6 (“gray”) would act as regions of α = 1.0 (solid) and the final solution could present “gray” regions, given that they have the same behavior. Thus, to obtain a discrete solution, in most cases, it is necessary to use high values of q.
4.2 Topology optimization problem
Thus, the topology optimization problem is formulated as shown below.
where Ωα is the area of the design domain, f is the specified volume fraction, \(V_{0} = \displaystyle {\int }_{{\Omega }_{\alpha }}2\pi rd{\Omega }_{\alpha }\) is the volume of the design domain, and Φrel(p(α),v(α),α) is the objective function.
4.3 Objective function
The objective function is chosen as the energy dissipation defined in Borrvall and Petersson (2003), which is composed of a viscosity effect (related to viscous heating), an external body force effect, and a porosity effect. In a rotating reference frame, for the case, there are no external body forces (ρf = (0, 0, 0)) and not considering inertial body forces, relative energy dissipation can be given as the viscosity and porosity effects,
For reference, the discrete form of the objective function is presented in Appendix C.2.
4.4 Sensitivity analysis
The sensitivity of a functional Φrel = Φrel((v,p),α) given the weak form F((v,p),α) = 0 (16) can be obtained by the adjoint method as the following equations
where * represents conjugate transpose, and λΦ is the adjoint variable, corresponding to the Lagrange multiplier of the weak form.
For reference, the discrete form of the sensitivity is presented in Appendix C.3.
5 Numerical implementation of the optimization problem
For the implementation of the optimization method, the FEniCS platform (Logg et al. 2012) is used, in which it is possible to define high-level expressions, coupled with the dolfin-adjoint library (Farrell et al. 2013), which allows derivation of adjoint models, and interior-point optimization algorithm (IPOPT Wächter and Biegler 2006, through the Python library PyIPOPT). The solution to the finite element method is performed by using the Newton-Raphson method and the solver is MUMPS (multifrontal massively parallel sparse direct solver) (Amestoy et al. 2001).
The flowchart in Fig. 5 shows the interconnection between the software packages.
For reference, the discrete forms of the equations are presented in Appendices C, D and E.
6 Numerical examples
In the following numerical results, the fluid is considered as water, with a dynamic viscosity (μ) of 0.001 Pa s, and a density (ρ) of 1000.0 kg/m3.
Structured meshes are chosen with rectangular partitions composed of four triangles each (Fig. 6).
In order to scale the equations to increase the convergence rate of the calculation of the weak form, functionals, and sensibilities, the MMGS (millimeters-grams-seconds) unit system is used (i.e., the length and mass units are multiplied by a 103 factor).
The convergence criterion for simulation with MUMPS is based on residuals: absolute tolerance of 10− 7 and relative tolerance of 10− 7. For the optimization, the convergence criterion is based on a desired relative tolerance of 10− 10 for the optimality error of the IPOPT barrier problem that essentially corresponds to the maximum norm of each KKT condition (Wächter and Biegler 2006).
External body forces are not considered for the numerical examples (ρf = (0, 0, 0)).
For the nozzle and hydrocyclone-type device examples, the outlet boundary condition is chosen as p = 0 Pa. For the two-outlet and two-way channel examples, the outlet boundary is considered as open to the atmosphere (T∙n = 0).
In the following examples, the letter n is used to denote rotation in revolutions per minute, and the greek letter ω is used to denote rotation in radian per second.
Also, the porous medium is assumed with the same rotation as the reference frame; therefore, in these cases, vmat = v. Also, κmin = 0 kg/(m3 s).
The post-processing of the optimized topology is done by thresholding the nodal values of the design variable with a simple step function:
Then, the solid material (α = 0) is cut off from the original mesh (see Fig. 7), enabling the final simulation to be performed with the original Navier-Stokes equations (i.e., not including the Brinkman model).
This is done in order to analyze without the effect of the material model, which influences a zone around the porous media. In all optimized topologies, the final values of α are close to the bounds (i.e., to α = 0 and α = 1). The Measure of non-discreteness (Sigmund 2007) can be used to evaluate how close the values of α are close to the bounds. It can be given by
where MND = 0% for a fully discrete topology (α = 0 or α = 1), and MND = 100% for a fully gray topology (α = 0.5).
The Reynolds number for the numerical examples is given by \(\text {Re} = \frac {v_{c}L}{\nu }\), where vc is a characteristic velocity of the fluid flow, L is a characteristic dimension, and ν is the kinematic viscosity. In this work, L is considered as the diameter of the design domain, for the nozzle in Section 6.1; the height of the design domain, for the hydrocyclone-type device and the two-oulet channel in Sections 6.2 and 6.3; and the width of the design domain, for the two-way channel example in Section 6.4. The characteristic velocity (vc) is given by max(|vabs|) in the domain.
The pressure head is calculated from the following equation:
where Q is the flow rate and hz is the height. Since the gravitational force is not considered in the design, hz = 0.
In this work, the boundary (Γ) can be divided into four parts: Γwall, Γin, Γout, and Γsym. On the wall (Γwall), the velocity can only be in the tangential direction (𝜃) due to the no-slip condition (vabs = vabs,𝜃e𝜃); therefore, since n = nrer + nzez, it can be said that vabs∙n = 0 on the walls. Also, since the rotation is given in the z direction (ω = ω0ez) and vabs = v + ω∧s, the inner product (ω∧s) ∙n is zero; therefore, vabs∙n = v∙n. On the symmetry axis (Γsym), v∙n = 0. Then, equation (24) becomes
The plots of the optimized topologies consider the values of the design variable α in the center of each finite element.
In the numerical examples, the specified fluid volume fraction (f ) is chosen as 30%.
The initial guess for the design variable is mainly chosen as a uniform distribution of α = f − 1, where f is the specified volume fraction and 1% is a margin set in order to guarantee that the initial guess does not violate the volume constraint (because of the numerical accuracy of the calculations). Some numerical examples use a previous converged topology as the initial guess to better condition the topology. The initial guess is explicitly indicated for all numerical examples, and it has been assessed that it does not significantly influence the optimized topologies (such as for “all fluid,” “all solid,” “all gray” (volume fraction), and “random” initial guesses).
In the material model, κmin is chosen as 0 kg/(m3/s) for all examples.
A continuation scheme in the optimization parameters is performed in order to better condition the solution to the fluid problem, with a maximum number of allowed optimization iterations defined for each continuation step (in the range of 10 to 800). In the beginning of each continuation step, the IPOPT algorithm is restarted.
6.1 Nozzle
The first example is the design of a nozzle. A nozzle is a device used to control the characteristics of a fluid flow entering or leaving another fluid device. In this case, the flow is considered as entering without rotation in a nozzle rotating around its own axis with the same rotation as the reference frame (ω0). By using the 2D swirl flow model, the design domain may be selected as in Fig. 8. The material distribution is being optimized on the rotating walls of the nozzle.
The mesh is chosen with 40 radial and 80 axial rectangular partitions of crossed triangular elements, totaling 6521 nodes and 12,800 elements (see Fig. 9). The input parameters and dimensions of the design domain that are used are shown in Table 1.
In order to analyze the influence of the wall rotation in the optimized topology, a series of optimizations is performed for a sequence of wall rotations. Figure 10 shows the objective function (relative energy dissipation) value in relation to the wall rotation and corresponding optimized topologies. The objective function value shown corresponds to the post-processed topology (22). The maximum Reynolds number is evaluated as 1040 (for 50 rpm, the values used for the Reynolds number are max(|vabs|) = 0.052 m/s, L = 20 mm, ν = 10− 6 m2/s ). In the case of a rotating pipe with constant diameter, the Reynolds number is defined in Nagib et al. (1969) with an average axial velocity. According to Nagib et al. (1969), the Reynolds number should be below about 1000 for laminar flow. In the case of the optimizations of a nozzle, since the diameter is not constant and the maximum velocity value is used in the Reynolds number definition, the flow should be laminar for all of optimized nozzles.
As can be seen in Fig. 10, for 0 rpm, there is a solid region around the inlet, which is similar to Borrvall and Petersson (2003)’s diffuser. The optimization schemes are shown in Table 2. Table 3 shows the values of the objective function and pressure head for the optimized topologies of Fig. 10. As can be noticed in Table 3, the negative pressure head shows that the device is passive. It can also be noticed that the pressure head slightly increased from 10 to 20 rpm, due to the larger inlet zone, and from 30 to 40 rpm, since the change in diameter became slightly smoother for 40 rpm (see Fig. 10).
As can be seen in Fig. 10, the rotation has the effect of enforcing a less smooth change in diameter, and the increase of rotation seems to prioritize an initial area with larger diameter.
Figure 11 shows the convergence curve for a Reynolds number of 420 (20 rpm wall rotation) (i.e., for the 3rd point of Fig. 10). The convergence values of the relative energy dissipation (objective function) are shown.
In order to assert the effectiveness of the material model to block the fluid flow, the relative velocity field is plotted in Fig. 12 for a Reynolds number of 420 (20 rpm wall rotation). As expected, the velocity is extremely small in the solid region of the optimized topology, showing that the material model is effective to block the fluid flow.
Figure 13 shows the topology optimization result for a Reynolds number of 420 (20 rpm wall rotation), the pressure/velocity distributions for the post-processed result, and the 3D representation of the optimized topology. The topology optimization result is highly discrete, with a measure of non-discreteness (MND) of 1.98%.
Figure 13d shows the effect of the acceleration of the inlet fluid due to the rotating walls: first, the fluid enters without rotation (v𝜃 < 0), then the tangential velocity is increased, getting closer to the velocity on the walls (v𝜃 = 0).
Figure 13b shows that the pressure is reduced after the reduction in the nozzle cross-sectional area, but slightly increases to 0 Pa near the outlet.
6.2 Hydrocyclone-type device
The second example is the design of a hydrocyclone-type device. It differs from a real hydrocyclone device from the sense that it considers a single-phase flow (instead of a two-phase flow) entering under rotation (ωin) with a single inlet and a single outlet. By using the 2D swirl flow model, the design domain may be selected as in Fig. 14. The material distribution is being optimized on the static walls of the hydrocyclone-type device (ω0 = 0 rad/s).
The mesh is chosen with 40 radial and 80 axial rectangular partitions of crossed triangular elements, totaling 6521 nodes and 12,800 elements. The input parameters and dimensions of the design domain that are used are shown in Table 4.
In order to analyze the influence of the rotation of the inlet in the optimized topology, a series of optimizations is performed for a sequence of inlet rotations. In this case, the first topology (0 rpm) considers the 30% volume fraction initial guess and the subsequent rotations consider the optimized topology of the immediately previous rotation. Figure 15 shows the objective function (relative energy dissipation) value in relation to the inlet rotation and corresponding optimized topologies. The objective function value shown corresponds to the post-processed topology (22). The maximum Reynolds number is evaluated as 795, which shows that the flow must still be laminar in all results (for 50 rpm, the values used for the Reynolds number are max(|vabs|) = 0.053 m/s , L = 15 mm , ν = 10− 6 m2/s). The initial guesses for the optimizations under rotation are the optimized topologies for each immediately lower rotation shown in Fig. 15. The optimization schemes are shown in Table 5.
As can be seen in Fig. 15, the rotation has the effect of pulling up the channel to about 45∘ in relation to the inlet. Also, near the inlet, a ring shape (considering that it is an axisymmetric domain) starts to form when there is inlet rotation.
Table 6 shows the values of the objective function and pressure head for the optimized topologies of Fig. 15. As can be noticed in Table 6, the negative pressure head shows that the device is passive.
Figure 16 shows the convergence curve for a Reynolds number of 285 (inlet rotation of 10 rpm) (i.e., for the 2nd point of Fig. 15). The convergence values of the relative energy dissipation (objective function) are shown.
Figure 17 shows the topology optimization result for a Reynolds number of 285 (10 rpm inlet rotation), the pressure/velocity distributions for the post-processed result, and the 3D representation of the optimized topology. The topology optimization result is highly discrete, with a measure of non-discreteness (MND) of 2.56%.
Figure 17c and d shows that, due to the inlet rotation, the outlet flow velocity is concentrated near the wall.
6.3 Two-outlet channel
The two-outlet channel problem consists of a single entrance of rotating fluid flow with two possible outlets, aiming to verify which of the two outlets the fluid should exit for lower relative energy dissipation. By using the 2D swirl flow model, the design domain may be selected as in Fig. 18. The material distribution is being optimized on the static walls of the two-outlet channel (ω0 = 0 rad/s).
The mesh is chosen with 40 radial and 80 axial rectangular partitions of crossed triangular elements, totaling 6521 nodes and 12,800 elements. The input parameters and dimensions of the design domain that are used are shown in Table 7.
In order to analyze the influence of the flow rate and inlet rotation in the optimized topology, a series of optimizations is performed for a sequence of flow rates and inlet rotations. Figure 19 shows the objective function (relative energy dissipation) value in relation to flow rate and inlet rotation and corresponding optimized topologies. The objective function value shown corresponds to the post-processed topology (22). The maximum Reynolds number is evaluated as 148.5, which shows that the flow must still be laminar in all results (for 20 rpm and flow rate of 0.015 L/min, the values used for the Reynolds number are max(|vabs|) = 9.9 × 10− 3 m/s , L = 15 mm , ν = 10− 6 m2/s ). The optimization schemes are shown in Table 8.
As can be seen in Fig. 19, the flow is always choosing the upper outlet for smaller relative energy dissipation. Also, it can be noticed that the optimized topology is not a straight line connecting inlet and outlet, showing that the optimized channel bends at low rotations and higher inlet velocities. This bend becomes less pronounced at higher rotations and lower flow rates. The behavior of this bending effect is most probably due to the nature of the fluid used in the optimization (water), since it has a high inertial effect due to its high density (1000.0 kg/m3), and a low viscous friction effect due to its low viscosity (0.001 Pa s).
Table 9 shows the values of the objective function and pressure head for the optimized topologies of Fig. 19.
Figure 20 shows the convergence curve for a Reynolds number of 99 (0.01 L/min and 10 rpm inlet rotation) (i.e., for the 2nd point of the 10 rpm curve of Fig. 14). The convergence values of the relative energy dissipation (objective function) are shown.
Figure 21 shows the topology optimization result for a Reynolds number of 99 (0.01 L/min and 10 rpm inlet rotation), the pressure/velocity distributions for the post-processed result, and the 3D representation of the optimized topology. The topology optimization result is highly discrete, with a measure of non-discreteness (MND) of 3.19%.
6.4 Two-way channel
The two-way channel problem consists of two non-rotating fluid inlets passing through rotating channels: one coming from an inner radius and the other coming from an outer radius, with opposing outlets. The flow rates of the two inlets are chosen as the same; therefore, since each inlet area is different (due to being located at different radii), the inlet velocity at the smaller radius is higher than the one located at the larger radius. This is significantly different from a normal 2D two-way channel problem, in which both inlet velocities would be the same for equal flow rates. By using the 2D swirl flow model, the design domain may be selected as in Fig. 22. The material distribution is being optimized on the rotating walls of the two-way channel.
Since the flow rate is equally divided for each inlet, \(Q_{1} = Q_{2} = \frac {Q}{2}\).
The aspect ratio’s effect is considered as (Rext − Rint) : H, for different external radii (Rext).
The mesh is chosen with 50 ∼ 100 radial and 80 axial rectangular partitions of crossed triangular elements, totaling 8131 ∼ 16,181 nodes and 16,000 ∼32,000 elements. The input parameters and dimensions of the design domain that are used are shown in Table 10.
In order to analyze the influence of the aspect ratio in the optimized topology, a series of optimizations is performed for three different aspect ratios. Figure 23 shows the objective function (relative energy dissipation) value in relation to the wall rotation for each aspect ratio. The objective function value shown corresponds to the post-processed topology (22). The maximum Reynolds number is evaluated as 1500, which shows that the flow must still be laminar in all results (for 50 rpm and 0.5 L/min, the values used for the Reynolds number are max(|vabs|) = 0.1 m/s , L = 15 mm , ν = 10− 6 m2/s). The optimization schemes are shown in Table 11.
As can be seen in Fig. 23, for a 30% volume fraction, the inlets and their neighbor outlets form different channels based on the imposed rotation. It shows that the inner inlet velocity (higher) dominates the channel formation for higher aspect ratios (1.5:1 and 1:1) and low rotations (0 rpm). However, increasing the flow rate makes it more difficult for the flow to cross to higher/lower radii, forcing it to bend to the closest outlets, forming circular ring shapes (since the domain is axisymmetric). Lower aspect ratios (1:2) show the formation of two channels due to proximity. Nonetheless, increasing the flow rate shows the same effect observed for higher aspect ratios (1.5:1 and 1:1). As can be observed for 1.5:1 and 1:1 at 0 rpm, there are small fluid zones near the inner radius outlets. These zones do not have any flow rate and represent only an attempt of the optimization algorithm to create channels that linked them to an inlet.
Table 12 shows the values of the objective function and pressure head for the optimized topologies of Fig. 23. As can be noticed, some values of pressure head are positive, which means that the liquid is being pumped in these cases.
Figure 24 shows the convergence curve for an aspect ratio of 1:1 and a Reynolds number of 707 (30 rpm wall rotation) (i.e., for the 4th point of the 1:1 curve of Fig. 23). The convergence values of the relative energy dissipation (objective function) are shown.
Figure 25 shows the topology optimization result for an aspect ratio of 1:1 and a Reynolds number of 707 (30 rpm wall rotation), the pressure/velocity distributions for the post-processed result, and the 3D representation of the optimized topology. The topology optimization result is highly discrete, with a measure of non-discreteness (MND) of 5.88%.
Figure 25c shows that there is a clear difference in velocity magnitude for the inner (higher velocity) and outer (lower velocity) radii inlets. The effect of the rotating channels can be observed in Fig. 25d, where the tangential velocity is equal to the channel rotation near the walls.
7 Conclusions
In this work, a topology optimization scheme based on 2D swirl flow model is developed to design flow devices such as hydrocyclones, some pumps and turbines, and fluid separators, which present an axisymmetric flow with (or without) flow rotation around the axisymmetric axis. This formulation avoids the need of 3D models that have high computational cost to design these devices.
The numerical examples show some conceptual cases in order to demonstrate the use of the 2D swirl flow model in topology optimization. The results illustrate the effect of a rotating reference frame, the effect of a rotating inlet, the effect of a flow rate coupled with a rotating inlet, and the effect of inner and outer radii inlets and outlets. As can be noticed, a sufficiently high-flow rotation has the effect of slowing the radial and axial velocity components effect in the optimized topologies.
In most of the numerical examples, the pressure head is negative, showing that these devices are passive in relation to the fluid flow. However, in some of the numerical examples, the rotation could reach positive pressure heads, which means that the liquid is being pumped. Therefore, this formulation allows the development of novel fluidic devices such as hydrocyclones, separators, and pumps.
As future work, the use of the 2D swirl flow model in specific applications is suggested such as in pump/turbine design, the use of non-Newtonian fluid flows, and turbulence models.
Change history
13 November 2018
The original version of this article contain
References
Amestoy PR, Duff IS, Koster J, L’Excellent JY (2001) A fully asynchronous multifrontal solver using distributed dynamic scheduling. SIAM J Matrix Anal Appl 23(1):15–41
Andreasen CS, Gersborg AR, Sigmund O (2009) Topology optimization of microfluidic mixers. Int J Numer Methods Fluids 61:498–513. https://doi.org/10.1002/fld.1964
Barth WL, Carey GF (2007) On a boundary condition for pressure-driven laminar flow of incompressible fluids. Int J Numer Methods Fluids 54(11):1313–1325. https://doi.org/10.1002/fld.1427
Borrvall T, Petersson J (2003) Topology optimization of fluids in stokes flow. Int J Numer Methods Fluids 41(1):77–107. https://doi.org/10.1002/fld.426
Deng Y, Liu Z, Wu J, Wu Y (2013a) Topology optimization of steady Navier–Stokes flow with body force. Comput Methods Appl Mech Eng 255(Supplement C):306–321. https://doi.org/10.1016/j.cma.2012.11.015. http://www.sciencedirect.com/science/article/pii/S0045782512003532
Deng Y, Liu Z, Wu Y (2013b) Topology optimization of steady and unsteady incompressible Navier—Stokes flows driven by body forces. Struct Multidiscip Optim 47(4):555–570. https://doi.org/10.1007/s00158-012-0847-8
Duan X, Li F, Qin X (2016) Topology optimization of incompressible Navier–Stokes problem by level set based adaptive mesh method. Comput Math Appl 72(4):1131–1141. https://doi.org/10.1016/j.camwa.2016.06.034. http://www.sciencedirect.com/science/article/pii/S0898122116303662
Evgrafov A (2004) Topology optimization of Navier-Stokes equations Nordic MPS 2004. The Ninth meeting of the nordic section of the mathematical programming society, vol 014. Linköping University Electronic Press, pp 37–55
Evgrafov A (2006) Topology optimization of slightly compressible fluids. ZAMM-J Appl Math Mech/Zeitschrift fü,r Angewandte Mathematik und Mechanik 86(1):46–62
Farrell PE, Ham DA, Funke SW, Rognes ME (2013) Automated derivation of the adjoint of high-level transient finite element programs. SIAM J Sci Comput 35(4):C369–C393
Guest JK, Prévost JH (2006) Topology optimization of creeping fluid flows using a Darcy–Stokes finite element. Int J Numer Methods Eng 66(3):461–484. https://doi.org/10.1002/nme.1560
Jensen KE, Szabo P, Okkels F (2012) Topology optimization of viscoelastic rectifiers. Applied Physics Letters 100(23) 234:102
Logg A, Mardal KA, Wells G (2012) Automated solution of differential equations by the finite element method: the FEniCS book, vol 84. Springer Science & Business Media. https://fenicsproject.org/book/
Munson BR, Young DF, Okiishi TH (2009) Fundamentals of fluid mechanics, 6th edn. Wiley
Nagib HM, Wolf L Jr, Lavan Z, Fejer AA (1969) On the stability of flow in rotating pipes. Tech. rep., Illinois Institute of Technology Chicago
Olesen LH, Okkels F, Bruus H (2006) A high-level programming-language implementation of topology optimization applied to steady-state Navier–Stokes flow. Int J Numer Methods Eng 65(7):975–1001
Pingen G, Maute K (2010) Optimal design for non-newtonian flows using a topology optimization approach. Comput Math Appl 59(7):2340–2350
Romero J, Silva E (2014) A topology optimization approach applied to laminar flow machine rotor design. Comput Methods Appl Mech Eng 279(Supplement C):268–300. https://doi.org/10.1016/j.cma.2014.06.029. http://www.sciencedirect.com/science/article/pii/S0045782514002151
Sá LFN, Amigo RCR, Novotny AA, Silva ECN (2016) Topological derivatives applied to fluid flow channel design optimization problems. Struct Multidiscip Optim 54(2):249–264. https://doi.org/10.1007/s00158-016-1399-0
Sigmund O (2007) Morphology-based black and white filters for topology optimization. Struct Multidiscip Optim 33(4):401–424. https://doi.org/10.1007/s00158-006-0087-x
Sokolowski J, Zochowski A (1999) On the topological derivative in shape optimization. SIAM J Control Optim 37(4):1251–1272
Song XG, Wang L, Baek SH, Park YC (2009) Multidisciplinary optimization of a butterfly valve. ISA Trans 48(3):370–377
Vafai K (2005) Handbook of porous media, 2nd edn. Crc Press
Wächter A, Biegler LT (2006) On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math Program 106(1):25–57
Weatherburn CE (1955) Differential geometry of three dimensions, 1st edn, vol 1. Cambridge University Press
White FM (2011) Fluid mechanics, 7th edn. McGraw-Hill
Wiker N, Klarbring A, Borrvall T (2007) Topology optimization of regions of Darcy and Stokes flow. Int J Numer Methods Eng 69(7):1374–1404
Yoon GH (2016) Topology optimization for turbulent flow with spalart–allmaras model. Comput Methods Appl Mech Eng 303:288–311. https://doi.org/10.1016/j.cma.2016.01.014. http://www.sciencedirect.com/science/article/pii/S004578251630007X
Zhou S, Li Q (2008) A variationals level set method for the topology optimization of steady-state Navier–Stokes flow. J Comput Phys 227(24):10,178–10,195
Acknowledgements
The authors thank the reviewers for the discussions regarding the outlet boundary conditions.
Funding
This research was partly supported by CNPq (Brazilian Research Council), FAPERJ (Research Foundation of the State of Rio de Janeiro) and FAPESP (São Paulo Research Foundation). The authors thank the supporting institutions. The first author thanks the financial support of FAPESP under grant 2017/27049-0. The second author thanks the financial support of FAPESP under grant 2016/19261-7. The fourth author thanks the financial support of CNPq (National Council for Research and Development) under grant 304121/2013-4 and of FAPESP under grant 2013/24434-0. The authors also acknowledge the support of the RCGI (Research Centre for Gas Innovation), hosted by the University of São Paulo (USP) and sponsored by FAPESP (2014/50279-4) and Shell Brazil.
Author information
Authors and Affiliations
Corresponding author
Additional information
Responsible Editor: Ole Sigmund
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A: Weak form of the 2D swirl flow model
Even though the FEniCS platform needs only the variational (weak) form of the problem, if a traditional implementation is considered (as with Matlab®), it is interesting to also present the discrete forms of the equations rather than just the variational form. Thus, in this appendix, the equations of the 2D swirl flow model are detailed. By considering 2D coordinates in the equations (14) and (15), the domain given in cylindrical coordinates (in which the differential volume and area are given by, respectively, 2πrdΩ and 2πrdΓ), axisymmetry (\(\frac {\partial (\ )}{\partial \theta } = 0\)), differential operators for the cylindrical coordinate system and omission of the multiplicative constant 2π (since it does not influence the results), the equations become:
-
Continuity equation
$$ {R}_{c} = \displaystyle{\int}_{\Omega }\left[\frac{\partial v_{r}}{\partial r} + \frac{v_{r}}{r} + \frac{\partial v_{z}}{\partial z}\right]\boldsymbol{w}_{p}rd{\Omega} $$(26) -
Navier-Stokes: r term
-
Navier-Stokes: 𝜃 term
-
Navier-Stokes: z term
From equations (26), (27), (28), and (29), the contribution of each term in the weak form of the problem can be assessed, as well as the inertial forces caused by the rotating reference frame, viscosity, and movement of fluid.
The stress tensor T, that is first shown in equation (5), becomes
Appendix B: Weak imposition of pressure in a 2D swirl flow
In this Appendix, the weak imposition of pressure that results from the second outlet boundary condition of equation (13) is derived for a 2D swirl flow (the derivation for the case of a 2D (not 2D swirl) flow is shown in Barth and Carey 2007). The boundary condition being analyzed is reproduced below
In a 2D swirl flow, the velocity vector is given by equation (12) and can be written as
where \(\boldsymbol {v}_{rz,t} = \left [\begin {array}{c} {v}_{r,t} \\ 0 \\ {v}_{z,t} \end {array}\right ]\) is the tangential component of the velocity in the “2D plane”, \(\boldsymbol {v}_{\theta } = \left [\begin {array}{c} 0 \\ {v}_{\theta } \\ 0 \end {array}\right ]\) is the tangential velocity, and vn = (v∙n)n is the normal component of the velocity in the “2D plane” (\(\boldsymbol {n} = \left [\begin {array}{c} n_{r} \\ 0 \\ n_{z} \end {array}\right ]\) with \({n_{r}^{2}} + {n_{z}^{2}} = 1\), is the normal unit vector to the line that defines the outlet boundary in the “2D plane”).
Since vrz,t = 0 (from equation (31)),
By substituting equation (33) in the continuity equation (7), and also considering vn = (v∙n)n (projection of v in the normal direction), \(\nabla {\bullet }\boldsymbol {v}_{\theta } = \frac {1}{r} \left (\frac {\partial v_{\theta }}{\partial \theta } \right ) = 0\) (from axisymmetry), and the product rule for derivatives
The normal stress on the outlet boundary can be written as
By substituting equation (33) in the second term of equation (35) without μ,
For a 2D swirl flow, from axisymmetry and cylindrical coordinates, it can be shown that
By substituting equations (37) in equation (36) and considering vn = (v∙n)n and the product rule for derivatives,
By reorganizing the above equation,
For a 2D swirl flow, from axisymmetry and cylindrical coordinates, it can also be shown that
By substituting equations (40) in equation (39),
By substituting equation (34) in equation (41),
By substituting the mean curvature of a boundary given its normal vector n (km = −∇∙n Weatherburn 1955) equation (42) becomes
Therefore, by substituting equation (43) in the equation for the normal stress (35),
which has the same format of the expression for 2D flow shown in Barth and Carey (2007).
Since n∙Tn = 0 (from equation (31)) and by considering the outlet as a straight line (km = 0), the pressure (p) attains the zero value implicitly. Therefore, setting the boundary condition n∙Tn = 0 on a straight outlet when vrz,t = 0, is equivalent to weakly enforcing a zero pressure value in the boundary term of the Navier-Stokes equations.
Appendix C: Discrete forms
1.1 C.1 Discrete form of the equations
According to the Galerkin method, the test functions are equal to the shape functions for pressure (χ) and velocity (ϕ),
The dependent variables (velocity and pressure) may be approximated by a combination of the shape functions in relation to each node inside a finite element (see Fig. 3). Therefore,
where vr, v𝜃, vz, p are the vectors of nodal values, and ϕ, χ are the shape functions (“basis functions”).
Since there are three velocity components (n = 6) and one pressure component (m = 3), the element matrices will be 21×21 (3×6 + 1×3).
Equation (16) can also be represented in a matrix form for all nodes, by separating each term due to the Navier-Stokes equations in the directions r, 𝜃, and z and the continuity equation,
where (see Appendix D for the definitions of the matrix terms of the discrete form)
\(\boldsymbol {F} = \left [\begin {array}{c}{\boldsymbol {R}}_{m,r}\\{\boldsymbol {R}}_{m,\theta }\\{\boldsymbol {R}}_{m,z}\\{\boldsymbol {R}}_{c} \end {array}\right ]\) is the weak formulation separated into 4 residual components;
KG(z) = KG,S + KG,A(z) + KG,r is the global matrix relative to the state variables, in which KG,S, KG,A(z), and KG,r are, respectively, the symmetric part, the asymmetric part, and the part due to rotation of the reference frame:
\(\boldsymbol {K}_{G,\kappa } = \left [\begin {array}{cccc}\boldsymbol {K}_{\kappa }&\mathbf {0}&\mathbf {0}&\mathbf {0}\\\mathbf {0}&\boldsymbol {K}_{\kappa }&\mathbf {0}&\mathbf {0}\\\mathbf {0}&\mathbf {0}&\boldsymbol {K}_{\kappa }&\mathbf {0}\\\mathbf {0}&\mathbf {0}&\mathbf {0}&\mathbf {0} \end {array}\right ]\) is the material model matrix.
\(\boldsymbol {F}_{C} = \left [\begin {array}{c}\boldsymbol {F}_{\mathit {C1}}\\\boldsymbol {F}_{\mathit {C2}}\\\boldsymbol {F}_{\mathit {C3}}\\\mathbf {0} \end {array}\right ]\) is the force matrix, composed of body forces, Coriolis forces, inertial centrifugal forces, and the boundary term.
\(\boldsymbol {z} = \left [\begin {array}{c}\boldsymbol {v}_{r}\\\boldsymbol {v}_{\theta }\\\boldsymbol {v}_{z}\\\boldsymbol {p} \end {array}\right ]_{(3n+m)\times 1}\) are the nodal values of the state variables;
\(\boldsymbol {z}_{\text {mat}} = \left [\begin {array}{c}\boldsymbol {v}_{\text {mat},r}\\\boldsymbol {v}_{\text {mat},\theta }\\\boldsymbol {v}_{\text {mat},z}\\\mathbf {0} \end {array}\right ] = \left [\begin {array}{c}\boldsymbol {v}_{r}\\\boldsymbol {v}_{\theta } - \omega _{\text {mat}}\boldsymbol {r}\\\boldsymbol {v}_{z}\\\mathbf {0} \end {array}\right ]\) are the nodal velocities relative to the material model (from equation (8)).
Equation (48) can be also written as
where \(\boldsymbol {K}_{G}^{\prime } = \boldsymbol {K}_{G} + \boldsymbol {C}_{\kappa }\) and \(\boldsymbol {F}_{c}^{\prime } = \boldsymbol {F}_{c} + \left [\begin {array}{c}\mathbf {0}\\-\boldsymbol {K}_{\kappa ,\theta }\omega _{\text {mat}}\boldsymbol {r}\\\mathbf {0}\\\mathbf {0} \end {array}\right ]\). Note that, if ωmat = 0 , \(\boldsymbol {F}_{c}^{\prime } = \boldsymbol {F}_{c}\).
The equations are solved by using the Newton-Raphson method (see Appendix E for the Jacobian).
1.2 C.2 Discrete form of the objective function
Equation (19) can be represented in a matrix form for all nodes, by using equations (45), (46), and (47),
where (see Appendix D for the definition of the matrix terms of the discrete form)
is the viscous dissipation matrix.
Cκ = 2πKG,κ is the material model matrix (given by equation (48)) multiplied by 2π.
Equation (50) can be also given by
where C’ = C + Cκ and \(\boldsymbol {C}_{r} = \left [\begin {array}{c}\mathbf {0}\\\boldsymbol {K}_{\kappa ,\theta }\omega _{\text {mat}}\boldsymbol {r}\\\mathbf {0}\\\mathbf {0} \end {array}\right ]\). Note that, if ωmat = 0 , Cr = 0 .
1.3 C.3 Sensitivity analysis in the discrete domain
The design variable (independent variable) may be approximated as
where α is the vector of nodal values of the design variable and ζ are the shape functions (“basis functions”).
By using P1 elements for the design variable, nα = 3.
The sensitivity of a functional Φrel = Φrel(z,α) given the weak form F(z, α) = 0 (48) can be obtained by the adjoint method as the following two linear systems
where * represents conjugate transpose, and \(\mathbf {\lambda }_{d,{\Phi } }^{\text {*}}\) is the conjugate transpose of the discrete adjoint vector, corresponding to the Lagrange multipliers of the weak form, and
Appendix D: Matrix terms of the discrete forms
1.1 D.1 Matrix terms of the discrete form of the equations
1.2 D.2 Matrix terms of the discrete form of relative energy dissipation
Appendix E: Jacobian of the discrete form of the equations
The Jacobian of the discrete form of the equations \(\mathbf {J}_{F} = \frac {d\boldsymbol {F}}{d\boldsymbol {z}}\) is given by
By using equations (45), (46), and (47), in the equations of Appendix A (26) to (29), and by representing through indicial (Einstein) notation, the submatrices of equation (81) become
Rights and permissions
About this article
Cite this article
Alonso, D.H., de Sá, L.F.N., Saenz, J.S.R. et al. Topology optimization applied to the design of 2D swirl flow devices. Struct Multidisc Optim 58, 2341–2364 (2018). https://doi.org/10.1007/s00158-018-2078-0
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00158-018-2078-0