A method for representing periodic functions and enforcing exactly periodic boundary conditions with deep neural networks
Abstract
We present a simple and effective method for representing periodic functions and enforcing exactly the periodic boundary conditions for solving differential equations with deep neural networks (DNN). The method stems from some simple properties about function compositions involving periodic functions. It essentially composes a DNN-represented arbitrary function with a set of independent periodic functions with adjustable (training) parameters. We distinguish two types of periodic conditions: those imposing the periodicity requirement on the function and all its derivatives (to infinite order), and those imposing periodicity on the function and its derivatives up to a finite order k (k ⩾ 0). The former will be referred to as C∞ periodic conditions, and the latter Ck periodic conditions. We define operations that constitute a C∞ periodic layer and a Ck periodic layer (for any k ⩾ 0). A deep neural network with a C∞ (or Ck) periodic layer incorporated as the second layer automatically and exactly satisfies the C∞ (or Ck) periodic conditions. We present extensive numerical experiments on ordinary and partial differential equations with C∞ and Ck periodic boundary conditions to verify and demonstrate that the proposed method indeed enforces exactly, to the machine accuracy, the periodicity for the DNN solution and its derivatives.
- Publication:
-
Journal of Computational Physics
- Pub Date:
- June 2021
- DOI:
- 10.1016/j.jcp.2021.110242
- arXiv:
- arXiv:2007.07442
- Bibcode:
- 2021JCoPh.43510242D
- Keywords:
-
- Periodic function;
- Periodic boundary condition;
- Neural network;
- Deep neural network;
- Periodic deep neural network;
- Deep learning;
- Physics - Computational Physics;
- Computer Science - Machine Learning;
- Mathematics - Numerical Analysis;
- Physics - Fluid Dynamics
- E-Print:
- 31 pages, 16 figures, 8 tables