Automatic discrete differentiation and its applications

05/21/2019
by   Ai Ishikawa, et al.
0

In this paper, a method for automatically deriving energy-preserving numerical methods for the Euler-Lagrange equation and the Hamilton equation is proposed. The derived energy-preserving scheme is based on the discrete gradient method. In the proposed approach, the discrete gradient, which is a key tool for designing the scheme, is automatically computed by a similar algorithm to the automatic differentiation. Besides, the discrete gradient coincides with the usual gradient if the two arguments required to define the discrete gradient are the same. Hence the proposed method is an extension of the automatic differentiation in the sense that the proposed method derives not only the discrete gradient but also the usual gradient. Due to this feature, both energy-preserving integrators and variational (and hence symplectic) integrators can be implemented in the same programming code simultaneously. This allows users to freely switch between the energy-preserving numerical method and the symplectic numerical method in accordance with the problem-setting and other requirements. As applications, an energy-preserving numerical scheme for a nonlinear wave equation and a training algorithm of artificial neural networks derived from an energy-dissipative numerical scheme are shown.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/24/2023

A second-order length-preserving and unconditionally energy stable rotational discrete gradient method for Oseen-Frank gradient flows

We present a second-order strictly length-preserving and unconditionally...
research
08/04/2023

Higher order discrete gradient method by the discontinuous Galerkin time-stepping method

Many differential equations with physical backgrounds are described as g...
research
10/28/2022

Upwind-SAV approach for constructing bound-preserving and energy-stable schemes of the Cahn-Hilliard equation with degenerate mobility

This paper establishes an unconditionally bound-preserving and energy-st...
research
04/03/2020

A positivity-preserving second-order BDF scheme for the Cahn-Hilliard equation with variable interfacial parameters

We present and analyze a new second-order finite difference scheme for t...
research
05/09/2021

Arbitrary high-order linear structure-preserving schemes for the regularized long-wave equation

In this paper, a class of arbitrarily high-order linear momentum-preserv...
research
07/15/2019

Gradient Flow Based Discretized Kohn-Sham Density Functional Theory

In this paper, we propose and analyze a gradient flow based Kohn-Sham de...
research
07/10/2020

Algorithmic differentiation of hyperbolic flow problems

We are interested in the development of an algorithmic differentiation f...

Please sign up or login with your details

Forgot password? Click here to reset