You are here

DAFoam: An Open-Source Adjoint Framework for Multidisciplinary Design Optimization with OpenFOAM

TitleDAFoam: An Open-Source Adjoint Framework for Multidisciplinary Design Optimization with OpenFOAM
Publication TypeJournal Articles
Year of Publication2019
AuthorsHe, P, Mader, CA, Martins, JRRA, Maki, KJ
JournalAIAA Journal

The adjoint method is an efficient approach for computing derivatives that allow gradient-based optimization to handle systems parameterized with a large number of design variables. Despite this advantage, implementing the adjoint method for a partial-differential-equation-based primal solver is a time-consuming task. To lower the barrier for adjoint implementations, we propose DAFoam: an object-oriented framework to rapidly implement the discrete adjoint method for any steady-state OpenFOAM primal solver by adding or modifying only a few hundred lines of source code. In this paper, we introduce the DAFoam framework and illustrate the proposed object-oriented adjoint development process. Using this strategy, we implement the adjoint method for eight primal solvers, five turbulence models, and one radiation model in OpenFOAM. We achieve excellent adjoint speed and scalability, with up to 10 million cells and 1536 CPU cores, and an average error in the adjoint derivatives of less than 0.1%. Finally, we integrate the implemented adjoint solvers and models into a gradient-based optimization framework and showcase four distinct design optimizations: multipoint aerodynamic optimization of a low-speed UAV wing, aerodynamic optimization of a transonic aircraft configuration, aerothermal optimization of a turbine internal cooling passage, and aerostructural optimization of a compressor rotor. DAFoam is available under an open-source license and is a powerful tool for the high-fidelity multidisciplinary design optimization of engineering systems such as aircraft, ground vehicles, marine vessels, and turbomachinery.


In press

Citation Key1343