Journal of Physics: Conference Series

A high-accuracy Crank-Nicolson compact difference method for the one-dimensional heat equation

Jiayi Li, Bujie Duo

Key points

From the paper's conclusion
  • The standard and compact schemes are derived for a one-dimensional heat equation subject to homogeneous Dirichlet boundary conditions.

Abstract

The Crank-Nicolson method is a classical implicit finite difference method for parabolic equations. This paper combines Crank-Nicolson time discretization with a fourth-order compact approximation of the second spatial derivative to obtain a method with second-order temporal accuracy and fourth-order spatial accuracy. The standard and compact schemes are derived for a one-dimensional heat equation subject to homogeneous Dirichlet boundary conditions. Consistency, stability, and convergence are examined using truncation-error and modal analyses. A manufactured problem with a known analytical solution is then used to compare the numerical solution, maximum-norm error, discrete L 2 error, convergence order, and computational time. With the coupled refinement rule τ = h 2 , the measured orders approach two for the standard method and four for the compact method. At the error threshold used in the efficiency test, the compact method reaches a smaller error on a substantially coarser grid and in less elapsed time. A supplementary refinement-law check and a brief Richardson-extrapolation comparison further clarify the reported accuracy and efficiency.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers