diff --git a/_sources/example.rst.txt b/_sources/example.rst.txt
index a6e02c1..c4dfe43 100644
--- a/_sources/example.rst.txt
+++ b/_sources/example.rst.txt
@@ -53,7 +53,7 @@ This adds three more lines:
:literal:`nuclear_model: FERMI2`: This sets the nucleus to be modelled not as a point charge, but as a Fermi 2-term charge distribution, which is far more accurate to reality. The program contains parameters for this distribution for all isotopes of interest in the periodic table. This will account for the finite size of the nucleus, and the overlap of the muon orbitals with it.
-:literal:`uehling_correction: T`: This accounts for the Uehling correction, a quantum field effect relevant to electrostatics at these high energies. It can be undestood as accounting for the vacuum itself acting as a polarizable medium; because virtual electron-positron pairs can be generated in quantum field theory, these partially shield the charges and lower the traditional Coulomb force. This is an important term especially for very massive nuclei like Au or Pb and orbitals close to the nucleus.
+:literal:`uehling_correction: T`: This accounts for the Uehling correction, a quantum field effect relevant to electrostatics at these high energies. It can be understood as accounting for the vacuum itself acting as a polarizable medium; because virtual electron-positron pairs can be generated in quantum field theory, these partially shield the charges and lower the traditional Coulomb force. This is an important term especially for very massive nuclei like Au or Pb and orbitals close to the nucleus.
:literal:`electronic_config: Au`: This term includes approximatively the effect of the other electrons orbiting the nucleus. It does not solve the equations for them, rather it just places them in fixed idealised orbitals and builds a negative charge background from them. The result is an additional correction to the energy, that is however tiny compared to the previous two terms, and often easily ignored.
diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt
index 0b40d93..18c7f6b 100644
--- a/_sources/index.rst.txt
+++ b/_sources/index.rst.txt
@@ -12,14 +12,9 @@ Welcome to MuDirac's documentation
keywords.rst
example.rst
-MuDirac is a simulation software that integrates the Dirac equation for muonic atoms to compute their X-Ray transition energies; it is written in C++ and can be found on `GitHub `_. The use and functioning of MuDirac 1.0 is extensively documented in the paper `S. Sturniolo, A. Hillier, "Mudirac: A Dirac equation solver for elemental analysiswith muonic X-rays", X-Ray Spectrom. 2020;1–17 `_, which should be cited by any work using it. Here we will give a quick tutorial on how to start using it for simple cases.
+MuDirac is a simulation software that integrates the Dirac equation for muonic atoms to compute their X-Ray transition energies; it is written in C++ and can be found on `GitHub `_. The use and functioning of MuDirac 1.0 is extensively documented in the paper `S. Sturniolo, A. Hillier, "Mudirac: A Dirac equation solver for elemental analysis with muonic X-rays", X-Ray Spectrom. 2020;1–17 `_, which should be cited by any work using it. Here we will give a quick tutorial on how to start using it for simple cases.
-Installation
--------------
-Details for how to install and use MuDirac is given :doc:`here `.
-
-
-Citing mudirac
+Citing MuDirac
---------------
For the theoretical background on the software and examples of its applications, see the published paper:
diff --git a/_sources/installation.rst.txt b/_sources/installation.rst.txt
index 5af18a9..28ab417 100644
--- a/_sources/installation.rst.txt
+++ b/_sources/installation.rst.txt
@@ -1,16 +1,17 @@
Installation of MuDirac
========================
-MuDirac used CMake as a build system, and requires a C++ compiler. In order to compile it and prepare it to be executed on a Linux, Unix, or MacOS system with a working C++ compiler installes, follow these steps:
-1. download and unpack (or :literal:`git clone`) the repository on your local system;
-2. within the main folder of the repository (the one containing the :literal:`READ.md` file), create a subfolder called :literal:`build`;
-3. within the :literal:`build` folder, run the following commands:
+MuDirac uses CMake as a build system, and requires a C++ compiler. In order to compile it and prepare it to be executed on a Linux, Unix, or MacOS system with a working C++ compiler installed, follow these steps:
+
+#. Download and unpack (or :literal:`git clone`) the repository on your local system.
+#. Within the main folder of the repository (the one containing the :literal:`READ.md` file), create a subfolder called :literal:`build`.
+#. Within the :literal:`build` folder, run the following commands:
.. code-block:: bash
cmake ..
make mudirac
-In order to run the test suite. within the same directory, run
+In order to run the test suite, within the same directory run:
.. code-block:: bash
diff --git a/_sources/keywords.rst.txt b/_sources/keywords.rst.txt
index a5d152a..6286eef 100644
--- a/_sources/keywords.rst.txt
+++ b/_sources/keywords.rst.txt
@@ -20,20 +20,22 @@ These keywords take a string as value; invalid strings (e.g. a chemical symbol t
* :literal:`ideal_atom_minshell`: for this shell, and all above it, treat the atom as a simple hydrogen-like point charge Dirac atom, using the known analytical solution and discarding all corrections. Mostly useful for debugging, or when very high shell states have difficulty to converge. The shell must use IUPAC notation (:math:`K \Rightarrow n=1`, :math:`L \Rightarrow n=2`, etc.). Default is the empty string (no ideal solutions used).
* :literal:`xr_lines`: the transition or transitions for which energy and rates are desired. Each line must be expressed using the conventional IUPAC notation [Jenkins et al., 1991]. Multiple lines can be separated by commas. For example:
-::
+ ::
xr_lines: K1-L2,K1-L3
-In addition, colons can be used to indicate ranges of lines. The notation :literal:`K1:L3-M1` would compute the lines K1-M1, L1-M1, L2-M1 and L3-M1. Note that if some of these lines are forbidden by selection rules, they will simply be skipped. A double colon, like :literal:`K1:L3-K1:L3` would loop on both sides, and not count all repeated lines.
+ In addition, colons can be used to indicate ranges of lines. The notation :literal:`K1:L3-M1` would compute the lines K1-M1, L1-M1, L2-M1 and L3-M1. Note that if some of these lines are forbidden by selection rules, they will simply be skipped. A double colon, like :literal:`K1:L3-K1:L3` would loop on both sides, and not count all repeated lines.
Boolean keywords
~~~~~~~~~~~~~~~~~
These keywords can only have a value of TRUE or FALSE. In order to set them true, either the word 'TRUE' or the letter 'T' (regardless of case) work.
-* :literal:`uehling_correction`: whether to turn on or not the Uehling correction. Default is FALSE.
-* :literal:`write~_spec`: if true, write a spectrum file using the transition lines found broadened with Gaussian functions. Other parameters can be specified with different keywords. Default is FALSE.
+* :literal:`uehling_correction`: whether to turn on the Uehling correction or not. Default is FALSE.
+* :literal:`write_spec`: if true, write a spectrum file using the transition lines found broadened with Gaussian functions. Other :ref:`floating_point_keywords` starting with :literal:`spec_` can then be specified. Default is FALSE.
* :literal:`sort_byE`: if true, print out the transitions sorted by energy instead than by shell. Default is FALSE.
+.. _floating_point_keywords:
+
Floating point keywords
~~~~~~~~~~~~~~~~~~~~~~~~
These keywords accept a non-integer number. It can be written normally (e.g. 105.3) or in scientific notation (e.g. 1.053E2).
diff --git a/_sources/theory.rst.txt b/_sources/theory.rst.txt
index f351eef..4ecb2b1 100644
--- a/_sources/theory.rst.txt
+++ b/_sources/theory.rst.txt
@@ -6,7 +6,7 @@ X-Ray Spectroscopy with negative muons
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
While positive muons can be used as magnetic probes acting as if they were light protons, negative muons have wholly different uses due to behaving in matter more as if they were heavy electrons. Negative muons possess the same charge and spin as electrons, and so will form bound states with nuclei that are known as muonic atoms. These atoms possess peculiar properties due to the heavier mass of the muon:
-1. the muon orbitals around the nucleus are much smaller and denser than the electronic ones, meaning that the muon tends to be rather insensitive to the presence of electrons - as it is closer to the nucleus than any of them (See figure 1);
+1. the muon orbitals around the nucleus are much smaller and denser than the electronic ones, meaning that the muon tends to be rather insensitive to the presence of electrons - as it is closer to the nucleus than any of them (See Figure 1);
2. for the same reason, the muon orbitals can overlap significantly with the atomic nucleus, and their energy is affected by the shape of its charge distribution;
@@ -16,7 +16,7 @@ While positive muons can be used as magnetic probes acting as if they were light
.. figure:: _static/Figure-MuDirac.jpg
:alt: Schematic drawing of the muon cascade process and the electron configuration evolution in a muonic iron atom within Fe metal.
- Schematic drawing of the muon cascade process and the electron configuration evolution in a muonic iron atom within Fe metal. Side feeding and electron refilling, via radiative decay or electronic Auger decay, fill the electron holes. It is assumed that the number of 4s electrons is a constant during the cascade because of rapid N-shell side feeding. Figure taken from T. Okumura et. al. PHYSICAL REVIEW LETTERS 127, 053001 (2021).
+Figure 1: Schematic drawing of the muon cascade process and the electron configuration evolution in a muonic iron atom within Fe metal. Side feeding and electron refilling, via radiative decay or electronic Auger decay, fill the electron holes. It is assumed that the number of 4s electrons is a constant during the cascade because of rapid N-shell side feeding. Figure taken from T. Okumura et. al. PHYSICAL REVIEW LETTERS 127, 053001 (2021).
The consequence of these facts is that when cascading on a nucleus to form a muonic atom, muons will shed their energy in the form of highly energetic X-Ray photons, and the specific energies of these photons will be tied to the transitions between levels that are unique for each element. For this reason, `muons can be an excellent probe for non-destructive elemental analysis `_. The exact characteristic energies for each element can be tabulated by experimental calibration, but they can also be modelled from first principles, by solving the quantum equations to find the orbitals and their energies. However, this is not as simple as applying the usual Schrödinger equation, because the muons orbit the nucleus at relativistic energies and the Dirac equation is necessary; plus, at these energies, the electrostatic potential itself stops being perfectly Coulombic. For these reasons, we have provided a software that easily allows one to perform these calculations by including all necessary details to achieve precision sufficient for the interpretation of experiments.
diff --git a/example.html b/example.html
index 7e3fb74..ef7b36e 100644
--- a/example.html
+++ b/example.html
@@ -117,7 +117,7 @@
uehling_correction:T: This accounts for the Uehling correction, a quantum field effect relevant to electrostatics at these high energies. It can be undestood as accounting for the vacuum itself acting as a polarizable medium; because virtual electron-positron pairs can be generated in quantum field theory, these partially shield the charges and lower the traditional Coulomb force. This is an important term especially for very massive nuclei like Au or Pb and orbitals close to the nucleus.
+
uehling_correction:T: This accounts for the Uehling correction, a quantum field effect relevant to electrostatics at these high energies. It can be understood as accounting for the vacuum itself acting as a polarizable medium; because virtual electron-positron pairs can be generated in quantum field theory, these partially shield the charges and lower the traditional Coulomb force. This is an important term especially for very massive nuclei like Au or Pb and orbitals close to the nucleus.
electronic_config:Au: This term includes approximatively the effect of the other electrons orbiting the nucleus. It does not solve the equations for them, rather it just places them in fixed idealised orbitals and builds a negative charge background from them. The result is an additional correction to the energy, that is however tiny compared to the previous two terms, and often easily ignored.
Try running again MuDirac with this input. The calculation should take longer, and this time the output in Au.xr.out should be:
# Z = 79, A = 197 amu, m = 206.768 au
diff --git a/index.html b/index.html
index bc1b4cd..4711838 100644
--- a/index.html
+++ b/index.html
@@ -98,13 +98,9 @@
MuDirac used CMake as a build system, and requires a C++ compiler. In order to compile it and prepare it to be executed on a Linux, Unix, or MacOS system with a working C++ compiler installes, follow these steps:
-1. download and unpack (or gitclone) the repository on your local system;
-2. within the main folder of the repository (the one containing the READ.md file), create a subfolder called build;
-3. within the build folder, run the following commands:
+
MuDirac uses CMake as a build system, and requires a C++ compiler. In order to compile it and prepare it to be executed on a Linux, Unix, or MacOS system with a working C++ compiler installed, follow these steps:
+
+
Download and unpack (or gitclone) the repository on your local system.
+
Within the main folder of the repository (the one containing the READ.md file), create a subfolder called build.
+
Within the build folder, run the following commands:
+
cmake..
makemudirac
-
In order to run the test suite. within the same directory, run
+
In order to run the test suite, within the same directory run:
These keywords take a string as value; invalid strings (e.g. a chemical symbol that doesn’t correspond to a known element) will give rise to errors.
-
+
element: symbol of the element for the calculation. Determines the nuclear charge. Can be any symbol in the periodic table up to Z=111, Roentgenium (Rg). Default is H.
nuclear_model: model used to describe the nucleus. Can be POINT (point charge), SPHERE (finite size, uniformly charged spherical nucleus) or FERMI2 (Fermi 2-term charge distribution). Default is POINT.
electronic_config: electronic configuration to use in order to describe the negative charge background. Can be a full string describing the configuration (e.g. 1s22s22p2), an element symbol to represent the default configuration of that atom when neutral (e.g. C) or a mix of the two (e.g. [He]2s22p2). Default is the empty string (no electrons).
ideal_atom_minshell: for this shell, and all above it, treat the atom as a simple hydrogen-like point charge Dirac atom, using the known analytical solution and discarding all corrections. Mostly useful for debugging, or when very high shell states have difficulty to converge. The shell must use IUPAC notation (\(K \Rightarrow n=1\), \(L \Rightarrow n=2\), etc.). Default is the empty string (no ideal solutions used).
-
xr_lines: the transition or transitions for which energy and rates are desired. Each line must be expressed using the conventional IUPAC notation [Jenkins et al., 1991]. Multiple lines can be separated by commas. For example:
-
+
xr_lines: the transition or transitions for which energy and rates are desired. Each line must be expressed using the conventional IUPAC notation [Jenkins et al., 1991]. Multiple lines can be separated by commas. For example:
xr_lines:K1-L2,K1-L3
In addition, colons can be used to indicate ranges of lines. The notation K1:L3-M1 would compute the lines K1-M1, L1-M1, L2-M1 and L3-M1. Note that if some of these lines are forbidden by selection rules, they will simply be skipped. A double colon, like K1:L3-K1:L3 would loop on both sides, and not count all repeated lines.
These keywords can only have a value of TRUE or FALSE. In order to set them true, either the word ‘TRUE’ or the letter ‘T’ (regardless of case) work.
-
uehling_correction: whether to turn on or not the Uehling correction. Default is FALSE.
-
write~_spec: if true, write a spectrum file using the transition lines found broadened with Gaussian functions. Other parameters can be specified with different keywords. Default is FALSE.
+
uehling_correction: whether to turn on the Uehling correction or not. Default is FALSE.
+
write_spec: if true, write a spectrum file using the transition lines found broadened with Gaussian functions. Other Floating point keywords starting with spec_ can then be specified. Default is FALSE.
sort_byE: if true, print out the transitions sorted by energy instead than by shell. Default is FALSE.
While positive muons can be used as magnetic probes acting as if they were light protons, negative muons have wholly different uses due to behaving in matter more as if they were heavy electrons. Negative muons possess the same charge and spin as electrons, and so will form bound states with nuclei that are known as muonic atoms. These atoms possess peculiar properties due to the heavier mass of the muon:
-
the muon orbitals around the nucleus are much smaller and denser than the electronic ones, meaning that the muon tends to be rather insensitive to the presence of electrons - as it is closer to the nucleus than any of them (See figure 1);
+
the muon orbitals around the nucleus are much smaller and denser than the electronic ones, meaning that the muon tends to be rather insensitive to the presence of electrons - as it is closer to the nucleus than any of them (See Figure 1);
for the same reason, the muon orbitals can overlap significantly with the atomic nucleus, and their energy is affected by the shape of its charge distribution;
the muon orbitals have much higher binding energies, which means they can also be treated only with a relativistic theory. In classical terms, you could say the muons are ‘orbiting’ the nucleus at speeds close to that of light.