There are several AD tools available, which all implement different strategies for the reverse mode of AD. The major strategies are primal value taping (implemented e.g. by ADOL-c) and Jacobi taping (implemented e.g. by adept and dco/c++). Especially for Jacobi taping, recent advances by using expression templates make this approach very attractive for large scale software. The current implementations are either closed source or miss essential features and flexibility. Therefore, we present the new AD tool CoDiPack (Code Differentiation Package) in this paper. It is specifically designed for a minimal memory consumption and optimal runtime, such that it can be used for the differentiation of large scale software. An essential part of the design of CoDiPack is the modular layout and the recursive data structures, which do not only allow the efficient implementation of the Jacobi taping approach, but will also enable other approaches like the primal value taping or new research ideas. We will also present the performance value of CoDiPack on a generic PDE example and on the SU2 code.
Non-Ideal Compressible Fluid-Dynamics (NICFD) has recently been established as a sector of fluid mechanics dealing with the flows of dense vapors, supercritical fluids, and two-phase fluids, whose properties significantly depart from those of the ideal gas. The flow through an Organic Rankine Cycle (ORC) turbine is an exemplary application, as stators often operate in the supersonic and transonic regime, and are affected by NICFD effects. Other applications are turbomachinery using supercritical CO2 as working fluid or other fluids typical of the oil and gas industry, and components of air conditioning and refrigeration systems. Due to the comparably lower level of experience in the design of this fluid machinery, and the lack of experimental information on NICFD flows, the design of the main components of these processes (i.e., turbomachinery and nozzles) may benefit from adjoint-based automated fluid-dynamic shape optimization. Hence, this work is related to the development and testing of a fully-turbulent adjoint method capable of treating NICFD flows. The method was implemented within the SU2 open-source software infrastructure. The adjoint solver was obtained by linearizing the discretized flow equations and the fluid thermodynamic models by means of advanced Automatic Differentiation (AD) techniques. The new adjoint solver was tested on exemplary turbomachinery cases. Results demonstrate the method effectiveness in improving simulated fluid-dynamic performance, and underline the importance of accurately modeling non-ideal thermodynamic and viscous effects when optimizing internal flows influenced by NICFD phenomena.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.