Debian Codegraph @

attic/scripts/apt.pod

raw
1 =head1 NAME
2
3 APT - The ATOMS Periodic Table
4
5 =head1 SYNOPSIS
6
7 Simple graphical interface to the Xray::Absorption package
8
9 apt [-v] [-h]
10
11 =head1 DESCRIPTION
12
13 This is a simple graphical interface to the x-ray absorption data for
14 the elements contained in the Xray::Absorption package. When run, a
15 window appears displaying a colorful periodic table of the elements.
16 Clicking on an element causes data about that element to be displayed
17 in the bottom half of the window.
18
19 All energies in this program are in eV. All wavelengths are in
20 Angstroms. All distances are in microns or centimeters as described
21 above. The buttons labeled C<Clear>, C<Help>, and C<Exit> do exactly
22 what their labels suggest, although the C<Clear> button only clears
23 the currently displayed notecard. These have keyboard shortcuts of
24 C<control-c>, C<control-h>, and C<control-q> respectively.
25 C<Control-t> is the keyboard shortcut for toggling between energy and
26 wavelength units.
27
28 If this program is invoked with a C<-v> switch, version information is
29 displayed to standard output and the program quits. If C<-h> is
30 given, this help document is displayed to standard output and the
31 program quits.
32
33 =head1 THE ENERGIES AND ABSORPTION LENGTHS PROGRAM
34
35 This notecard is used to display edge and line energies of the
36 elements and to make simple calculations of absorption legth and
37 attenuation. When you click on an element in the periodic table,
38 these data about that element are displayed in the notecard.
39
40 If an energy in eV is specified, then the absorption length of the
41 selected element at the specified energy will also be displayed. If
42 the selected element is a gas, the absorption length is given in
43 centimeters, otherwise it is given in microns.
44
45 If a length is also specified in the box marks "thickness", then an
46 attenuation factor will be given for a pure sample of that length and
47 at the specified energy. For example, if you enter 8000 eV as the
48 energy, and "10" as the thickness then select nickel, the attenuation
49 will be 0.64. This means that a 10 micron nickel foil absorbs 36% of
50 the incident beam. Again, centimeters are assumed for gases. With
51 the thickness set to 10, selecting nitrogen gives an attenuation of
52 0.91 at that energy. This means that a 10 centimeter ionization
53 chamber filled with nitrogen will absorb about 9% of the beam.
54
55 Not all of the data is available for all the elements. When data is
56 missing, the corresponding space will be left blank. For transuranic
57 elements, only the name and atomic number are displayed.
58
59 All data used in this program comes from the Elam data resource (see
60 L<Xray::Absorption> and L<Xray::Absorption::Elam>). Of all the
61 available xray absorption data resources, the Elam resource has by far
62 the most complete collection of edge and line energies. The edge and
63 line energies are organized into notecards. Click on the tabs of the
64 notecards to see the different pages. The Siegbahn and IUPAC symbols
65 for the fluorescence lines are displayed, along with the line energy
66 and the relative intensity of the line. The relative intensity is
67 normlized such that the sum of intensities from lines originating in
68 the same core state sum to 1.
69
70 The weight displayed is the isotope-averaged atomic weight. The
71 density is for the most common pure from of the element. The density
72 displayed for carbon is the density of graphite. (Diamond has a
73 specific gravity of about 3.1.) The densities of fluorine, and
74 bromine are their liquid phase densities.
75
76 The third button from the left at the bottom of the screen is used to
77 change the units displayed in the program between eV for energy and
78 Ansgtroms for wavelength. Clicking this button will toggle all parts
79 of the program between these two units. Please note that the entry
80 box labeled C<Energy> (or C<Wavelength>) also toggles between the two
81 units. When you have the program set to use wavelength, you must
82 enter wavelength values in that box. If you enter a value that seems
83 too small for energy units or too large for wavelength units, the
84 program will pop open a confirmation dialog.
85
86 =head1 THE ANOMALOUS SCATTERING PROGRAM
87
88 This notecard contains a simple interface to tables of anomalous
89 scattering factors. Simply fill in an energy range and a value for
90 the energy step and click on an element, and the f prime and double
91 prime functions will be displayed in the canvas on the right.
92 Alternatively, you can select an absorption edge and click on an
93 element, and the anomalous scattering factors will be display 100
94 volts above and below that edge. You can even simply click on an
95 element. If the element is lighter than cerium, the scattering
96 factors around the K edge will be shown, other wise the scattering
97 factors around the L3 edge are shown.
98
99 Below the widgets allowing you to specify the energy grid and the edge
100 are two buttons. The one labeled C<Save data> allows you to save the
101 most recent calculation to a file. By default the filename is
102 C<fpfpp_XX.dat>, where XX is the symbol of the element for which the
103 anomalous scattering was calculated. You can change the name of the
104 output file in the file dialog.
105
106 The C<Clear range> button is a bit more complicated. Because it is
107 often useful to calculate the anomalous scattering factors of one
108 element near the absorption edge of another element, the energy range
109 is not cleared when you press on a new element button. Instead, the
110 energy range used for the prior calculation is used for the new
111 calculation. If, for example, you want the calculation made around an
112 edge of the new element, you should hit the C<Clear range> button or
113 the C<Clear> button at the bottom of the page.
114
115 The button which converts between wavelengths and energies currently
116 does nothing when the anomalous scattering notecard is displayed.
117
118 While you certainly may specify very broad energy ranges, for example
119 to see K and L edges for an element, do remember that perl is an
120 interpreted language and that such a request will be rather time
121 consuming even on a speedy computer.
122
123 =head1 TO DO
124
125 =over 4
126
127 =item *
128
129 More kinds of useful data about the elements
130
131 =back
132
133 =head1 ACKNOWLEDGMENTS
134
135 Thanks to Stephane Grenier and Matt Newville for their helpful
136 sugestions and beta testing.
137
138 =head1 AUTHOR
139
140 Bruce Ravel, [email protected]
141 http://feff.phys.washington.edu/~ravel
142 copyright (c) 1999 Bruce Ravel
143
144 =cut