Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: deploy-book

# Only run this when the master branch changes
# Deploy when main changes; on pull requests, build only (see the guard on the
# deploy step below) so a PR is checked without touching the live site.
on:
push:
branches:
- main
pull_request:
branches:
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
Expand All @@ -30,8 +34,11 @@ jobs:
- name: Build the book
run: |
jupyter-book build book/
# Push the book's HTML to github-pages
# Push the book's HTML to github-pages.
# Guarded: without this, opening a pull request would publish that branch
# to the live site.
- name: Push to github-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# v3.6.1
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,52 @@ jupyter-book build book/
```

The compiled HTML files can then be viewed by opening `Core-course-notes/book/_build/html/index.html` in your browser.

## Building a PDF

The PDF is produced by rendering the book through LaTeX, so as well as the
Python dependencies above you need a TeX distribution providing `xelatex` and
`latexmk`:

- **macOS** -- [MacTeX](https://www.tug.org/mactex/)
- **Linux** -- TeX Live, e.g. `sudo apt install texlive-xetex texlive-latex-extra latexmk`

Then, from the `/Core-course-notes` directory, either use the `makefile`:

```bash
make pdf
```

or call `jupyter-book` directly:

```bash
jupyter-book build book/ --builder pdflatex
```

The result is written to `Core-course-notes/book/_build/latex/book.pdf`
(currently 464 pages, around 150 MB).

`make pdfhtml` selects a different route, which drives a headless Chromium via
`pyppeteer`. It is currently broken and `pyppeteer` is no longer installed by
the requirements files, so use `make pdf` instead.

### Maths that builds as HTML but breaks the PDF

MathJax, which renders the maths on the website, accepts a number of plain-TeX
and MathJax-only constructs that LaTeX rejects. These build cleanly as HTML and
fail only when making the PDF, so please avoid:

| Avoid | Use instead |
| --- | --- |
| `\eqalign{}`, `\eqalignno{}` | `\begin{aligned}` ... `\end{aligned}` |
| `\cr` | `\\` |
| `\begin{align}` nested inside `$$ ... $$` or a `{math}` directive | `\begin{aligned}` |
| `\lt`, `\gt` | `<`, `>` |
| `\pu{1 mol dm-3}` | plain maths, e.g. `\mathrm{1\ mol\ dm^{-3}}` |
| `&` inside `\ce{}` | put it outside: `\ce{A} &\ce{-> B}` |
| `a_\ce{AB}`, `\ce{ABC^\ddagger}` | brace them: `a_{\ce{AB}}`, `\ce{ABC^{\ddagger}}` |
| `\newcommand` inside a maths block | define it once in `book/_config.yml`, in both `mathjax3_config` and the LaTeX preamble |

Macros added to `mathjax3_config` only take effect if `configmacros` is listed
in `tex.packages` -- that list replaces MathJax's defaults rather than adding to
them, and without it the macro is silently ignored.
1 change: 0 additions & 1 deletion book/02_environments/l4/l4.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ describe the end-member behaviour of the mantle.
Within an **elastic solid**, stress and strain are
related by **Hooke's law** which we write as
```{math}
\newcommand{\ee}{\mathrm{e}}\newcommand{\ii}{\mathrm{i}}\newcommand{\ddns}{\,\mathrm{d}}
\sigma = \mu \epsilon,
```
with $\mu$ an elastic modulus. Here we see that the
Expand Down
1 change: 0 additions & 1 deletion book/02_environments/l5/l5.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ the lithosphere is dominantly through conduction. We also showed last time
that the time-scale for conductive cooling over a length-scale
$l$ is given by
```{math}
\newcommand{\ee}{\mathrm{e}}\newcommand{\ii}{\mathrm{i}}\newcommand{\ddns}{\,\mathrm{d}}
t \sim \frac{l^{2}}{\kappa},
```
with $\kappa$ the thermal diffusivity.
Expand Down
12 changes: 6 additions & 6 deletions book/02_environments/l7/l7.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ Volcanoes produce ash, gases and aerosols which may contain soluble metal salts
Thick ash fall can lead to plant death if the plant’s ability to take up minerals and photosynthesis is impaired. Over longer timescales (100s years) however, volcanic ash weathers and absorbs organic carbon, making fertile soils. The weathering process draws down atmospheric CO<sub>2</sub> through the reactions:

```{math}
\begin{align}
\ce{CO2 + H2O &\rightarrow H2CO3}\\
\ce{&\rightarrow HCO3- + H+}\\
\ce{CaSiO3 + 2H+ &\rightarrow Ca2+ + H2O + SiO2}\\
\ce{Ca2+ + HCO3- &\rightarrow CaCO3 + H2O + CO2}
\end{align}
\begin{aligned}
\ce{CO2 + H2O} &\ce{-> H2CO3}\\
&\ce{-> HCO3- + H+}\\
\ce{CaSiO3 + 2H+} &\ce{-> Ca2+ + H2O + SiO2}\\
\ce{Ca2+ + HCO3-} &\ce{-> CaCO3 + H2O + CO2}
\end{aligned}
```

It has been recognised that sometimes lava flows or ash fall into the sea can lead to phytoplankton blooms, by disrupting water flow and/or introducing Fe and other elements. A good example is the phytoplankton bloom that was recently observed offshore Hawaii during the 2018 East Rift zone eruption of Kilauea, where lava flowed into the sea, causing upwelling of deep, nutrient-rich water.
Expand Down
40 changes: 20 additions & 20 deletions book/03_detection/l4/l4.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ $$\ce{A + BC <=> AB + C}$$

Once an equilibrium has been reached, the extent of this reaction is be determined by its equilibrium constant

$$K=\frac{a_\ce{AB} a_\ce{C}}{a_\ce{A} a_\ce{BC}} = -RT \ln \Delta_r G^\ominus$$
$$K=\frac{a_{\ce{AB}} a_{\ce{C}}}{a_{\ce{A}} a_{\ce{BC}}} = \exp{-\Delta_r G^\ominus/(RT)}$$

NB the Gibbs free energy of each of the individual substances is temperature dependent, so $\Delta_r G^\ominus$ will also be temperature dependent.
The various factors which determine $\Delta_r G^\ominus$ can be calculated from statistical thermodynamics from the molecular energy levels (through the partition function), and so for simple molecules, can in principle be determined computationally. In the simple case of a gas-phase molecule, these energy levels are governed by the rotations and vibrations of the molecule and can be accurately measured by microwave and infrared spectroscopy.


In the literature, you may find a common approximation replacing the activities of a substance in solution by its concentration. This is not strictly dimensionally correct, and instead we may write
$a_X \approx \frac{[X]}{c^0}$
where $c^0$ is a standard concentration (e.g. $\pu{1 mol dm-3}$). This approximation is good in the low concentration limit, and we will make use of it throughout this lecture.
where $c^0$ is a standard concentration (e.g. $\mathrm{1\ mol\ dm^{-3}}$). This approximation is good in the low concentration limit, and we will make use of it throughout this lecture.

In general, however, a system is not as a whole at equilibrium, so it is helpful to also look at the time dependence of chemical reactions, a field called chemical kinetics. If the timescale of a reaction is fast compared to our observations, and the reaction reaches equilibrium, we say it is 'thermodynamically controlled'. If, however, the reaction is slow compared to observation, and we do not readily reach equilibrium, it is 'kinetically controlled'.

Expand All @@ -55,10 +55,10 @@ $$\ce{2NO + O2 -> 2NO2}$$

can be split into two elementary steps

$$\eqalignno{
\ce{2NO &->[k_1] N2O2} &[1]\cr
\ce{N2O2 + O2 &->[k_2] 2NO2} &[2]
}$$
$$\begin{aligned}
\ce{2NO} &\ce{->[k_1] N2O2} &[1]\\
\ce{N2O2 + O2} &\ce{->[k_2] 2NO2} &[2]
\end{aligned}$$

The rate law for an elementary step relates the rate of that reaction to the concentration of the reactants

Expand All @@ -71,7 +71,7 @@ Here we shall look at the factors which control the rates of the individual elem

## Reaction Pathways

To understand what occurs during a chemical reaction we can look at the energy of the combined system of reactants as a function of the positions of the atoms. Even in our three-atom, two molecule system, that is far too many degrees of freedom to plot, so we will consider the simple case of one dimension, where A, B, and C are collinear, with distances, $r_\ce{AB}$ and $r_\ce{BC}$.
To understand what occurs during a chemical reaction we can look at the energy of the combined system of reactants as a function of the positions of the atoms. Even in our three-atom, two molecule system, that is far too many degrees of freedom to plot, so we will consider the simple case of one dimension, where A, B, and C are collinear, with distances, $r_{\ce{AB}}$ and $r_{\ce{BC}}$.

```{figure} figures/ABC.png
---
Expand All @@ -88,26 +88,26 @@ It is possible to plot the 'energy' of the system as a function of these two coo
name: fig:PES3D
width: 70%
---
A 3-dimensional plot of a Potential energy surface with coordinates $r_\ce{AB}$ and $r_\ce{BC}$ is too difficult to draw.
A 3-dimensional plot of a Potential energy surface with coordinates $r_{\ce{AB}}$ and $r_{\ce{BC}}$ is too difficult to draw.
```

The reactants, if they are stable, will sit in a local minimum of the PES with a large $r_\ce{AB}$ and short $r_\ce{BC}$. (Because the molecules are themselves quantum mechanical, they don't just sit at the minimum of this well. Their (nuclear) wavefunction is spread over the minimum of the PES.).
The reactants, if they are stable, will sit in a local minimum of the PES with a large $r_{\ce{AB}}$ and short $r_{\ce{BC}}$. (Because the molecules are themselves quantum mechanical, they don't just sit at the minimum of this well. Their (nuclear) wavefunction is spread over the minimum of the PES.).
Similarly the products will sit in a different local minimum with a (probably) different energy.

```{figure} figures/PES2D_1.png
---
name: fig:PES2D_1
width: 70%
---
A 2-dimensional plot of the reaction space with coordinates $r_\ce{AB}$ and $r_\ce{BC}$, showing the position of reactants and products.
A 2-dimensional plot of the reaction space with coordinates $r_{\ce{AB}}$ and $r_{\ce{BC}}$, showing the position of reactants and products.
```

```{figure} figures/PES2D_2.png
---
name: fig:PES2D_2
width: 70%
---
A 2-dimensional contour plot of the energy in the reaction space with coordinates $r_\ce{AB}$ and $r_\ce{BC}$, showing the reactants and products as local minima.
A 2-dimensional contour plot of the energy in the reaction space with coordinates $r_{\ce{AB}}$ and $r_{\ce{BC}}$, showing the reactants and products as local minima.
```

We describe a chemical reaction by a pathway on the PES joining the reactants minimum with the products minimum.
Expand All @@ -117,7 +117,7 @@ We describe a chemical reaction by a pathway on the PES joining the reactants mi
name: fig:PES2D_3
width: 70%
---
A 2-dimensional contour plot of the energy in the reaction space with coordinates $r_\ce{AB}$ and $r_\ce{BC}$, showing the reactants and products as local minima joined by their reaction pathway containing the transition state $\ce{ABC^\ddagger}.$
A 2-dimensional contour plot of the energy in the reaction space with coordinates $r_{\ce{AB}}$ and $r_{\ce{BC}}$, showing the reactants and products as local minima joined by their reaction pathway containing the transition state $\ce{ABC^{\ddagger}}.$
```


