Numerical Methods in Quantum Mechanics - Dipartimento di Fisica
Numerical Methods in Quantum Mechanics - Dipartimento di Fisica
Numerical Methods in Quantum Mechanics - Dipartimento di Fisica
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1.3.3 Laboratory<br />
Here are a few h<strong>in</strong>ts for “numerical experiments” to be performed <strong>in</strong> the computer<br />
lab (or afterward), us<strong>in</strong>g both codes:<br />
• Calculate and plot eigenfunctions for various values of n. It may be<br />
useful to plot, together with eigenfunctions or eigenfunctions squared, the<br />
classical probability density, conta<strong>in</strong>ed <strong>in</strong> the fourth column of the output<br />
file. It will clearly show the classical <strong>in</strong>version po<strong>in</strong>ts. With gnuplot, e.g.:<br />
plot "filename" u 1:3 w l, "filename" u 1:4 w l<br />
(u = us<strong>in</strong>g, 1:3 = plot column3 vs column 1, w l = with l<strong>in</strong>es; the second<br />
”filename” can be replaced by ””).<br />
• Look at the wave functions obta<strong>in</strong>ed by specify<strong>in</strong>g an energy value not<br />
correspond<strong>in</strong>g to an eigenvalue. Notice the <strong>di</strong>fference between the results<br />
of harmonic0 and harmonic1 <strong>in</strong> this case.<br />
• Look at what happens when the energy is close to but not exactly an<br />
eigenvalue. Aga<strong>in</strong>, compare the behavior of the two codes.<br />
• Exam<strong>in</strong>e the effects of the parameters xmax, mesh. For a given ∆x, how<br />
large can be the number of nodes?<br />
• Verify how close you go to the exact results (notice that there is a convergence<br />
threshold on the energy <strong>in</strong> the code). What are the factors that<br />
affect the accuracy of the results?<br />
Possible code mo<strong>di</strong>fications and extensions:<br />
• Mo<strong>di</strong>fy the potential, keep<strong>in</strong>g <strong>in</strong>version symmetry. This will require very<br />
little changes to be done. You might for <strong>in</strong>stance consider a “double-well”<br />
potential described by the form:<br />
[ (x ) 4 ( ) x 2<br />
V (x) = ɛ − 2 + 1]<br />
, ɛ, δ > 0. (1.38)<br />
δ δ<br />
• Mo<strong>di</strong>fy the potential, break<strong>in</strong>g <strong>in</strong>version symmetry. You might consider<br />
for <strong>in</strong>stance the Morse potential:<br />
[<br />
]<br />
V (x) = D e −2ax − 2e −ax + 1 , (1.39)<br />
widely used to model the potential energy of a <strong>di</strong>atomic molecule. Which<br />
changes are needed <strong>in</strong> order to adapt the algorithm to cover this case?<br />
15