Computing Derivatives for PETSc Adjoint Solvers using Algorithmic Differentiation

09/06/2019
by   J. G. Wallwork, et al.
0

Most nonlinear partial differential equation (PDE) solvers require the Jacobian matrix associated to the differential operator. In PETSc, this is typically achieved by either an analytic derivation or numerical approximation method such as finite differences. For complex applications, hand-coding the Jacobian can be time-consuming and error-prone, yet computationally efficient. Whilst finite difference approximations are straight-forward to implement, they have high arithmetic complexity and low accuracy. Alternatively, one may compute Jacobians using algorithmic differentiation (AD), yielding the same derivatives as an analytic derivation, with the added benefit that the implementation is problem independent. In this work, the operator overloading AD tool ADOL-C is applied to generate Jacobians for time-dependent, nonlinear PDEs and their adjoints. Various strategies are considered, including compressed and matrix-free approaches. In numerical experiments with a 2D diffusion-reaction model, the performance of these strategies has been studied and compared to the hand-derived version.

READ FULL TEXT

page 10

page 11

research
10/22/2021

Probabilistic Numerical Method of Lines for Time-Dependent Partial Differential Equations

This work develops a class of probabilistic algorithms for the numerical...
research
12/05/2018

A Comparison of Automatic Differentiation and Continuous Sensitivity Analysis for Derivatives of Differential Equation Solutions

The derivatives of differential equation solutions are commonly used as ...
research
05/15/2023

Finite Expression Methods for Discovering Physical Laws from Data

Nonlinear dynamics is a pervasive phenomenon observed in various scienti...
research
06/11/2020

Robust PDE Identification from Noisy Data

We propose robust methods to identify underlying Partial Differential Eq...
research
10/07/2020

Calibration of Elastoplastic Constitutive Model Parameters from Full-field Data with Automatic Differentiation-based Sensitivities

We present a framework for calibration of parameters in elastoplastic co...
research
03/12/2018

Algorithmic Differentiation for Domain Specific Languages

Algorithmic Differentiation (AD) can be used to automate the generation ...
research
12/08/2019

Neural Networks with Cheap Differential Operators

Gradients of neural networks can be computed efficiently for any archite...

Please sign up or login with your details

Forgot password? Click here to reset