Flexible framework for fluid topology optimization with OpenFOAM® and finite element-based high-level discrete adjoint method (FEniCS/dolfin-adjoint)

被引:8
作者
Alonso, Diego Hayashi [1 ]
Garcia Rodriguez, Luis Fernando [1 ]
Silva, Emilio Carlos Nelli [1 ]
机构
[1] Univ Sao Paulo, Polytech Sch, Dept Mechatron & Mech Syst Engn, Sao Paulo, SP, Brazil
基金
巴西圣保罗研究基金会;
关键词
Fluid topology optimization; Discrete adjoint method; Turbulence; OpenFOAM (R); FEniCS; dolfin-adjoint; DESIGN OPTIMIZATION; SHAPE OPTIMIZATION; TURBULENCE MODEL; FLOW; STEADY; IMPLEMENTATION; DARCY;
D O I
10.1007/s00158-021-03061-4
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In order to implement the topology optimization method, it is necessary to simulate the fluid flow dynamics and also obtain the sensitivities with respect to the design variable (such as through the adjoint method). However, more complex fluid flows, such as turbulent, non-Newtonian, and compressible flows, may turn the implementation of these two aspects difficult and non-intuitive. In order to solve this deadlock, this work proposes the combination of two well-known and established open-source softwares: OpenFOAM (R) and FEniCS/dolfin-adjoint. OpenFOAM (R) already provides efficient implementations for various fluid flow models, while FEniCS, when combined with the dolfin-adjoint library, provides an efficient and automatic high-level discrete adjoint model. There have been various attempts for obtaining the adjoint model directly in OpenFOAM (R) , but they mostly rely on the following: (1) manually deducing the adjoint equations, which may become a hard and cumbersome task for complex models; (2) C++ automatic differentiation tools, which are generally computationally inefficient; and (3) finite differences, which have been developed for shape optimization (not topology optimization, where there are many more design variable values). Nonetheless, these approaches generally do not provide an easy setup, and may be fairly complex to consider. The FEniCS platform does not provide any fluid flow model out of the box, but makes it fairly simple to "simplistically" define them. The main problem of the FEniCS implementation and even implementations "by hand" (such as in C++, Matlab (R) or Python) is the convergence of the simulation, which would possibly require fairly complex adjustments in the implementation in order to reach convergence. Therefore, the combination proposed in this work (OpenFOAM (R) and FEniCS/dolfin-adjoint) is a simpler but efficient approach to consider more complex fluid flows, countering the difficult adjoint model implementation in OpenFOAM (R) and also the convergence issues in FEniCS. The implemented framework, referred as "FEniCS TopOpt Foam", can perform the coupling between the two softwares. Numerical examples are presented considering laminar and turbulent flows (Spalart-Allmaras model) for 2D, 2D axisymmetric, and 3D domains.
引用
收藏
页码:4409 / 4440
页数:32
相关论文
共 80 条
  • [1] Adept, 2021, AD A COMB AUT DIFF A
  • [2] Non-newtonian laminar 2D swirl flow design by the topology optimization method
    Alonso, Diego Hayashi
    Saenz, Juan Sergio Romero
    Silva, Emilio Carlos Nelli
    [J]. STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2020, 62 (01) : 299 - 321
  • [3] Topology optimization based on a two-dimensional swirl flow model of Tesla-type pump devices
    Alonso, Diego Hayashi
    Nogueira de Sa, Luis Fernando
    Romero Saenz, Juan Sergio
    Nelli Silva, Emilio Carlos
    [J]. COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2019, 77 (09) : 2499 - 2533
  • [4] Topology optimization applied to the design of 2D swirl flow devices
    Alonso, Diego Hayashi
    Nogueira de Sa, Luis Fernando
    Romero Saenz, Juan Sergio
    Nelli Silva, Emilio Carlos
    [J]. STRUCTURAL AND MULTIDISCIPLINARY OPTIMIZATION, 2018, 58 (06) : 2341 - 2364
  • [5] Topology optimization of microfluidic mixers
    Andreasen, Casper Schousboe
    Gersborg, Allan Roulund
    Sigmund, Ole
    [J]. INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS, 2009, 61 (05) : 498 - 513
  • [6] [Anonymous], 2019, Turbulence modeling resource
  • [7] [Anonymous], 2006, CO FL SO ME, DOI 10.1007/1-84628-205-5
  • [8] [Anonymous], 2014, Not. Am. Math. Soc., DOI [10.1090/NOTI1095, DOI 10.1090/NOTI1095]
  • [9] [Anonymous], 1984, CALCOLO, DOI 10.1007/bf02576171
  • [10] Ansys I, 2006, MODELING TURBULENT F