A two-level computational graph method for the adjoint of a finite volume based compressible unsteady flow solver

被引:3
作者
Talnikar, Chaitanya [1 ]
Wang, Qiqi [1 ]
机构
[1] MIT, Aerosp Computat Design Lab, Cambridge, MA 02139 USA
关键词
Compressible flow solver; Finite volume method; Computational graphs; Automatic differentiation; GPU Programming; !text type='Python']Python[!/text; MPI;
D O I
10.1016/j.parco.2018.12.001
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The adjoint method is a useful tool for finding gradients of design objectives with respect to system parameters for fluid dynamics simulations. But the utility of this method is hampered by the difficulty in writing an efficient implementation for the adjoint flow solver, especially one that scales to thousands of cores. This paper demonstrates a Python library, called adFVM, that can be used to construct an explicit unsteady flow solver and derive the corresponding discrete adjoint flow solver using automatic differentiation (AD). The library uses a two-level computational graph method for representing the structure of both solvers. The library translates this structure into a sequence of optimized kernels, significantly reducing its execution time and memory footprint. Kernels can be generated for heterogeneous architectures including distributed memory, shared memory and accelerator based systems. The library is used to write a finite volume based compressible flow solver. A wall clock time comparison between different flow solvers and adjoint flow solvers built using this library and state of the art graph based AD libraries is presented on a turbo-machinery flow problem. Performance analysis of the flow solvers is carried out for CPUs and GPUs. Results of strong and weak scaling of the flow solver and its adjoint are demonstrated on subsonic flow in a periodic box. (C) 2018 Elsevier B.V. All rights reserved.
引用
收藏
页码:68 / 84
页数:17
相关论文
共 50 条
  • [1] A two-level finite volume method for the unsteady Navier-Stokes equations based on two local Gauss integrations
    Zhang, Tong
    Yang, Jinhua
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2014, 263 : 377 - 391
  • [2] Two-level multiscale enrichment finite volume method based on the Newton iteration for the stationary incompressible magnetohydrodynamics flow
    Shen, Xiaorong
    Chen, Chuanjun
    Bian, Huanying
    Zhang, Tong
    MATHEMATICAL METHODS IN THE APPLIED SCIENCES, 2023,
  • [3] Two-level stabilized finite volume method for the stationary incompressible magnetohydrodynamic equations
    Chu, Xiaochen
    Chen, Chuanjun
    Zhang, Tong
    NUMERICAL METHODS FOR PARTIAL DIFFERENTIAL EQUATIONS, 2023, 39 (06) : 4196 - 4220
  • [4] A Potential Flow Solver for Nonlinear Free Surface Problems Based on the Finite Volume Method
    Martio, Jussi
    SHIP TECHNOLOGY RESEARCH, 2006, 53 (02) : 55 - +
  • [5] Development of a finite volume contact solver based on the penalty method
    Cardiff, P.
    Karac, A.
    Ivankovic, A.
    COMPUTATIONAL MATERIALS SCIENCE, 2012, 64 : 283 - 284
  • [6] Convergence of first-order finite volume method based on exact Riemann solver for the complete compressible Euler equations
    Lukacova-Medvid'ova, Maria
    Yuan, Yuhuan
    NUMERICAL METHODS FOR PARTIAL DIFFERENTIAL EQUATIONS, 2023, 39 (05) : 3777 - 3810
  • [7] An Entropy Stable Finite Volume Method for a Compressible Two Phase Model
    Feireisl, Eduard
    Petcu, Madalina
    She, Bangwei
    APPLICATIONS OF MATHEMATICS, 2023, 68 (04) : 467 - 483
  • [8] An entropy stable finite volume method for a compressible two phase model
    Eduard Feireisl
    Mădălina Petcu
    Bangwei She
    Applications of Mathematics, 2023, 68 : 467 - 483
  • [9] Two-Level Stabilized Finite Volume Methods for the Stationary Navier-Stokes Equations
    Zhang, Tong
    Xu, Shunwei
    ADVANCES IN APPLIED MATHEMATICS AND MECHANICS, 2013, 5 (01) : 19 - 35
  • [10] A Higher Order Interpolation Scheme of Finite Volume Method for Compressible Flow on Curvilinear Grids
    Jiang, Zhen-Hua
    Deng, Xi
    Xiao, Feng
    Yan, Chao
    Yu, Jian
    COMMUNICATIONS IN COMPUTATIONAL PHYSICS, 2020, 28 (04) : 1609 - 1638