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 条
  • [31] Nonlinear Finite Volume Method with Discrete Maximum Principle for the Two-Phase Flow Model
    Nikitin, K.
    Novikov, K.
    Vassilevski, Y.
    LOBACHEVSKII JOURNAL OF MATHEMATICS, 2016, 37 (05) : 570 - 581
  • [32] A finite volume coupled level set and volume of fluid method with a mass conservation step for simulating two-phase flows
    Lyras, Konstantinos G.
    Lee, Jack
    INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS, 2022, 94 (08) : 1027 - 1047
  • [33] Numerical modelling of two-layer shallow water flow in microtidal salt-wedge estuaries: Finite volume solver and field validation
    Krvavica, Nino
    Kozar, Ivica
    Travas, Vanja
    Ozanic, Nevenka
    JOURNAL OF HYDROLOGY AND HYDROMECHANICS, 2017, 65 (01) : 49 - 59
  • [34] Numerical modeling of groundwater flow based on explicit and fully implicit schemes of finite volume method
    Dalkilic, Huseyin Y.
    Gharehbaghi, Amin
    JOURNAL OF ENGINEERING RESEARCH, 2021, 9 (4B): : 56 - 69
  • [35] Two-time level ADI finite volume method for a class of second-order hyperbolic problems
    Yang, Min
    APPLIED MATHEMATICS AND COMPUTATION, 2010, 215 (09) : 3239 - 3248
  • [36] A finite-volume/level-set method for simulating two-phase flows on unstructured grids
    Balcazar, Nestor
    Jofre, Lluis
    Lehmkuhl, Oriol
    Castro, Jesus
    Rigola, Joaquim
    INTERNATIONAL JOURNAL OF MULTIPHASE FLOW, 2014, 64 : 55 - 72
  • [37] Modeling and numerical analysis of compressible Darcy-Brinkman fluid flow in fractured media with finite volume method on non-matching grids
    Wang, Zhifeng
    Liu, Wei
    Huang, Jian
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2023, 420
  • [38] Finite volume method for reduced multi-layer model of compressible Brinkman flow in high-dimensional fractured reservoirs with damage zones
    Liu, Wei
    Wang, Zhifeng
    Wang, Pengshan
    JOURNAL OF COMPUTATIONAL PHYSICS, 2025, 529
  • [39] A three-dimensional transient two-phase flow analysis with a density pertubation finite volume method
    Grandotto, M
    Cortes, J
    INTERNATIONAL JOURNAL OF COMPUTATIONAL FLUID DYNAMICS, 2005, 19 (04) : 311 - 319
  • [40] Simulation of three-dimensional movement of landslide-debris flow based on finite volume method
    Du, Juan
    Yin, Kunlong
    Wang, Jiajia
    Yanshilixue Yu Gongcheng Xuebao/Chinese Journal of Rock Mechanics and Engineering, 2015, 34 (03): : 480 - 488