Crank-Nicolson Finite Difference Scheme for the 3D Allen-Cahn Equation with PINN Comparison
- 1 Shanghai University of International Business and Economics, Shanghai, China
- 2 Shanghai University of International Business and Economics, Shanghai, China
Abstract
In this paper, we derive a second-order Crank-Nicolson finite-difference scheme for the three-dimensional Allen-Cahn equation and present an estimate of the scheme’s truncation error. We prove the existence of the numerical solution and establish stepwise uniqueness, from which the global uniqueness follows given the initial value <i>u</i> <sub>0</sub>. We also establish conditional convergence in the <i>L</i><sub>∞</sub> -norm, and demonstrate a discrete maximum principle for the scheme. Numerical Examples 1 and 2 validate the discrete maximum principle, while Numerical Example 3 employs a physics-informed neural network (PINN), using the Crank-Nicolson solution as the reference, to compute the errors between the two approaches in the <i>L</i><sub>2</sub> and <i>L</i><sub>∞</sub> norms. Owing to the high dimensionality of the problem, visualization is performed via isosurface plots on identical time slices; these plots show strong agreement between the Crank-Nicolson and PINN solutions. The numerical results collectively confirm the accuracy and effectiveness of the proposed scheme.
- Allen, S.M. and Cahn, J.W. (1979) A Microscopic Theory for Antiphase Boundary Motion and Its Application to Antiphase Domain Coarsening. Acta Metallurgica, 27, 1085-1095. https://doi.org/10.1016/0001-6160(79)90196-2
- Ham, S., Kang, S., Hwang, Y., Lee, G., Kwak, S., Jyoti, et al. (2025) A Fourth-Order Finite Difference Method for the Allen-Cahn Equation. Journal of Computational and Applied Mathematics, 453, Article ID: 116159. https://doi.org/10.1016/j.cam.2024.116159
- Xu, C., Cao, Y. and Hou, T. (2025) Numerical Analysis of a Second-Order Finite Difference Scheme for Riesz Space-Fractional Allen-Cahn Equations. Advances in Continuous and Discrete Models, 2025, Article No. 2. https://doi.org/10.1186/s13662-024-03857-w
- Hou, T., Tang, T. and Yang, J. (2017) Numerical Analysis of Fully Discretized Crank-Nicolson Scheme for Fractional-In-Space Allen-Cahn Equations. Journal of Scientific Computing, 72, 1214-1231. https://doi.org/10.1007/s10915-017-0396-9
- Choi, J., Ham, S., Kwak, S., Hwang, Y. and Kim, J. (2024) Stability Analysis of an Explicit Numerical Scheme for the Allen-Cahn Equation with High-Order Polynomial Potentials. AIMS Mathematics, 9, 19332-19344. https://doi.org/10.3934/math.2024941
- Alqanawi, B. and Aigo, M.A. (2023) Semi-Implicit Scheme to Solve Allen-Cahn Equation with Different Boundary Conditions. American Journal of Computational Mathematics, 13, 122-135. https://doi.org/10.4236/ajcm.2023.131005
- Evans, L.C., Soner, H.M. and Souganidis, P.E. (1992) Phase Transitions and Generalized Motion by Mean Curvature. Communications on Pure and Applied Mathematics, 45, 1097-1123. https://doi.org/10.1002/cpa.3160450903
- Tang, T. and Yang, J. (2016) Implicit-Explicit Scheme for the Allen-Cahn Equation Preserves the Maximum Principle. Journal of Computational Mathematics, 34, 451-461. https://doi.org/10.4208/jcm.1603-m2014-0017
- Li, M., Li, W., Du, Z. and Hou, T. (2025) A Maximum Bound Principle Preserving CN/AB Finite Difference Scheme for Riesz Space-Fractional Allen-Cahn Equations with Logarithmic Free Energy. Advances in Continuous and Discrete Models, 2025, Article No. 69. https://doi.org/10.1186/s13662-025-03929-5
- Chu, Q., Jin, G., Shen, J. and Jin, Y. (2021) Numerical Analysis of Crank-Nicolson Scheme for the Allen-Cahn Equation. Journal of Computational Mathematics, 39, 655-665. https://doi.org/10.4208/jcm.2002-m2019-0213
- Raissi, M., Perdikaris, P. and Karniadakis, G.E. (2019) Physics-informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. Journal of Computational Physics, 378, 686-707. https://doi.org/10.1016/j.jcp.2018.10.045