Expand All @@ -139,21 +139,21 @@ Many reactions approximately fit this, though the equation it is not directly ba
Instead we can use an approach called "Eyring Transition State Theory". We assume that the reaction proceeds through the transition state labelled $\ce{ABC}^\ddagger$.
Since the transition state is significantly higher in energy than the reactants, relatively few collisions of $\ce{A + BC}$ reach the transition state, and so we can statistically model the few that do. This is done by assuming that the reactants and transition state are in equilibrium, with equilibrium constant $K^*$.

$$\ce{A + BC <=> ABC^\ddagger -> AB + C}$$
$$\ce{A + BC <=> ABC^{\ddagger} -> AB + C}$$

Further, we assume that once a system has reached the transition state, it has a fixed rate of descending the PES to the reactants, $k_\text{1st}$.

Overall therefore the rate of reaction is

$$\text{rate} = \frac{d[\ce{AB}]}{dt} = k_1[\ce{ABC^\ddagger}].$$
$$\text{rate} = \frac{d[\ce{AB}]}{dt} = k_1[\ce{ABC^{\ddagger}}].$$

From the equilibrium,

$$K^* = \frac{[\ce{ABC^\ddagger}]/c^0 }{ \left([\ce{A}]/c^0\right) \left([\ce{B}]/c^0\right)} = c^0 \frac{[\ce{ABC^\ddagger}]}{ [\ce{A}][\ce{B}]}$$
$$K^* = \frac{[\ce{ABC^{\ddagger}}]/c^0 }{ \left([\ce{A}]/c^0\right) \left([\ce{B}]/c^0\right)} = c^0 \frac{[\ce{ABC^{\ddagger}}]}{ [\ce{A}][\ce{B}]}$$

