Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

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

Convergence and error analysis of an automatically differentiated finite volume based heat... 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/approachThe 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++.FindingsThe 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/valueThe convergence and error properties of derivative solutions obtained by forward mode automatic differentiation of finite volume-based codes have not been previously investigated. http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png International Journal of Numerical Methods for Heat & Fluid Flow Emerald Publishing

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

Loading next page...
 
/lp/emerald-publishing/convergence-and-error-analysis-of-an-automatically-differentiated-boeZJOuTX6
Publisher
Emerald Publishing
Copyright
© Emerald Publishing Limited
ISSN
0961-5539
DOI
10.1108/hff-09-2018-0489
Publisher site
See Article on Publisher Site

Abstract

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/approachThe 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++.FindingsThe 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/valueThe convergence and error properties of derivative solutions obtained by forward mode automatic differentiation of finite volume-based codes have not been previously investigated.

Journal

International Journal of Numerical Methods for Heat & Fluid FlowEmerald Publishing

Published: Aug 30, 2019

Keywords: Convergence; Finite volume method; Automatic differentiation; Conduction; Error

References