{
"cells": [
{
"cell_type": "markdown",
"id": "ff0fc2d9-b53e-4d29-883b-6d6303d76eb2",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"# Activity 5: Multiple scattering in the forward scattering regime"
]
},
{
"cell_type": "markdown",
"id": "7f10b898-4fc8-40fd-a477-05e736a5a255",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"In photoelectron diffraction, it is well known that for high photoelectron kinetic energy (typically > 900 eV), the scattering factor is strongly peaked in the forward direction. It means that photoelectrons are almost not deviated after a scattering event.\n",
"\n",
"Peaks of intentisity are then usually observed for dense atomic directions of the sample. This is the **forward scattering approximation**.\n",
"\n",
"For such high kinetic energy, multiple scattering is needed to accurately describe the measured intensity, but the matrix inversion algorithm cannot be used since the memory needed for storing the matrix itself would be generally too large. The matrix will contain\n",
"$(N \\times (L_{max}+1)^2)^2$ elements of complex type with double precision (64 bits) where $N$ is the number of atoms and $L_{max}$ is the number of spherical harmonics used to expand the electron wave around each atomic center. As the kinetic energy increases, the mean free path (MFP) of the photoelectron is larger and the number of atoms in the cluster has to be greater. Lmax also increases with the kinetic energy."
]
},
{
"cell_type": "markdown",
"id": "cc78443a-1d06-408a-91eb-33a56fe25ba3",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"::::{tab-set}\n",
"\n",
":::{tab-item} Quiz\n",
"Try to evaluate how much memory you would need for this matrix for a hemispherical cluster of copper 15 angströms thick (1 MFP) for $L_{max} = 25$ ?\n",
":::\n",
"\n",
"::::"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "e6f5b739-bcbf-4a2f-9c51-5e409079392a",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"606 atoms, 2.685 TB\n"
]
}
],
"source": [
"import numpy as np\n",
"\n",
"# lattice constant of fcc copper\n",
"a = 3.6\n",
"# radius of the cluster\n",
"r = 15\n",
"# volume of the cluster\n",
"V = .5 * (4/3) * np.pi * r**3\n",
"# volume of the cell\n",
"v = a**3\n",
"# number of atoms in the unit cell\n",
"n = 4\n",
"# number of atoms in the cluster\n",
"N = int(V/v * n)\n",
"\n",
"Lmax = 25\n",
"M = (N * (Lmax+1)**2 )**2 * 2 * 64 / 8\n",
"print(f\"{N:d} atoms, {M/1e12:.3f} TB\")"
]
},
{
"cell_type": "markdown",
"id": "f53ecd7a-9202-40ec-a472-c5a2146587c9",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"This is too much memory. We will use another algorithm available in MsSpec: The *Rehr-Albers series expansion*. We already used that algorithm in activity 3 for the single scattering approach. But this time, we will explore a bit more the effect of the scattering order > 1"
]
},
{
"cell_type": "markdown",
"id": "f7e215cd-3468-4316-901d-27731ec3e61d",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"## PED of the 1T-TiSe2 surface"
]
},
{
"cell_type": "markdown",
"id": "ed46b9b8-cd37-4531-9686-5c1d804e868e",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"Let us try to model the Ti2p XPD pattern of the transition metal dichalcogenide 1T-TiSe2.\n",
"\n",
":::{seealso}\n",
"based on this paper from M.V. Kuznetsov *et al.*\n",
"[Surf. Sci. **606** p1760–70 (2012)](https://doi.org/10.1016/j.susc.2012.06.008)\n",
":::\n",
"\n",
"### Creating the TiSe{sub}`2` cluster\n",
"\n",
"Start by creating a small cluster of 1T-TiSe2 using the `mx2` function of `ase.build` and the `hemispherical_cluster` function of `msspec.utils`."
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "65562913-1336-476c-8dd7-0ade7a8a1b8b",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
":::{figure-md} TiSe2-fig\n",
"\n",
"\n",
"Structure of 1T-TiSe2 ($a_0=b_0=3.535$ Å, $c_0=6.004$ Å, $d=3.450$ Å, $D=2.554$ Å)\n",
":::"
]
},
{
"cell_type": "markdown",
"id": "849041c9-513f-4593-a4dd-fb3a495094fa",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"::::{tab-set}\n",
"\n",
":::{tab-item} Quiz\n",
"Complete the code snipet provided below to create a small TiSe{sub}`2` cluster with Ti emitter in the 2{sup}`nd` plane:\n",
"\n",
"```{literalinclude} TiSe2_1_tofill.py\n",
":start-at: from\n",
":end-before: Create a calculator\n",
":lineno-match:\n",
"```\n",
"\n",
":::\n",
"\n",
"::::"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "b65b569e-242b-4fe9-9c87-ea90d80d9b44",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"outputs": [],
"source": [
"from ase.build import mx2\n",
"from ase.visualize import view\n",
"from msspec.calculator import MSSPEC\n",
"from msspec.utils import hemispherical_cluster, get_atom_index\n",
"\n",
"# Some usefull constants (a, c, d, D) for defining the structure\n",
"a=3.535;c=6.004;d=3.450;D=2.554\n",
"\n",
"# Create the TiSe2 trilayer\n",
"# use ase help for this function\n",
"TiSe2 = mx2(formula='TiSe2', kind='1T', a=a, thickness=d, size=(1, 1, 1), vacuum=None)\n",
"\n",
"# The preious cell is 2D, let's define the c-axis to take into account \n",
"# the Van der Waals gap between trilayers\n",
"TiSe2.cell[2] = [0, 0, c]\n",
"\n",
"# To be aligned like in the paper\n",
"TiSe2.rotate(60, 'z', rotate_cell=True)\n",
"\n",
"# Since the material is multi-elements, \"tag\" each inequivalent atom \n",
"# of the unit cell with a number. The \"Ti\" atom is tagged 0 and \"Se\" \n",
"# atoms are 1 and 2.\n",
"for i in range(3): \n",
" TiSe2[i].tag = i\n",
"\n",
"cluster = hemispherical_cluster(TiSe2, emitter_tag=0, emitter_plane=1, planes=5)\n",
"cluster.emitter = get_atom_index(cluster, 0, 0, 0)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "515064d0-3751-4fae-af0c-c4b15ea221b3",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"remove-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"