P317 computer lab
There will be one computer lab project. For this,
please contact Prof. Brouwer to arrange an account on the Cornell University
Physics Educational Computing Facility, if you do not already have
one.
You may team up
into pairs to collaborate on the computer lab projects. In that case,
each pair needs to hand in only one completed program.
You may use any computer language you wish, provided the code can be
demonstrated in the Rockefeller Hall computer labs. At the Cornell University Physics Educational Computing Facility,
compilers are available for the following languages:
Computer
Language
|
compiler
|
C
|
gcc
|
C++
|
g++
|
fortran
|
g77
|
pascal
|
gpc
|
python
|
python
|
maxima
|
xmaxima
|
octave
|
octave
|
java
|
jikes
|
You are asked to provide three versions of the computer program:
Version 1, in which you manually find energy eigenvalues for the
hydrogen atom (due September 16th),
Version 2, in which you automate the search for energy eigenvalues (due
September 30th),
Version 3, in which you find energy eigenvalues for multi-electron
atoms (due October 14th).
The exercises from the
assignment should be handed in
on paper, like a homework assignment. The computer code can be emailed to Prof. Brouwer and/or to
Chris Mayes. Please list who are the people in your group! An
executable file, as an attachment to the email, is preferred. If that
is not possible (e.g., if you use octave), please include a detailed
description of what commands need to be invoked to make the program run
in the Rockefeller computer labs.
The computer lab assignment
has been handed out in class.
Note: in order to avoid a warning
message when compling your programs, you should replace the statement
"#include <iostream.h>" by "#include <iostream>", and add
the line "using namespace std;" after the last "include" statement. See
the assignment on this website for details.
If you decide to program in c++, you may find it useful to use the
plotting routines routines GPlot.h.
You can find more information about these routines in GPlot.c,
documentation GPlot.txt,
and the example GPlotexample.c.
For the third version of the
computer lab, you need a reference to ionization energies. You can find
one at the NIST
website. You also need a reference for X-ray edge energies. These
can also be found at the NIST
website. (Use the search engine and look for K edge, L1 edge, and
L2 edge.) Exercise 9 (the extra credit exercise) refers to Table
10.1of the text. This table is in last year's textbook, not in this
year's textbook. You can find the table reproduced below.
Element
|
3Li
|
11Na
|
19K
|
37Rb
|
55Cs
|
Subshell
|
2p
|
3p
|
4p
|
5p
|
6p
|
Spin-orbit splitting
|
0.42 x 10-4
eV
|
21 x 10-4
eV
|
72 x 10-4
eV
|
295 x 10-4
eV
|
687 x 10-4
eV
|