考虑一维定常对流扩散方程的Dirichlet边值问题,利用Taylor级数构造一个基于非等距网格的有限差分格式,给出了格式的截断误差估计,并分析了其稳定性.采用网格生成函数构造非等距网格,并与一些已有的差分格式对比,数值实验表明该格式可以得到更为精确的数值结果,能很好地模拟边界层效应.
The finite difference scheme for one dimensional steady convection-diffusion equation with Dirichlet boundary value problem on non-equidistant grids is derived by using Taylor series expansion method, the truncation error estimate and stability analysis of the scheme are given. A non-equidistant grid is constructed by using grid generation function. Numerical experiments show that the scheme can obtain more accurate results comparing with some schemes in literature, and the boundary layer effect can be well simulated.