Skip to content

Commit 9318f85

Browse files
authored
Merge pull request #43 from Wermeille/patch-1
Update examples.rst
2 parents f4d7fd1 + 6bd3d6a commit 9318f85

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

doc/examples.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Calculations of X-ray properties of materials
1414

1515
This section presents several detailed examples of using
1616
`xraydb.sqlite` to calculate X-ray properties of materials. All of
17-
the examples here us the functions in the python `xraydb` module,
17+
the examples here use the functions in the python `xraydb` module,
1818
which is describe in more detail in the next chapter,
1919
:ref:`python_api`. The examples will explore some aspects of X-ray
2020
physics, but will not give a complete tutorial on the concepts here.
@@ -34,7 +34,7 @@ photo-electric effect is the main process that causes X-ray attenuation.
3434
When the photo-electric process is dominant, the values for
3535
:math:`\mu/\rho` depends strongly on *Z* of the atom and on X-ray energy
3636
*E*. In addition to these strong dependencies, sharp increases --
37-
so-called absorption edges -- with be see at energies of bound core
37+
so-called absorption edges -- with be seen at energies of bound core
3838
electron levels of atoms. To illustrate these characteristics, the
3939
following script will plot :math:`\mu/\rho` for selected elements:
4040

@@ -55,7 +55,7 @@ depends strongly with *Z*, though the sharp absorption edges make this more
5555
complicated.
5656

5757
You can also observe that at relatively high energies for relatively low-Z
58-
elements (such as C above about 20 keV) that the attenuation levels off.
58+
elements (such as C above about 20 keV) the attenuation levels off.
5959
This is because the coherent (Rayleigh) and incoherent (Compton) scattering
6060
processes dominate, so that the photo-electric absorption is no longer the
6161
dominant X-ray scattering process. This can be illustrated by plotting the
@@ -106,8 +106,8 @@ energy value and density (which are known for several common materials).
106106
This gives the length for which X-ray intensity is reduced by a factor of
107107
*e*, and so can be used to calculate the fraction of the X-rays transmitted
108108
through a material of known thickness, as :math:`\exp(-t\mu)` for a
109-
material of thickness *t*. As a first example, we calculate the the
110-
fraction of X-ray transmitted through 1 mm of the water as a function of
109+
material of thickness *t*. As a first example, we calculate the
110+
fraction of X-ray transmitted through 1 mm of water as a function of
111111
X-ray energy:
112112

113113
.. literalinclude:: ../python/examples/mu_water.py
@@ -142,7 +142,7 @@ would generate the following plot
142142
Fraction of X-rays absorbed and transmitted by calcite
143143

144144

145-
For many X-ray experiments, selecting the size of a material size so that
145+
For many X-ray experiments, selecting the size of a material so that
146146
its thickness is approximately 1 to 2 absorption length is convenient so
147147
that X-ray scattering and emission can be observed strongly, with neither
148148
all primary and scattered X-rays being absorbed by the material itself, but
@@ -230,13 +230,13 @@ Ionization Potentials <xray_ionpot_table>`.
230230

231231
From this table, we can see that the absorption (by photo-electric effect) of 1
232232
X-ray with energy 10 keV will generate about 300 electron-ion pairs. That is
233-
not much current, but if :math:`10^8 \,\rm Hz` X-rays are absorbed per second,
233+
not much current, but if :math:`10^8 \,\rm Hz` X-rays are absorbed (per second),
234234
then the current generated will be around 5 nA. Of course, the length of the
235235
gas or more precisely the length of gas under ionizing potential will have an
236236
impact on how much current is generated. The photo-current generated can be
237237
amplified and converted to a voltage using a current amplifier, and that
238238
voltage will then recorded by a number of possible mean: a voltage-to-frequency
239-
generator and a digital counter is a common method for integrated current for a
239+
generator together with a digital counter is a common method for integrated current for a
240240
specific amount of time, but other sampling methods can also be used.
241241

242242
An ion chamber can be linear over many orders of magnitude of X-ray flux,
@@ -291,7 +291,7 @@ degrees will be
291291
292292
(recall that :math:`1 - 1/(1+x) = 1 / (1+1/x)`). For X-rays of 10 keV,
293293
:math:`E_{\rm median}` is about 192 eV. For 20 keV X-rays, it will be 750 eV,
294-
and for 50 keV X-rays, it will be 4.5 keV. Because of the angular distribution
294+
and for 50 keV X-rays, it will be 4.5 keV. Because the angular distribution
295295
of Compton scattering is not uniform, these median values over-estimate the
296296
amount of energy transferred to the scattered electron by a small amount that
297297
increases with energy. The mean energy of the Compton-scattered electron can
@@ -440,7 +440,7 @@ X-ray energy and the incoherent cross-section with the ***mean***
440440
Compton-scattering energy, using the calculated and tabulated mean energies of
441441
the Compton-scattered electrons are used to estimate the incident flux from
442442
the photo-current. The total attenuation cross-section, including the coherent
443-
cross-sections, is used to calculate the transmitted flu from the incident
443+
cross-sections, is used to calculate the transmitted flux from the incident
444444
flux.
445445

446446
As an example calculation of ion chamber currents::
@@ -511,8 +511,8 @@ takes a list of materials from top to bottom, a matching list of
511511
thicknesses of each layer, substrate material, incident angle, energy,
512512
and the number of periods.
513513

514-
An example usage, calculating the reflectivity at 1000 eV vs. grazing
515-
angle for a 40*[Si, W] layered mirror on SiO2 substrate is given as
514+
An example usage, calculating the reflectivity at a grazing angle of 10 mrad
515+
vs. energy for a 40*[Si, W] layered mirror on SiO2 substrate is given as
516516

517517
.. literalinclude:: ../python/examples/mirror_multilayer.py
518518

0 commit comments

Comments
 (0)