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 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\geqslant 0$). The former will be referred to as $C^{\infty}$ periodic conditions, and the latter $C^{k}$ periodic conditions. We define operations that constitute a $C^{\infty}$ periodic layer and a $C^k$ periodic layer (for any $k\geqslant 0$). A deep neural network with a $C^{\infty}$ (or $C^k$) periodic layer incorporated as the second layer automatically and exactly satisfies the $C^{\infty}$ (or $C^k$) periodic conditions. We present extensive numerical experiments on ordinary and partial differential equations with $C^{\infty}$ and $C^k$ 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.

[1]  Yang Liu,et al.  Physics informed deep learning for computational elastodynamics without labeled data , 2020, Journal of Engineering Mechanics.

[2]  Neil E. Cotter,et al.  The Stone-Weierstrass theorem and its application to neural networks , 1990, IEEE Trans. Neural Networks.

[3]  G. Karniadakis,et al.  A combined direct numerical simulation–particle image velocimetry study of the turbulent near wake , 2006, Journal of Fluid Mechanics.

[4]  Gang Bao,et al.  Weak Adversarial Networks for High-dimensional Partial Differential Equations , 2019, J. Comput. Phys..

[5]  Marc‐André Keip,et al.  An Artificial Neural Network Based Solution Scheme for Periodic Computational Homogenization of Electrostatic Problems , 2019, Mathematical and Computational Applications.

[6]  Suchuan Dong,et al.  A convective-like energy-stable open boundary condition for simulations of incompressible flows , 2015, J. Comput. Phys..

[7]  Dimitrios I. Fotiadis,et al.  Artificial neural networks for solving ordinary and partial differential equations , 1997, IEEE Trans. Neural Networks.

[8]  Justin A. Sirignano,et al.  DGM: A deep learning algorithm for solving partial differential equations , 2017, J. Comput. Phys..

[9]  Kurt Hornik,et al.  Multilayer feedforward networks are universal approximators , 1989, Neural Networks.

[10]  A. Spitzbart A Generalization of Hermite's Interpolation Formula , 1960 .

[11]  J. Traub On Lagrange-Hermite Interpolation , 1964 .

[12]  Silvia Ferrari,et al.  A constrained integration (CINT) approach to solving partial differential equations using artificial neural networks , 2015, Neurocomputing.

[13]  Keke Wu,et al.  A Comparison Study of Deep Galerkin Method and Deep Ritz Method for Elliptic Problems with Different Boundary Conditions , 2020 .

[14]  Timon Rabczuk,et al.  An Energy Approach to the Solution of Partial Differential Equations in Computational Mechanics via Machine Learning: Concepts, Implementation and Applications , 2019, Computer Methods in Applied Mechanics and Engineering.

[15]  Keke Wu,et al.  A comprehensive study of boundary conditions when solving PDEs by DNNs , 2020, ArXiv.

[16]  H. White,et al.  There exists a neural network that does not make avoidable mistakes , 1988, IEEE 1988 International Conference on Neural Networks.

[17]  Suchuan Dong,et al.  Energy-stable boundary conditions based on a quadratic form: Applications to outflow/open-boundary problems in incompressible flows , 2018, J. Comput. Phys..

[18]  T. A. Zang,et al.  Spectral methods for fluid dynamics , 1987 .

[19]  Dimitris G. Papageorgiou,et al.  Neural-network methods for boundary value problems with irregular boundaries , 2000, IEEE Trans. Neural Networks Learn. Syst..

[20]  Adrian Silvescu,et al.  Fourier neural networks , 1999, IJCNN'99. International Joint Conference on Neural Networks. Proceedings (Cat. No.99CH36339).

[21]  Paris Perdikaris,et al.  Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations , 2019, J. Comput. Phys..

[22]  Zhenisbek Assylbekov,et al.  Fourier Neural Networks: A Comparative Study , 2019, Intell. Data Anal..

[23]  Kaj Nyström,et al.  A unified deep artificial neural network approach to partial differential equations in complex geometries , 2017, Neurocomputing.

[24]  E Weinan,et al.  The Deep Ritz Method: A Deep Learning-Based Numerical Algorithm for Solving Variational Problems , 2017, Communications in Mathematics and Statistics.

[25]  P. Gresho Incompressible Fluid Dynamics: Some Fundamental Formulation Issues , 1991 .

[26]  Marieme Ngom,et al.  Approximating periodic functions and solving differential equations using a novel type of Fourier Neural Networks , 2020, ArXiv.

[27]  Suchuan Dong,et al.  A robust and accurate outflow boundary condition for incompressible flow simulations on severely-truncated unbounded domains , 2014, J. Comput. Phys..

[28]  Shuang Liu,et al.  Fourier Neural Network for machine learning , 2013, 2013 International Conference on Machine Learning and Cybernetics.

[29]  Suchuan Dong,et al.  Turbulent flow between counter-rotating concentric cylinders: a direct numerical simulation study , 2008, Journal of Fluid Mechanics.

[30]  Suchuan Dong,et al.  Direct numerical simulation of spiral turbulence , 2009, Journal of Fluid Mechanics.

[31]  Suchuan Dong,et al.  Direct numerical simulation of turbulent Taylor–Couette flow , 2007, Journal of Fluid Mechanics.

[32]  Kurt Hornik,et al.  Universal approximation of an unknown mapping and its derivatives using multilayer feedforward networks , 1990, Neural Networks.

[33]  Guigang Zhang,et al.  Deep Learning , 2016, Int. J. Semantic Comput..

[34]  Jimmy Ba,et al.  Adam: A Method for Stochastic Optimization , 2014, ICLR.

[35]  R. Sani,et al.  Résumé and remarks on the open boundary condition minisymposium , 1994 .

[36]  Xin Li,et al.  Simultaneous approximations of multivariate functions and their derivatives by neural networks with one hidden layer , 1996, Neurocomputing.