I am trying to solve a time-dependent diffusion equation with finite-difference discretizations using the Newton–Raphson method. However, I encountered some problems in convergence--the solution result changes when changing time step size. Here I want to find some coding examples to refer to. Thank you.