Instructor: Natalie Holzwarth | Phone:758-5510 | Office:300 OPL | e-mail:natalie@wfu.edu |
These lectures and labs present a brief introduction to computational physics using examples from self-consistent field calculations of the electronic energy and density of various atoms throughout the periodic table.
Pick at least one of your favorite atoms from the periodic table and run the computer program graphatom to determine: (Please send email to natalie@wfu.edu if you have any questions.)
In this session, we will focus on running the programs graphatom and frozencore for a few materials and comparing the results with experimental ionization energies or excitation energies.
The program frozencore is designed to study which electrons act as valence electrons. The initial input is very similar to that of graphatom. After the ground state configuration has converged, you will then be asked to identify "core" and "valence" contributions. You can then calculate the energy for the same atom with a new set of valence occupation values (simulating either an excited state or a positive ion), comparing the "frozen core" approximation with a fully converged ("relaxed core") calculation.
mkdir groundstate cd groundstate graphatom (input appropriate data) cd .. mkdir ionizedstate cd ionizedstate graphatom (input appropriate data) cd .. gplot -f ./groundstate/wfn0 1 4 lines -f ./ionizedstate/wfn0 1 4 linesIn this example, the gplot command allows you to plot the s-like wave functions (stored in the files named wfn0). The numbers "1 4" mean that you are plotting the results in column 1 (r-values) versus the results in column 4 (in this case, the 3s radial wave functions).
Note: In order to run these programs, you will need to login to the wfu.edu computer. In order to setup your session, there are a number of preliminary steps that will be helpful. Below are listed two alternative methods:
set path=($PATH . /usr/bin /usr/sbin /bin /usr/local/bin\ /users/faculty/phylib/bin/ ~natalie/www-home/s01phy345/programs/ .) # Set the default X server. if ($?DISPLAY == 0) then if ($?REMOTEHOST) then setenv DISPLAY ${REMOTEHOST}:0 else setenv DISPLAY :0 endif endif # Set X-Window title @ havexwindows=($term == "xterm") if ($havexwindows) then ~/public/bin/set_xterm_title `hostname` endif if ( (! $?ENVONLY) && $?prompt ) then setenv PROMPT "`whoami`@<`hostname|cut -d \. -f 1`>`pwd`:" set prompt="$PROMPT" alias cd 'set old=$cwd;chdir \!*;set prompt="`whoami`@<`hostname|cut -d \. -f 1`>`pwd`:"' endif setenv TERM vt100 set term=vt100
set path=($path /users/faculty/phylib/bin ~natalie/www-home/s01phy345/programs/ . )