首页> 外文会议>AIAA SciTech Forum and Exposition >Comparing Matrix-based and Matrix-free Discrete Adjoint Approaches to the Euler Equations
【24h】

Comparing Matrix-based and Matrix-free Discrete Adjoint Approaches to the Euler Equations

机译:比较基于矩阵和无矩阵的离散伴随方法与Euler方程

获取原文

摘要

Detail is presented on the implementation of numerical derivatives with focus given to the discrete adjoint equations. Two approaches are considered: a hybrid matrix-based scheme where the convective Jacobian is constructed explicitly; and a matrix-free method using reverse-mode automatic differentiation. The hybrid matrix-based scheme exploits a compact convective stencil using graph colouring to evaluate the convective Jacobian terms in O(10) residual evaluations. Jacobian terms, grouped by colours, are evaluated using the complex step tangent model; this approach requires no external libraries or tools, minimal code modification and provides derivatives accurate to machine precision. The remaining artificial dissipation terms are trivial to differentiate by hand where the sensor coefficients are held constant. The hybrid matrix-based methodology is validated and compared with the 'traditional' matrix-free approach using reverse-mode automatic differentiation. The adjoint equations using both approaches are solved using the same fixed-point Runge-Kutta iteration accelerated by agglomeration multigrid. No loss in accuracy is seen between the matrix-based and the matrix-free methods when validated with the complex step tangent model. The hybrid matrix-based approach demonstrates a notable runtime performance advantage over the traditional matrix-free approach due to the prior calculation of Jacobian terms. Moreover, the convective Jacobian calculation takes less than 5% of primal runtime due to the compact stencil used. A critical analysis of the results and methodology is consequently presented, focussing on the general applicability of the hybrid approach to more complex problems.
机译:详细介绍了数值导数的实现,重点是离散的伴随方程。考虑了两种方法:基于混合矩阵的方案,其中显式构造了对流雅可比行列式;以及使用反向模式自动微分的无矩阵方法。基于混合矩阵的方案利用图着色着色紧凑的对流模具,以评估O(10)残差评估中的对流Jacobian项。使用复杂的步切线模型评估按颜色分组的雅可比项。这种方法不需要外部库或工具,只需最少的代码修改,并提供精确到机器精度的派生工具。其余的人工耗散项很容易通过手工区分,其中传感器系数保持恒定。验证了基于混合矩阵的方法,并与使用反向模式自动微分的“传统”无矩阵方法进行了比较。使用相同的定点Runge-Kutta迭代(通过聚结多重网格加速)来求解使用这两种方法的伴随方程。当使用复杂的阶跃切线模型进行验证时,在基于矩阵的方法和无矩阵的方法之间没有发现准确性上的损失。基于混合矩阵的方法由于预先计算了Jacobian项,因此与传统的无矩阵方法相比,显示出显着的运行时性能优势。此外,由于使用了紧凑的模板,对流雅可比计算的时间不到原始运行时间的5%。因此,对结果和方法进行了批判性分析,重点是混合方法对更复杂问题的一般适用性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号