File Exchange

image thumbnail

Numerical Solution of 1D Time Independent Schrodinger Equation using Finite Difference Method.

version 1.0.0.0 (2.11 KB) by Sathyanarayan Rao
Finite Difference scheme is applied to Time Independent Schrodinger Equation.

36 Downloads

Updated 26 Jan 2015

View License

In this code, a potential well is taken (particle in a box) and the wave-function of the particle is calculated by solving Schrodinger equation. Finite difference method is used. Energy must be prescribed before calculating wave-function. Also constants like mass, Planck's constant and length of potential well are all normalized to unity for simplicity. At the end, wave-function is normalized to get probability density function using MATLAB inbuilt trapz command (trapezoidal rule) for numerical integration. Finally for visualizing, some array manipulation is done. For four different energy level, wave-function (or the probability density function) is plotted at the end.

Cite As

Sathyanarayan Rao (2021). Numerical Solution of 1D Time Independent Schrodinger Equation using Finite Difference Method. (https://www.mathworks.com/matlabcentral/fileexchange/49163-numerical-solution-of-1d-time-independent-schrodinger-equation-using-finite-difference-method), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

Manoj K J

Good documentation.

MU Wei

Very Good, and useful.
Code is very clear and easy to understand and modifie
Thanks to the author who really saved my life for the project!

Alexander Voronin

ok

k vahdani

extra book

no comments

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!