The finite-difference approach was used to
discretize the derivative in partial differential equations into
a system of algebraic equations, the well-known Crank–
Nicholson implicit method was chosen to solve spherical
coordinate problems and an explicit method for cylindrical
coordinate problems