...
首页> 外文期刊>International journal of numerical methods for heat & fluid flow >Convergence and error analysis of an automatically differentiated finite volume based heat conduction code
【24h】

Convergence and error analysis of an automatically differentiated finite volume based heat conduction code

机译:自动微分有限体积热传导码的收敛性和误差分析

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Purpose This paper aims to investigate the convergence and error properties of a finite volume-based heat conduction code that uses automatic differentiation to evaluate derivatives of solutions outputs with respect to arbitrary solution input(s). A problem involving conduction in a plane wall with convection at its surfaces is used as a test problem, as it has an analytical solution, and the error can be evaluated directly. Design/methodology/approach The finite volume method is used to discretize the transient heat diffusion equation with constant thermophysical properties. The discretized problem is then linearized, which results in two linear systems; one for the primary solution field and one for the secondary field, representing the derivative of the primary field with respect to the selected input(s). Derivatives required in the formation of the secondary linear system are obtained by automatic differentiation using an operator overloading and templating approach in C++. Findings The temporal and spatial discretization error for the derivative solution follows the same order of accuracy as the primary solution. Second-order accuracy of the spatial and temporal discretization schemes is confirmed for both primary and secondary problems using both orthogonal and non-orthogonal grids. However, it has been found that for non-orthogonal cases, there is a limit to the error reduction, which is concluded to be a result of errors in the Gauss-based gradient reconstruction method. Originality/value The convergence and error properties of derivative solutions obtained by forward mode automatic differentiation of finite volume-based codes have not been previously investigated.
机译:目的本文旨在研究基于有限体积的热传导代码的收敛性和误差性质,该代码使用自动微分来评估相对于任意溶液输入的溶液输出的导数。涉及平面壁上具有对流的平面壁中的传导问题,因为它具有解析解,所以可以作为测试问题,并且可以直接评估误差。设计/方法/方法有限体积法用于离散具有恒定热物理性质的瞬态热扩散方程。然后将离散化的问题线性化,从而得到两个线性系统。一个代表主要解决方案字段,另一个代表次要字段,代表主要字段相对于所选输入的导数。通过使用C ++中的运算符重载和模板化方法进行自动微分,可以生成次级线性系统所需的导数。结果导数解的时间和空间离散误差遵循的精度与主要解的次序相同。使用正交和非正交网格对主要问题和次要问题都确定了空间和时间离散方案的二阶精度。然而,已经发现,对于非正交的情况,误差减小是有限的,这被认为是基于高斯的梯度重构方法中误差的结果。独创性/值以前没有研究过通过基于有限体积的代码的前向模式自动微分获得的导数解的收敛性和错误性质。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号