5.0

5.0 | 3 ratings Rate this file 23 Downloads (last 30 days) File Size: 4.58 KB File ID: #14775
image thumbnail

Tutorial - 1D finite square well

by Narupon Chattrapiban

 

25 Apr 2007 (Updated 25 Apr 2007)

This m-script demonstrates a split-operator method by calculating wave functions and an energy spect

| Watch this File

File Information
Description

Simulate a time dependent solution of Schrodinger's equation and calculate energy spectrum of a 1D finite square well using split-operator method.

Reference: M. D. Feit, J. A. Fleck, Jr., and A. Steiger, "Solution of the Schrodinger Equation by a Spectral Method", Journal of Computational Physics 47, 412-433 (1982).

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Eigen Energy Solver for Schroedinger Equation

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
28 Apr 2007 quang khai le

??? Error: File: D:\Programming\TimeDependentSchrodinger.m Line: 136 Column: 18
"identifier" expected, "(" found.

29 Apr 2007 Narupon Chattrapiban

I've run the file again on my computer and it's still OK. I'm not sure if it's because of the version of Matlab you used.

17 May 2007 Narupon Chattrapiban

I had a chance to use this script in matlab6.5 and I can see the problem now.

The function fzero in matlab6.5 and matlab7 are not the same.

For matlab6.5
You can change the script on ~ line 134
from

g = inline('tan(z) - sqrt((z0/z).^2 - 1)','z','z0');

to

g = inline('tan(x) - sqrt((P1/x).^2 - 1)',1);

and change

zn(nrn) = fzero(@(z) g(z,z0),crss_n(nrn));

to

zn(nrn) = fzero(g,crss_n(nrn),[],z0);

12 Apr 2008 Hyn Ahn

interesting code!!

31 Oct 2009 Shams

Useful ! Thanks for sharing ! Cheers & Good Luck

24 May 2010 William  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
chemistry Narupon Chattrapiban 22 Oct 2008 09:10:33
physics Narupon Chattrapiban 22 Oct 2008 09:10:33
square well Narupon Chattrapiban 22 Oct 2008 09:10:33
schrodinger Narupon Chattrapiban 22 Oct 2008 09:10:33
time dependent Narupon Chattrapiban 22 Oct 2008 09:10:33
splitoperator Narupon Chattrapiban 22 Oct 2008 09:10:33
time dependent Francesco Grubas 05 Mar 2009 12:48:24
physics Francesco Grubas 05 Mar 2009 12:48:24
schrodinger Francesco Grubas 05 Mar 2009 12:48:24
splitoperator Francesco Grubas 05 Mar 2009 12:48:24
square well Francesco Grubas 05 Mar 2009 12:48:24
chemistry Francesco Grubas 05 Mar 2009 12:48:24
schrodinger Phillip 21 Jan 2010 11:49:07

Contact us at files@mathworks.com