A method for representing periodic functions and enforcing exactly periodic boundary conditions with deep neural networks
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 function...
Gespeichert in:
Veröffentlicht in: | Journal of computational physics 2021-06, Vol.435, p.110242, Article 110242 |
---|---|
Hauptverfasser: | , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | 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.
•Method enforces exactly C∞ and Ck periodic conditions with DNN.•C∞ and Ck periodic layers are defined.•DNNs with a periodic layer as second layer satisfy exactly periodic condition.•Method enforces periodicity to machine accuracy in experiments. |
---|---|
ISSN: | 0021-9991 1090-2716 |
DOI: | 10.1016/j.jcp.2021.110242 |