so

$$[\ce{ABC^\ddagger}] = \frac{K^*}{c^0}[\ce{A}][\ce{B}]$$
$$[\ce{ABC^{\ddagger}}] = \frac{K^*}{c^0}[\ce{A}][\ce{B}]$$

and therefore

Expand Down Expand Up @@ -193,10 +193,10 @@ We also see that the pre-exponential factor is both temperature dependent, and h

Not all chemical reactions occur from molecules in their ground state, owing to often large activation energy barriers. One way of overcoming this is to first excite a molecule to a higher energy electronic state, usually by the absorption of a photon. This may then react or decompose.

$$\eqalign{
\ce{X + h\nu &-> X^*}\cr
\ce{X^* &-> A + B}
}$$
$$\begin{aligned}
\ce{X + h\nu} &\ce{-> X^*}\\
\ce{X^*} &\ce{-> A + B}
\end{aligned}$$

This process involves two PESes: the ground state of $\ce{X}$ which may have a high barrier to producing $\ce{A+B}$, and its excited state, $\ce{X^*}$, where it's possible that making the products is even exothermic.

Expand Down
12 changes: 6 additions & 6 deletions book/03_detection/l5/l5.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ and is separated out of the average (**why is this a fair thing to do? How would
In the case of an ion-neutral collision with an ion and a polarizable molecule, we can see that the polarized molecule experiences an attractive force as a function of intermolecular distance, $r$ (m), of $F = P \cdot \big(dE/dr\big)$, where $P = \alpha_N E$ (C m) is the dipole moment, and $\alpha_N$ (C m$^2$/V) is the polarizability, and $E$ (V/m) is the electric field. Given a Coulomb field, $E = kq/r^2$ where the charge here is typically equal to the charge of a single electron, $q = 1.6 \times 10^{-19}$ C, and $k = 8.99 \times 10^9$ N m$^2$ C$^{-2}$; we can then solve for the force:
```{math}
:label: eqn:L9-coulomb-force
\begin{align}
\begin{aligned}
F &= P \Bigg(\frac{dE}{dr}\Bigg)\\
&= \frac{-2 \alpha_N k^2 q^2}{r^5}.
\end{align}
\end{aligned}
```
Given that $F = -dU/dr$, we can represent the potential energy of the polarized molecular species in the Coulomb field as:
```{math}
Expand Down Expand Up @@ -183,11 +183,11 @@ Once H$_2$ is formed, a path is now opened to more complex chemistry, including
Let's look at a simple sequence of reactions:
```{math}
:label: eqn:L9-sequence-of-reactions
\begin{align}
\begin{aligned}
{\rm H_2 + GCR} &\rightarrow {\rm H_2^+} + e^- \\
{\rm H_2^+ + H_2} &\rightarrow {\rm H_3^+ + H} \\
{\rm H_3^+ + CO} &\rightarrow {\rm HCO^+ + H_2}
\end{align}
\end{aligned}
```
Other reactions with H$_3^+$ and atomic carbon can lead to rich interstellar chemistry, see Larsson et al. (2012). This chemistry depends on the concentration of H$_3^+$, and the steady-state concentration can be calculated from the rate equations based on the simple series of reactions above.

Expand All @@ -199,11 +199,11 @@ The very first molecular species in our universe formed before there were dust g

```{math}
:label: eqn:L9-first-molecules
\begin{align}
\begin{aligned}
{\rm H + He^+} &\rightarrow {\rm HeH^+} + h\nu \\
{\rm HeH^+ + H} &\rightarrow {\rm H_2^+ + He} \\
{\rm H_2^+ + H} &\rightarrow {\rm H_2 + H^+}
\end{align}
\end{aligned}
```

HeH$^+$ (or possibly He$_2^+$) was the first chemical species in our universe. The radiative association reactions shown here with ion-neutral species are still very slow ($\sim 10^{-20}$ cm$^3$ s$^{-1}$, see Roberge & Dalgarno 1982), but not nearly as slow as H + H radiative association, or most neutral atomic radiative association reactions. This is not fast enough to explain how all H$_2$ in a dense cloud would have been formed, but it is enough to predict that there would have been significant abundances of various molecular species in the early Universe, before dust grains were formed.
Expand Down
20 changes: 10 additions & 10 deletions book/03_detection/l6/l6.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ $$
where A is our initial reactant, B an **intermediate** product and C the final product of the reaction. Following the same procedure as above we can write:

$$
\begin{align}
\begin{aligned}
\frac{d[{\rm A}]}{dt} &= -k_1 [{\rm A}] \\
\frac{d[{\rm B}]}{dt} &= k_1 [{\rm A}] - k_2 [{\rm B}] \\
\frac{d[{\rm C}]}{dt} &= k_2 [{\rm B}]
\end{align}
\end{aligned}
$$

Solutions for these equations are shown in Figures {numref}`AA-F3` and {numref}`AA-F4`.
Expand Down Expand Up @@ -135,10 +135,10 @@ where the subscript $ss$ is used to note that we are considering the **intermedi
Following this through, we can re-write the remaining equations which describe our complex reaction (making the substitution $[{\rm B}]_{ss}=k_1 [{\rm A}]/k_2$):

$$
\begin{align}
\begin{aligned}
\frac{d[{\rm A}]}{dt} &= -k_1 [{\rm A}] \\
\frac{d[{\rm C}]}{dt} &= k_2 \times \frac{k_1 [{\rm A}]}{k_2} \simeq k_1 [{\rm A}]
\end{align}
\end{aligned}
$$

In doing so we have greatly reduced the complexity of this reaction system.
Expand All @@ -158,12 +158,12 @@ Schematic showing possible connections between an A and B molecule with A underg
We can appeal to steady state and write out steady state solutions for [A] and [B]

$$
\begin{align}
\begin{aligned}
\frac{d[{\rm A}]}{dt} &= F_A - k_1 [{\rm A}] - k_2[{\rm A}] \\
[{\rm A}]_{ss} &= \frac{F_A}{k'} = F_A \times \tau_A \\
\frac{d[{\rm B}]}{dt} &= k_1 [{\rm A}] - k_2[{\rm B}] \\
[{\rm B}]_{ss} &= \frac{k_1[{\rm A}]}{k_1}
\end{align}
\end{aligned}
$$

And we can then write an expression for the ratio of $[{\rm B}]_{ss}/[{\rm A}]_{ss}$
Expand Down Expand Up @@ -197,10 +197,10 @@ $$
With rate constants:

$$
\begin{align}
\begin{aligned}
{\rm A} &\xrightarrow{k_1} {\rm B} \\
{\rm B} &\xrightarrow{k_{-1}} {\rm A}
\end{align}
\end{aligned}
$$

the system approaches equilibrium with a time constant of $(k_1 + k_{-1})^{-1}$ (s). So, only need $k_1$ **or** $k_{-1}$ to be large for $\tau$ to be small, and to then allow us to apply steady-state.
Expand Down Expand Up @@ -269,11 +269,11 @@ $$
We can also use studies on the kinetics of chemical reactions to tell us about their mechanisms. By mechanism we mean the elementary series of steps (or step) involved in a molecular encounter. An example is the oxidation of the aromatic compound, benzene. The main sink for benzene is the reaction with OH. OH can either add to the aromatic ring on benzene or abstract (pull off) a hydrogen atom.

$$
\begin{align}
\begin{aligned}
{\rm OH + C_6H_6} &\xrightarrow{k_1} {\rm H_2O + C_6H_5} \\
{\rm OH + C_6H_6} &\xrightarrow{k_2} {\rm HOC_6H_6} \\
k_{{\rm obs},T} &= k_1 + k_2
\end{align}
\end{aligned}
$$

```{figure} ./figures/C3_Archibald_Figure7.jpg
Expand Down
8 changes: 4 additions & 4 deletions book/03_detection/l7/l7.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,21 @@ Reactions in an atmosphere occur through either collisions or absorption of phot
When two species collide there are a limited number of outcomes. Let’s consider an example of an A molecule colliding with a BC molecule.

$$
\begin{align}
\begin{aligned}
\mathrm{\mathbf{Addition:}}&\\
{\rm A + BC} &\rightarrow {\rm ABC}\\
\mathrm{\mathbf{Abstraction:}}&\\
{\rm A + BC} &\rightarrow {\rm AB + C}\\
{\rm A + BC} &\rightarrow {\rm AC + B}
\end{align}
\end{aligned}
$$

As our molecules get more complex (include more atoms) then the number of possible products increases considerably.

For absorption of photons we can consider photolysis (breaking of bonds), excitation (increasing energy levels) or rearrangement. Let’s consider another example of a molecule ABC.

$$
\begin{align}
\begin{aligned}
\mathrm{\mathbf{Photolysis:}}&\\
{\rm ABC} + h\nu &\rightarrow {\rm A + BC}\\
{\rm ABC} + h\nu &\rightarrow {\rm AB + C}\\
Expand All @@ -158,7 +158,7 @@ $$
{\rm ABC} + h\nu &\rightarrow {\rm ACB}\\
{\rm ABC} + h\nu &\rightarrow {\rm BCA}\\
{\rm ABC} + h\nu &\rightarrow {\rm BAC}
\end{align}
\end{aligned}
$$

We won’t dwell on ionisation reactions in these lectures but note that they add considerable further complexity. Generally speaking these reactions are only of importance in the upper atmosphere of a planet.
Expand Down
Loading
Loading