Add files without solutions to quiz
This commit is contained in:
parent
7ac82b1cc2
commit
1561fe7722
|
@ -0,0 +1,926 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7e31b322-df55-44ed-9f29-6f6efa71eafe",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"# Activity 1: Getting started\n",
|
||||
"\n",
|
||||
"MsSpec is a Fortran code with two components: Phagen (Written by R. Natoli) and Spec (written by D. Sébilleau). Phagen computes the phase shifts of the electronic wave propagating in the matter on a spherical harmonics basis. Spec uses those phase shifts to compute the multiple scattering process and simulate the intensity of different electronic spectroscopies.\n",
|
||||
"\n",
|
||||
"In the most recent version of MsSpec, the program is interfaced with python (https://msspec.cnrs.fr/), allowing for much more flexibility and interplay with other simulation techniques.\n",
|
||||
"\n",
|
||||
"## Building atomic systems\n",
|
||||
"\n",
|
||||
"MsSpec works in the *cluster* approach. Building such a cluster for a calculation is a fundamental step.\n",
|
||||
"We use the [python Atomic Simulation Environment (ASE)](https://wiki.fysik.dtu.dk/ase/) for this.\n",
|
||||
"\n",
|
||||
"ASE is a set of tools and Python modules for setting up, manipulating, running, visualizing and analyzing atomistic simulations.\n",
|
||||
"Building atomic systems, structures... is pretty straightforward:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "07a04c8c-a268-481a-8f1b-14878ed771b5",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-output"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<Popen: returncode: None args: ['/home/stricot/msspec_py3.11.13/bin/python',...>"
|
||||
]
|
||||
},
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# To build a molecule with ASE\n",
|
||||
"from ase.build import molecule\n",
|
||||
"# To view\n",
|
||||
"from ase.visualize import view\n",
|
||||
"\n",
|
||||
"# Create a water molecule\n",
|
||||
"water = molecule('H2O')\n",
|
||||
"# Display it\n",
|
||||
"view(water)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "e09c7d97-eb35-49a7-b74a-9fb21a9a3aaf",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<html>\n",
|
||||
" <head>\n",
|
||||
" <title>ASE atomic visualization</title>\n",
|
||||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://www.x3dom.org/release/x3dom.css\"></link>\n",
|
||||
" <script type=\"text/javascript\" src=\"https://www.x3dom.org/release/x3dom.js\"></script>\n",
|
||||
" </head>\n",
|
||||
" <body>\n",
|
||||
" <X3D width=\"400px\"; height=\"300px\";>\n",
|
||||
"\n",
|
||||
"<!--Inserting Generated X3D Scene-->\n",
|
||||
"<scene>\n",
|
||||
" <viewpoint position=\"0 0 3.052956\">\n",
|
||||
" <group/>\n",
|
||||
" </viewpoint>\n",
|
||||
" <transform translation=\"-0.0 -0.0 -0.0\">\n",
|
||||
" <group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0.0 0.0 0.119262\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.051 0.051\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"0.66\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.763239 -0.477047\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 1.0 1.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"0.31\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -0.763239 -0.477047\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 1.0 1.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"0.31\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" </group>\n",
|
||||
" </transform>\n",
|
||||
"</scene>\n",
|
||||
"<!--End of Inserted Scene-->\n",
|
||||
"\n",
|
||||
" </X3D>\n",
|
||||
" </body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"view(water, viewer='x3d')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "94b690a2-52f0-43e4-953d-6e7519ac4e9c",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"## Barebone script for MsSpec\n",
|
||||
"\n",
|
||||
"MsSpec can simulate different electronic spectroscopies like PED, AED, LEED, EXAFS, APECS and more will be included in the forthcoming version. However, it is really well-suited for PhotoElectron Diffraction simulation, and the python interface is only fully available for it at the moment. Since PED covers all the MsSpec features and concepts, we will focus on this technique.\n",
|
||||
"\n",
|
||||
"There are typically 3 steps to follow to get a result with MsSpec:\n",
|
||||
"\n",
|
||||
"1. Create a *cluster*\n",
|
||||
"2. Create an ASE *calculator*\n",
|
||||
"3. Run the simulation\n",
|
||||
"\n",
|
||||
"### PED polar scan for Cu(001)\n",
|
||||
"\n",
|
||||
"download the [cu.py](cu.py \"download\") python script and the [copper.cif](copper.cif \"download\") file. Put those files in the same folder. You can run your first MsSpec calculation by typing in a terminal:\n",
|
||||
"\n",
|
||||
"```shell\n",
|
||||
"$ python cu.py\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"Here is the content of the script file:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "da96a735-a028-4fe8-89ac-96f707323ae9",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"```{literalinclude} cu.py\n",
|
||||
":end-before: The \"emitter\"\n",
|
||||
":linenos:\n",
|
||||
"```"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "6ddd72a9-8f32-484f-9a3e-9ab3a85945a4",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"scrolled": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<html>\n",
|
||||
" <head>\n",
|
||||
" <title>ASE atomic visualization</title>\n",
|
||||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://www.x3dom.org/release/x3dom.css\"></link>\n",
|
||||
" <script type=\"text/javascript\" src=\"https://www.x3dom.org/release/x3dom.js\"></script>\n",
|
||||
" </head>\n",
|
||||
" <body>\n",
|
||||
" <X3D width=\"400px\"; height=\"300px\";>\n",
|
||||
"\n",
|
||||
"<!--Inserting Generated X3D Scene-->\n",
|
||||
"<scene>\n",
|
||||
" <viewpoint position=\"0 0 28.8\">\n",
|
||||
" <group/>\n",
|
||||
" </viewpoint>\n",
|
||||
" <transform translation=\"-7.2 -7.2 -3.6\">\n",
|
||||
" <group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 14.4 0.0 0.0 14.4 14.4 0.0 0.0 14.4 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 7.2\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 14.4 0.0 0.0 14.4 14.4 0.0 0.0 14.4 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 14.4 0.0 0.0 14.4 0.0 7.2 0.0 0.0 7.2 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 14.4 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 14.4 0.0 0.0 14.4 0.0 7.2 0.0 0.0 7.2 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"3.6 7.2 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.6 7.2 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 5.400000000000002 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 3.5999999999999988 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 5.400000000000002 0.8999999999999997\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 5.400000000000002 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 3.5999999999999988 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 5.400000000000002 4.5\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 7.2 0.8999999999999997\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 8.999999999999998 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 7.2 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 8.999999999999998 0.8999999999999997\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 7.2 4.5\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.400000000000002 8.999999999999998 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 7.2 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 8.999999999999998 4.5\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 10.800000000000004 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.2 10.800000000000004 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 5.400000000000002 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 5.400000000000002 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 7.2 0.8999999999999997\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 8.999999999999998 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"10.800000000000004 7.2 2.700000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 7.2 4.5\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"8.999999999999998 8.999999999999998 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"10.800000000000004 7.2 6.300000000000001\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" </group>\n",
|
||||
" </transform>\n",
|
||||
"</scene>\n",
|
||||
"<!--End of Inserted Scene-->\n",
|
||||
"\n",
|
||||
" </X3D>\n",
|
||||
" </body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"from ase.io import read\n",
|
||||
"from ase.visualize import view\n",
|
||||
"from msspec.calculator import MSSPEC\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"cluster = read('copper.cif')\n",
|
||||
"# view the cluster\n",
|
||||
"view(cluster, viewer='x3d')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "a51b9284-ce53-48e2-bd4b-65fe3998cc33",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"```{literalinclude} cu.py\n",
|
||||
":start-at: The \"emitter\"\n",
|
||||
":lineno-match:\n",
|
||||
"```\n",
|
||||
":::{figure-md} Cu-XPD\n",
|
||||
"<img src=\"fig1.png\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Cu(2p) polar scan for the copper cluster above\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "85c7dcac-9f0e-4a56-8077-c96f89865dcb",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"## Shaping a cluster"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ff63b7cb-5e31-44f8-b81b-d05bf0c775c0",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Based on the previous *.cif file, create a new cluster without the deepest plane and run the same calculation for the same emitter\n",
|
||||
"\n",
|
||||
"```{note}\n",
|
||||
"Use the `cluster.edit()` method to interactively remove atoms...\n",
|
||||
"\n",
|
||||
"As the cluster will contain fewer atoms, the emitter index will be different\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"What do you conclude ?\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "102bfad0-f8ed-44ab-990f-9fb2eb5662b0",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"scrolled": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"hide-input"
|
||||
]
|
||||
},
|
||||
"source": [
|
||||
"The number of atoms used for the calculation greatly impact the calculation time and memory. Most of the time, a cluster is shaped as an hemisphere to minimize the number of atoms to take into account"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "f7ecc1d0-097d-4199-822a-c564e9e94337",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-output"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<Popen: returncode: None args: ['/home/stricot/msspec_py3.11.13/bin/python',...>"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"from msspec.calculator import MSSPEC\n",
|
||||
"from msspec.utils import hemispherical_cluster, get_atom_index\n",
|
||||
"from ase.build import bulk\n",
|
||||
"from ase.visualize import view\n",
|
||||
"\n",
|
||||
"copper = bulk('Cu', cubic=True)\n",
|
||||
"cluster = hemispherical_cluster(copper, planes=3, emitter_plane=2)\n",
|
||||
"cluster.emitter = get_atom_index(cluster, 0,0,0)\n",
|
||||
"\n",
|
||||
"view(cluster)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "076f617d-599f-483d-b22c-38cebf41b28a",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<html>\n",
|
||||
" <head>\n",
|
||||
" <title>ASE atomic visualization</title>\n",
|
||||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://www.x3dom.org/release/x3dom.css\"></link>\n",
|
||||
" <script type=\"text/javascript\" src=\"https://www.x3dom.org/release/x3dom.js\"></script>\n",
|
||||
" </head>\n",
|
||||
" <body>\n",
|
||||
" <X3D width=\"400px\"; height=\"300px\";>\n",
|
||||
"\n",
|
||||
"<!--Inserting Generated X3D Scene-->\n",
|
||||
"<scene>\n",
|
||||
" <viewpoint position=\"0 0 14.440000000000001\">\n",
|
||||
" <group/>\n",
|
||||
" </viewpoint>\n",
|
||||
" <transform translation=\"-1.805 -1.805 -1.805\">\n",
|
||||
" <group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 3.61 0.0 0.0 3.61 3.61 0.0 0.0 3.61 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 3.61 0.0 0.0 3.61 3.61 0.0 0.0 3.61 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 3.61 0.0 0.0 3.61 0.0 3.61 0.0 0.0 3.61 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 3.61 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 3.61 0.0 0.0 3.61 0.0 3.61 0.0 0.0 3.61 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"-3.610000000000001 0.0 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.8049999999999997 -1.8049999999999997 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.8049999999999997 0.0 1.8050000000000002\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.8049999999999997 1.8049999999999997 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -3.6099999999999994 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 4.440892098500626e-16\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -1.8049999999999997 1.8050000000000002\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.8049999999999997 -1.8049999999999997 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.8049999999999997 0.0 1.8050000000000002\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 1.8049999999999997 1.8050000000000002\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 3.6099999999999994 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.8049999999999997 1.8049999999999997 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.6099999999999994 0.0 3.61\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.784 0.502 0.2\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.32\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" </group>\n",
|
||||
" </transform>\n",
|
||||
"</scene>\n",
|
||||
"<!--End of Inserted Scene-->\n",
|
||||
"\n",
|
||||
" </X3D>\n",
|
||||
" </body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"view(cluster, viewer='x3d')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4a71c734-8c73-49a2-9f27-12157841405c",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
":::{figure-md} Cu-hemi\n",
|
||||
"<img src=\"fig3.png\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Cu(2p) polar scan for the hemispherical cluster.\n",
|
||||
":::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,346 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2aebc88d-0bb4-4d56-b7f6-977a66814229",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"(ssc)=\n",
|
||||
"# Activity 3: Adsorbates and the single scattering approach\n",
|
||||
"\n",
|
||||
"Photoelectron diffraction is widely used to study the adsorption of atoms or molecules on a crystalline surface. Photoelectrons from adsorbates are scattered by the underlying surface, carrying information about the adsorption site, bond length and/or molecule orientation…. Thanks to a simulation, such information becomes quantitative with a high degree of accuracy.\n",
|
||||
"\n",
|
||||
"Calculations of the multiple scattering using matrix inversion have the great advantage of being exact, including all scattering paths. On the other hand, memory consumption soon becomes a problem as the kinetic energy and number of atoms to be considered increase. As an approximation, it is possible to only consider a single scattering from the emitter to any atom in the cluster. This approximation is extremely computationally fast and can give satisfactory results for adsorbates. We’ll see later that this approach is rather too simplistic for most cases.\n",
|
||||
"\n",
|
||||
"## Oxygen on Rh(001)\n",
|
||||
"In a paper published in 1998, T. Gerber *et al.* used the quite high backscattering factor of Rhodium atoms to probe the distance of Oxygen atoms adsorbed on a Rhodium surface. Some electrons coming from Oxygen atoms are ejected toward the Rhodium surface. They are then backscattered and interfere with the direct signal comming from Oxygen atoms (see the figure below). They demonstrated both experimentally and numerically with a sinle scattering computation that this lead to a very accurate probe of adsorbed species that can be sensitive to bond length changes of the order of {math}`\\pm 0.02 \\mathring{A}`.\n",
|
||||
"\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from T. Greber *et al.* [Phys. Rev. Lett. **81**(8) p1654 (1998)](https://doi.org/10.1103/PhysRevLett.81.1654)\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "a4cd32cd-b480-44b5-af38-b38e5979ce00",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
":::{figure-md} RhO-fig\n",
|
||||
"<img src=\"RhO_fig0.jpg\" alt=\"RhO\" width=\"300px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Interferences produced by the backscattering effect\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4f6bcc08-a54c-424a-a20c-cbdd0ce13ae2",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"### Computing the scattering factor\n",
|
||||
"\n",
|
||||
"To illustrate that photoelectrons emitted by Oxygen adsorbates towards the Rhodium surface can be backscattered, we will start by computing the scattering factor for both O and Rh atoms.\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"By using the [`Atoms`](https://wiki.fysik.dtu.dk/ase/ase/atoms.html#ase.Atoms) class of the `ase` package, try to build a O-Rh chain where atoms are 4 Å apart. Here is the begining of the script. Try to complete the line of code and view your two-atoms chain.\n",
|
||||
"\n",
|
||||
"```python\n",
|
||||
"from ase import Atoms\n",
|
||||
"from ase.visualize import view\n",
|
||||
"\n",
|
||||
"# Create an atomic chain O-Rh\n",
|
||||
"cluster = Atoms(... # Fill this line\n",
|
||||
"```\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "55929980-7394-4a60-b554-376adce57dbf",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from ase import Atoms\n",
|
||||
"from ase.visualize import view\n",
|
||||
"\n",
|
||||
"# Create an atomic chain O-Rh\n",
|
||||
"cluster = Atoms(['O', 'Rh'], positions = [(0,0,0), (0,0,4.)])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "2f296e2c-2a34-4266-98a8-362ede072659",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<html>\n",
|
||||
" <head>\n",
|
||||
" <title>ASE atomic visualization</title>\n",
|
||||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://www.x3dom.org/release/x3dom.css\"></link>\n",
|
||||
" <script type=\"text/javascript\" src=\"https://www.x3dom.org/release/x3dom.js\"></script>\n",
|
||||
" </head>\n",
|
||||
" <body>\n",
|
||||
" <X3D width=\"400px\"; height=\"300px\";>\n",
|
||||
"\n",
|
||||
"<!--Inserting Generated X3D Scene-->\n",
|
||||
"<scene>\n",
|
||||
" <viewpoint position=\"0 0 8.0\">\n",
|
||||
" <group/>\n",
|
||||
" </viewpoint>\n",
|
||||
" <transform translation=\"-0.0 -0.0 -0.0\">\n",
|
||||
" <group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0.0 0.0 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.051 0.051\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"0.66\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 4.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.039 0.49 0.549\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.42\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" </group>\n",
|
||||
" </transform>\n",
|
||||
"</scene>\n",
|
||||
"<!--End of Inserted Scene-->\n",
|
||||
"\n",
|
||||
" </X3D>\n",
|
||||
" </body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"view(cluster, viewer='x3d')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "736d6d08-930e-4b4f-a3fd-599ef8463035",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"As previously, we create a calculator, we attach our 2 atoms cluster to this calculator and we define the first atom in the chain as the emitter\n",
|
||||
"\n",
|
||||
":::{literalinclude} RhO_sf.py\n",
|
||||
":start-at: calc =\n",
|
||||
":end-at: emitter =\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "21763c63-9bd1-4e80-944a-9cf313894b89",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"We use the `get_scattering_factors` method [(see its documentation)](https://msspec.cnrs.fr/modules/calculator.html#calculator._PED.get_scattering_factors) to compute the scattering factors at 723 eV.\n",
|
||||
"\n",
|
||||
"How large is the backscattering factor of Rhodium with respect to that of Oxygen ?\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "e7da60a3-b4e3-45ec-9d0e-62cb592f0687",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"### Interferences due to backscattering\n",
|
||||
"\n",
|
||||
"Let an Oxygen atom (in red) being adsorbed at a distance $z_0$ of an *fcc* site of the Rh(111) surface."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "68048f33-318d-400e-a815-769660f2b6c5",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"source": [
|
||||
":::{figure-md} Rho-fig2a\n",
|
||||
"<img src=\"RhO_fig2a.jpg\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Small cluster used for the calculation.\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "d6145250-5548-49a6-8b50-0bb7c5b454da",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"We will compute for different values of the adsorption height $z_0$.\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Complete the [script below](RhO_tofill.py \"download\") to compute the ($\\theta,\\phi$) scan of the photodiffraction of O(1s) adsorbed on a *fcc* site on Rh(111) surface.\n",
|
||||
"\n",
|
||||
"```{literalinclude} RhO_tofill.py\n",
|
||||
":lineno-match:\n",
|
||||
":emphasize-lines: 6,8,12,13\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"As proposed in the comments, add a loop to vary the adsorption height of Oxygen between 1.10 and 1.65 Å.\n",
|
||||
"What is the bond length difference between to intensity maxima ?\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,147 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "d053c16f-22ca-44ce-a58d-03e73c1a5554",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"(ssc2ms)=\n",
|
||||
"# Activity 4: From single scattering to multiple scattering\n",
|
||||
"\n",
|
||||
"In the [previous activity](ssc), we saw that simple single scattering calculations (SSC) can be used to simulate photodiffraction diagrams with good accuracy. The approximation works fine when the emitting atom is very close to the surface.\n",
|
||||
"However, the SSC approach is no longer suitable for deeper emitter atoms, where multiple scattering effects come into play. In this activity, we will focus on a major consequence of multiple scattering: *the defocusing effect*.\n",
|
||||
"\n",
|
||||
"The defocusing effect is presented in the [figure below](Ni-fig1) for a chain of nickel atoms. Although purely illustrative, understanding multiple scattering in atomic chains is fundamental because they are found in many situations, such as in particular directions of a crystal or in molecules of various lengths."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "12b10290-0b9b-497a-baba-e7ecb6543788",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
":::{figure-md} Ni-fig1\n",
|
||||
"<img src=\"defocusing_animation.gif\" alt=\"defocusing effect\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"The defocusing effect dur to multiple scattering in an atomic chain of Ni atoms.\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "b1b4c789-e62c-40cc-92a3-053e6a90d315",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"In 1989, M.-L Xu, J.J. Barton and M.A. Van Hove studied these multiple scattering effects on atomic chains ([see their paper below](defocusing-paper)).\n",
|
||||
"In the spirit of figure 3 of their paper, we will create 3 atomic chains of Ni atoms (2, 3 and 5 atoms) tilted by 45° and we will compare the intensity of the forward scattering peak for single scattering and for full multiple scattering."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4988e7d3-2ba3-470f-9676-8116348c30a1",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"(defocusing-paper)=\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from M.-L. Xu *et al.*\n",
|
||||
"[Phys. Rev. B **39** p8275 (1989)](https://doi.org/10.1103/PhysRevB.39.8275) \n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "011ef23b-5a76-410d-8d44-1c4a899e2a23",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"## Polar scans of Ni atomic chains\n",
|
||||
"\n",
|
||||
"### Building a chain of atoms\n",
|
||||
"\n",
|
||||
"Start by creating a simple chain of 2 Ni atoms: an emitter and a scatterer in the [101] direction.\n",
|
||||
"\n",
|
||||
":::{tip}\n",
|
||||
"Nickel is *fcc* with lattice parameter $a$=3.499 Å. Use the [`Atoms`](https://wiki.fysik.dtu.dk/ase/ase/atoms.html#ase.Atoms) class of `ase` like in the [previous activity](ssc)...\n",
|
||||
"\n",
|
||||
":::{admonition} if you need help to start...\n",
|
||||
":class: dropdown\n",
|
||||
"\n",
|
||||
":::{code} python\n",
|
||||
"from msspec.calculator import MSSPEC\n",
|
||||
"from ase import Atoms\n",
|
||||
"\n",
|
||||
"symbol = ... # The kind of atom for the chain\n",
|
||||
"a = ... # The distance bewteen 2 atoms\n",
|
||||
" # in [101] direction\n",
|
||||
"\n",
|
||||
"chain = Atoms(..., positions=[...])\n",
|
||||
"chain.rotate(...)\n",
|
||||
"chain.edit()\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5c57f951-bfa7-435e-8e74-b3de11909768",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Create an `MSSPEC` calculator with `expansion` algortithm and set the `scattering_order`=1 to compute a polar scan of the Ni(3s) in single scattering. How is varying the height of the peak at 45° (along the chain) if you increase the number of atoms in the chain ?\n",
|
||||
"\n",
|
||||
"Repeat the same experiment with `inversion` algorithm for having the full multiple scattering result. What do you observe ?\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,842 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ff0fc2d9-b53e-4d29-883b-6d6303d76eb2",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"(forward-scattering)=\n",
|
||||
"# 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} <i class=\"fa-solid fa-circle-question\"></i> 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-TiSe<sub>2</sub> 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-TiSe<sub>2</sub>.\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-TiSe<sub>2</sub> 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",
|
||||
"<img src=\"TiSe2_cell.jpg\" alt=\"TiSe2\" width=\"300px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Structure of 1T-TiSe<sub>2</sub> ($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} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Complete the code snipet provided below (or [here](TiSe2_1_tofill.py \"download\")) 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",
|
||||
":lines: 1-29\n",
|
||||
":linenos:\n",
|
||||
":emphasize-lines: 7,11,15,26 \n",
|
||||
"```\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "b65b569e-242b-4fe9-9c87-ea90d80d9b44",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": [
|
||||
"remove-input"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<html>\n",
|
||||
" <head>\n",
|
||||
" <title>ASE atomic visualization</title>\n",
|
||||
" <link rel=\"stylesheet\" type=\"text/css\" href=\"https://www.x3dom.org/release/x3dom.css\"></link>\n",
|
||||
" <script type=\"text/javascript\" src=\"https://www.x3dom.org/release/x3dom.js\"></script>\n",
|
||||
" </head>\n",
|
||||
" <body>\n",
|
||||
" <X3D width=\"400px\"; height=\"300px\";>\n",
|
||||
"\n",
|
||||
"<!--Inserting Generated X3D Scene-->\n",
|
||||
"<scene>\n",
|
||||
" <viewpoint position=\"0 0 28.28000000000003\">\n",
|
||||
" <group/>\n",
|
||||
" </viewpoint>\n",
|
||||
" <transform translation=\"-0.8837500000000003 -2.220446049250313e-16 -3.002\">\n",
|
||||
" <group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 1.7675000000000005 3.0613998023779905 0.0 -1.7674999999999996 3.061399802377991 0.0 -3.535 4.440892098500626e-16 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 6.004\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 1.7675000000000005 3.0613998023779905 0.0 -1.7674999999999996 3.061399802377991 0.0 -3.535 4.440892098500626e-16 0.0 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0 0 0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 1.7675000000000005 3.0613998023779905 0.0 1.7675000000000005 3.0613998023779905 6.004 0.0 0.0 6.004 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.535 4.440892098500626e-16 0.0\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0 0 0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <lineset vertexCount=\"5\">\n",
|
||||
" <coordinate point=\"0 0 0 1.7675000000000005 3.0613998023779905 0.0 1.7675000000000005 3.0613998023779905 6.004 0.0 0.0 6.004 0 0 0\"/>\n",
|
||||
" </lineset>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" <group>\n",
|
||||
" <transform translation=\"1.767499999999984 -7.143266205548649 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 -7.143266205548649 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 -6.122799604755983 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 -4.0818664031706575 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.767499999999984 -5.102333003963317 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -4.0818664031706575 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -6.122799604755983 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -4.0818664031706575 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 -5.102333003963317 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 -6.122799604755983 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 -4.0818664031706575 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.302499999999995 -3.0613998023779914 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.302499999999995 -1.0204666007926662 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 -2.040933201585325 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.767499999999984 -1.0204666007926662 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.767499999999984 -3.0613998023779914 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.767499999999984 -1.0204666007926662 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 -2.040933201585325 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 -1.0204666007926662 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 -3.0613998023779914 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 -1.0204666007926662 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 -2.040933201585325 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-5.302500000000009 -3.0613998023779914 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-5.302500000000009 -1.0204666007926662 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.069999999999993 0.0 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"7.069999999999993 2.040933201585325 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.302499999999995 1.020466600792666 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 2.040933201585325 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 0.0 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 2.040933201585325 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.767499999999984 1.020466600792666 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 -6.004\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 2.040933201585325 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 0.0 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 2.040933201585325 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7675000000000125 1.020466600792666 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 2.040933201585325 -4.279000000000005\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 0.0 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 2.040933201585325 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-5.302500000000009 1.020466600792666 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-7.070000000000022 0.0 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-7.070000000000022 2.040933201585325 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.302499999999995 3.0613998023779985 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"5.302499999999995 5.102333003963331 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 4.0818664031706575 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.7674999999999983 3.0613998023779985 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"1.7674999999999983 5.102333003963331 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 4.0818664031706575 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7674999999999983 3.0613998023779985 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-1.7674999999999983 5.102333003963331 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.5349999999999966 4.0818664031706575 -1.7249999999999894\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-5.302500000000009 3.0613998023779985 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-5.302500000000009 5.102333003963331 1.724999999999999\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"1.0 0.631 0.0\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.2\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"3.5349999999999966 6.12279960475599 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"0.0 6.12279960475599 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" <transform translation=\"-3.535000000000011 6.12279960475599 4.6629367034256575e-15\">\n",
|
||||
" <shape>\n",
|
||||
" <appearance>\n",
|
||||
" <material diffuseColor=\"0.749 0.761 0.78\"/>\n",
|
||||
" </appearance>\n",
|
||||
" <sphere radius=\"1.6\"/>\n",
|
||||
" </shape>\n",
|
||||
" </transform>\n",
|
||||
" </group>\n",
|
||||
" </group>\n",
|
||||
" </transform>\n",
|
||||
"</scene>\n",
|
||||
"<!--End of Inserted Scene-->\n",
|
||||
"\n",
|
||||
" </X3D>\n",
|
||||
" </body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"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)\n",
|
||||
"view(cluster, viewer='x3d')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3b029e1b-6871-42ac-9cdd-65c583404e3d",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"### Effect of the scattering order\n",
|
||||
"\n",
|
||||
"Use the line belows to create a calculator and compute a $\\theta$-$\\phi$ scan of the Ti(2p)\n",
|
||||
"\n",
|
||||
"```{literalinclude} TiSe2_1_tofill.py\n",
|
||||
" :start-at: Create a\n",
|
||||
"```"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "8169ad09-36b4-4f0a-b737-378e2f78b3df",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Compute a scan for an emitter in the first trilayer and in the second trilayer for scattering orders from 1 (single scattering) to 3 in order to complete the figure below.\n",
|
||||
"What do you conclude about the value of the `calc.calculation_parameters.scattering_order` ?\n",
|
||||
"\n",
|
||||
"```{figure-md} results-fig\n",
|
||||
"<img src=\"results.jpg\" width=\"400px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"$\\theta$-$\\phi$ scan of Ti(2p) at 1030 eV kinetic energy for an emitter in the first trilayer (left column) and in the second trilayer (right column). Each row correspond to a growing value for the `calc.calculation_parameters.scattering_order` parameter (from 1 to 5).\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c0a860db-0f72-4785-81f4-831e48b3a49f",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"# Activity 6: Effect of the temperature\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"## Surface and bulk effects of the temperature\n",
|
||||
"\n",
|
||||
"In this example, we will look at the effects of the temperature on the X-Ray photoelectron diffraction from a copper substrate. We will base our python script on a paper published in 1986 by R. Trehan and S. Fadley. In their work, they performed azimutal scans of a copper(001) surface at 2 different polar angles: one at grazing incidence and one at 45° for incresing temperatures from 298K to roughly 1000K.\n",
|
||||
"\n",
|
||||
"For each azimutal scan, they looked at the anisotropy of the signal, that is:\n",
|
||||
"\n",
|
||||
"```{math}\n",
|
||||
":label: eq-anisotropy\n",
|
||||
"\\frac{I_{max} - I_{min}}{I_{max}}=\\frac{\\Delta I}{I_{max}}\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"This value is representative of how clear are the *modulations* of the signal. They also proposed single scattering calculations that reproduced well these results.\n",
|
||||
"\n",
|
||||
"We will reproduce this kind of calculations to introduce the parameters that control the vibrational damping.\n",
|
||||
"\n",
|
||||
"(msd-paper)=\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from R. Trehan and C.S. Fadley\n",
|
||||
"[Phys. Rev. B **34** p6784–98 (2012)](https://doi.org/10.1103/PhysRevB.34.6784)\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"### The script\n",
|
||||
"\n",
|
||||
"Since we want to distinguish between bulk (low polar angles, $\\theta = 45°$ in the paper) and surface effects (large polar angles, $\\theta = 83°$ in the paper), we need to compute scans for different emitters and different depths in the cluster.\n",
|
||||
"\n",
|
||||
"The script contains 3 functions:\n",
|
||||
"1. The `create_clusters` function will build clusters with increasing number of planes, with the emitter being in the deepest plane for each cluster.\n",
|
||||
"2. The function `compute` will compute the azimuthal scan for a given cluster.\n",
|
||||
"3. The `analysis` function will sum the intensity from each plane for a given temperature. This will be the *substrate total signal* (more on this in the {ref}`path-filtering` section). The function will also compute the anisotropy (equation {eq}`eq-anisotropy`).\n",
|
||||
"\n",
|
||||
"MsSpec can introduce temperature effects in two ways: either by using the Debye Waller model or by doing an average over the phase shifts. We will explore the latter in this example.\n",
|
||||
"\n",
|
||||
"Regardless of the option chosen to model temperature effects, we need to define mean square displacement (MSD) values of the atoms in our cluster. We will use the Debye model for this. The MSD is defined as follows:\n",
|
||||
"\n",
|
||||
":::{math}\n",
|
||||
":label: eq-debye\n",
|
||||
"<U_j^2(T)> = \\frac{3\\hbar^2 T}{M K_B \\Theta_D^2}\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"where $\\hbar$ is the reduce Planck's constant, $T$ is the temperature, $M$ is the mass of the atom, $k_B$ is the Boltzmann's constant and $\\Theta_D$ is the Debye temperature of the sample.\n",
|
||||
"\n",
|
||||
"To get an idea of the typical order of magnitude for MSD, the figure below plots the values of MSD for copper for temperatures ranging from 300 K to 1000 K.\n",
|
||||
"\n",
|
||||
":::{figure-md} msd-fig\n",
|
||||
"<img src=\"msd.jpg\" alt=\"Cu MSD\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Variation of MSD for copper versus temperature using equation {eq}`eq-debye`\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "69b8c17d-ab66-4092-a492-005f05d80495",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"With the help of the [MsSpec documentation](https://msspec.cnrs.fr/parameters.html) and the second paragraph p6791 of the [article cited above](#msd-paper),\n",
|
||||
"complete the hilighted lines in the [following script](Cu_temperature.py \"download\") to compute the anisotropy of Cu(2p) $\\phi$-scans for polar angle $\\theta$=45° and 83°.\n",
|
||||
"\n",
|
||||
"How is varying the anisotropy versus the temperature. How can you qualitatively explain this variation ?\n",
|
||||
"\n",
|
||||
"```{literalinclude} Cu_temperature.py\n",
|
||||
":lineno-match:\n",
|
||||
":emphasize-lines: 40-41,44-48\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,171 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "42cfa8b1-20d2-47e4-a1f0-161c4517df2c",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"(path-filtering)=\n",
|
||||
"# Activity 7: Large clusters and path filtering"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2f802e59-3ebc-4c5d-a034-42a706044d87",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"So far you have seen that multiple scattering calculations with MsSpec can use two different algorithms: *matrix inversion* or *Rehr Albers series expansion*. When matrix inversion becomes impossible because the kinetic energy is too high and the number of atoms is too large, serial expansion is the alternative. This algorithm requires very little memory but it processes the scattering paths sequentially, which can lead to very long calculation times.\n",
|
||||
"\n",
|
||||
"In this activity, we will explore how to configure MsSpec to reduce this calculation time to compute the signal from a deep emitter in Si(001).\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2a2f7c01-3a7e-46d4-90aa-6ba2eada6337",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## The number of scattering paths\n",
|
||||
"\n",
|
||||
"To fix the idea, we will first evaluate how many scattering paths we need to compute for an emitter in the subsurface (2{sup}`nd` plane) or in the bulk (7{sup}`th` plane) of a Si(001) cluster."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "0f78af28-335e-4f6b-9b98-929f9e6965f8",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Create a cluster of Si(001) with the emitter in the subsurface, 40 Å diameter with 2 planes (since atoms below the emitter can be ignored at high kinetic energies).\n",
|
||||
"\n",
|
||||
"1. For an emitter in the subsurface, we can use single scattering (see {ref}`forward-scattering`). How many paths would be generated for this calculation ?\n",
|
||||
"\n",
|
||||
"2. Same question for an emitter in the 7{sup}`th` plane. If we were able to treat each scattering path within only 1 µs. How long would be such calculation ?\n",
|
||||
"\n",
|
||||
"```{note}\n",
|
||||
"Remember that \n",
|
||||
"1. for an emitter in plane $p$, the scattering order has to be at least the number of planes `above` the emitter\n",
|
||||
"2. The number of scattering paths of order $n$ corresponds to the number of possibilities of arranging up to $n$ atoms (taking order into account).\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5de975f5-8f3d-432e-bfcc-8455bc50a862",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"## Paths filtering in MsSpec\n",
|
||||
"\n",
|
||||
"As you may expect, not all paths contribute significantly to the total intensity. This is why we can filter out some scattering paths and drastically reduce the computation time. MsSpec offers several filters for this. The 3 most common filters are:\n",
|
||||
"1. the `forward_scattering` filter which allows all paths where each scattering angle is within a cone of defined aperture\n",
|
||||
"2. the `backward_scattering` filter which is similar to the previous one but for backscattering direction\n",
|
||||
"3. the `distance` filter which rejects all paths longer than a threshold distance\n",
|
||||
"\n",
|
||||
"The following figure illustrate the effect of theses filters on scattering paths\n",
|
||||
"\n",
|
||||
":::{figure-md} filters-fig\n",
|
||||
"<img src=\"filters.jpg\" alt=\"path filtering\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Some examples of scattering paths with `forward_scattering`, `backward_scattering` and `distance` filters selected. The accepted forward angle is 45°, the accepted backscattering angle is 20° and the threshold distance is $6a_0$ where $a_0$ is the lattice parameter. Note that the yellow path is rejected but if the `off_cone_events` option is set to a value > 1, then it could have been accepted.\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "28aae2f7-2af9-4630-b89d-ab634725ad79",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"## Application to a deep plane in a Si(001) sample\n",
|
||||
"\n",
|
||||
"The following script will compute the contribution of a Si(2p) atom in the 4{sup}`th` plane of a Si(001) cluster at scattering order 3.\n",
|
||||
"\n",
|
||||
"Taking into account all scattering paths took 15 minutes to compute.\n",
|
||||
"\n",
|
||||
"(msd-paper)=\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from S. Tricot *et al.*\n",
|
||||
"[J. Electron. Spectrosc. Relat. Phenom. **256** 147176 (2022)](https://doi.org/10.1016/j.elspec.2022.147176)\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"\n",
|
||||
"The [following script](Si001.py \"download\") is almost completed, try to define path filtering options (no backscattering, accept all paths with forward angles < 40° and reject paths longer than the diameter of the cluster).\n",
|
||||
"\n",
|
||||
"```{literalinclude} Si001.py\n",
|
||||
":lineno-match:\n",
|
||||
":emphasize-lines: 37-41\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"1. How long was your calculation ?\n",
|
||||
"2. How does it compare to the calculation with **all** scattering paths up to order 3 ?\n",
|
||||
"3. What is the proportion of scattering paths of order 3 that were actually taken into account ?\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,147 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2ff5929f-c066-496f-b078-0bbc2ab49428",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"# Activity 8: Inequivalent emitters and the XPD of a substrate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "394b0c02-f28e-4074-86e5-9dfdf0447adb",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"XPD can be used to study the adsorption of atoms or molecules on surfaces ([Activity 3](#ssc)), or atomic substitutions on surfaces ([Activity 2](#exp-setup)). In this case, modeling is relatively straightforward, since only one emitter atom is involved.\n",
|
||||
"\n",
|
||||
"We have seen from previous examples that, for kinetic energies $\\gtrsim$ 500 eV, the use of Rehr-Albers series expansion and scattering path filtering give access to the intensity of deeper emitter atoms ([Activity 7](#path-filtering)).\n",
|
||||
"This is the key to computing the total photodiffraction signal of a *substrate*. As emitted photoelectrons originate from highly localized core levels around the atoms, the total signal corresponds to the (incoherent) sum of the intensities of all inequivalent emitters in the probed volume.\n",
|
||||
"\n",
|
||||
"Let's take a look at how this is done on the following example. \n",
|
||||
"\n",
|
||||
"\n",
|
||||
"## The Aluminium Nitride (AlN) polarity\n",
|
||||
"\n",
|
||||
"In this example, we will compute polar diagrams of an aluminum nitride substrate.\n",
|
||||
"\n",
|
||||
"In a work published in 1999, Lebedev *et al.* demonstrated that Photoelectron diffraction can be used as a non invasive tool to unambiguously state the polarity of an AlN surface. Aluminium nitride cristallizes in an hexagonal cell and the authors experimentally showed that the polarity of the surface can be controlled by the annealing temperature during the growth. Both polarities are sketched in the [figure](#AlN-fig1) below.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "5a4036dc-d087-419f-9a44-749a8b313d5c",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"(aln-paper)=\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from V. Lebedev *et al.*\n",
|
||||
"[J. Cryst. Growth. **207(4)** p266-72 (1999)](https://doi.org/10.1016/S0022-0248(99)00375-9)\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "fc1cf08e-77ba-49ea-99a9-8a7bac7c98c7",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
":::{figure-md} AlN-fig1\n",
|
||||
"<img src=\"AlN-fig1.jpg\" alt=\"AlN crystal direction\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"AlN hexagonal lattice. Left) N polarity with nitrogen terminated surface and AlN{sub}`4` tetrahedrons pointing downward. Right) Al polarity with aluminium terminated surface and AlN{sub}`4` tetrahedrons pointing upward\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "fc180c7b-eb23-47c6-8d18-e092bc777843",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"The AlN(0001) and (00.-1) faces share the same crystallograpphic symmetry and the Al and N atoms have the same geometrical surrounding differing only in the exchange of Al and N atoms ({numref}`Fig. %s <AlN-fig2>`).\n",
|
||||
"\n",
|
||||
"It is thus expected that Al(2p) and N(1s) XPD patterns exhibit almost the same features with only small differences due to the contrast between Al and N scattering amplitudes.\n",
|
||||
"\n",
|
||||
":::{figure-md} AlN-fig2\n",
|
||||
"<img src=\"AlN-fig2.jpg\" alt=\"AlN crystal direction\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Side views of N- or Al- terminated surfaces showing nearest neighbours main polar crystallographic directions. The inset shows the experimental Al(2p)/N(1s) ratio versus polar angle for both AlN polarities (taken from [Lebedev *et al.*](#aln-paper)).\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"The strongest differences in photoemission intensities suitable for a quick and unambiguous determination of polarity were found in the (10-10) azimuthal plane at **32°** and **59°** (polar scans in the inset of {numref}`Fig. %s <AlN-fig2>`).\n",
|
||||
"\n",
|
||||
"These are the directions of short neighbor distances between the atoms of the same element (32°) and between Al and N atoms (58.5°), respectively.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "86c20245-abca-4587-bccf-90e0fb09f73c",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Using the crystal view in {numref}`Fig. %s <AlN-fig1>` and assuming that we want to compute Al(2p) and N(1s) intensities for emitters located in 3 different planes to get a *substrate* signal. How many clusters do we need to build ? \n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "82973b9c-bf0c-462a-8114-17ac1e83b799",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Download [this script](AlN.py) and fill in the lines indicated by the comments “FILL HERE”. Run the calculation and check that you are reproducing polar scan of {numref}`Fig. %s <AlN-fig2>`.\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,150 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "aa43e0e7-0c18-4750-9e2b-3a48f106d2ca",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"(RFactor)=\n",
|
||||
"# Activity 9: Comparing simulation and experiment with R-factors\n",
|
||||
"In order to extract precise crystallographic information from electronic spectroscopy, we need to compare MsSpec calculations with experimental results and adjust the modelling parameters to simulate the experiment as accurately as possible.\n",
|
||||
"\n",
|
||||
"*R-factors* (reliability factors) are commonly used for this task. In the following example, we will see how MsSpec can extract the adsorption geometry of a molecule.\n",
|
||||
"\n",
|
||||
"## The unusual tilt of CO molecule on Fe(001)\n",
|
||||
"The carbon monoxide molecule can be adsorbed onto a Fe(001) surface in the hollow site. It was experimentally demonstrated that the CO molecule is tilted by 55$\\pm$2° in <100> azimuthal directions. The molecule is bonded to the Fe surface by the carbon atom and the adsorption height was estimated to be $\\sim$ 0.6 Å.\n",
|
||||
"\n",
|
||||
"(COFe-paper)=\n",
|
||||
":::{seealso}\n",
|
||||
"based on this paper from R. S. Saiki *et al.*\n",
|
||||
"[Phys. Rev. Lett. **63(3)** p283-6 (1989)](https://doi.org/10.1103/PhysRevLett.63.283)\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"We will try to reproduce the polar scan of the figure below of CO adsorbed in the hollow site of the Fe(001) surface with simple single scattering calculations with MsSpec and by using R-Factors to find the best adsorption geometry. We will use the simple cluster displayed on the left hand side of the figure.\n",
|
||||
"\n",
|
||||
":::{figure-md} COFe-fig1\n",
|
||||
"<img src=\"COFe_fig1.jpg\" alt=\"\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Small cluster used for SSC calculations (left) and (right) Normalized polar scan of the C(1s) at 1202 eV for [100] and [1-10] azimths.\n",
|
||||
":::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "91c03801-b46b-4844-8c89-655700419063",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"Download [this script](./COFe.py) and write the body of the function `create_cluster`. The function should return a \n",
|
||||
"small cluster of 5 Fe atoms with the CO molecule adsorbed like in figure {numref}`Fig. %s <COFe-fig2>` below. The function\n",
|
||||
"will accept 4 keyword arguments to control the adsorption geometry.\n",
|
||||
"\n",
|
||||
"```{figure-md} COFe-fig2\n",
|
||||
"<img src=\"COFe_fig2.jpg\" alt=\"CO-Fe adsorption geometry\" width=\"600px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"Adsorption geometry of carbon monoxide on Fe(001).\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"```{note}\n",
|
||||
"Remember to use the [`ase.build.bulk`](https://wiki.fysik.dtu.dk/ase/ase/build/build.html#ase.build.bulk), the [`msspec.utils.hemispherical_cluster`](https://msspec.cnrs.fr/faq/hemispherical_cluster/hemispherical_cluster.html#hemispherical-cluster-faq) and the [`ase.build.add_adsorbate`](https://wiki.fysik.dtu.dk/ase/ase/build/surface.html#ase.build.add_adsorbate) \n",
|
||||
"functions.\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "c7697c4f-949b-4261-abaf-96eefaa9a6ba",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"Now that the `create_cluster` function is done, look at the rest of the script. The next function is called `compute_polar_scan` and will obviously be used to compute the $\\theta$-scan of the C1s for a given cluster geometry.\n",
|
||||
"Finally there is the *Main part* that is built in two sections:\n",
|
||||
"\n",
|
||||
"1. A section containing nested *for loops*\n",
|
||||
"2. A final section for *R-Factor analysis*\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"1. Complete the nested for loops in section 1) in order to compute polar scans for CO molecule tilted from 45° to 60° with a 1° step and aligned either along the [100] direction of Fe, 30° from this direction or along [110]. The adsorption height is 0.6 Å and the bond length is 1.157 Å.\n",
|
||||
"2. What is the best $(\\theta, \\phi)$ according to the R-Factor analysis\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f7827b3c-0cac-42e2-a587-8b30ee3632b4",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"MsSpec uses 12 different R-Factors formula to compare the calculted curve to the experimental data. The set of parameters giving the best agreement according to the majority of those 12 R-factors is assumed to be the best solution. Here are the R-factors formula used in MsSpec\n",
|
||||
"\n",
|
||||
":::{figure-md} rfactors-formula\n",
|
||||
"<img src=\"formula.jpg\" alt=\"R-Factor result\" width=\"800px\" align=\"center\">\n",
|
||||
"\n",
|
||||
"The 12 R-Factors used in MsSpec. The Pendry's R-Factor is n°11.\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"How many R-Factors do agree that $(\\theta,\\phi)=(55,0)$ gives the best agreement ?\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "38d3e621-e866-43e1-9c92-f473d1e755c0",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"# Activity 10: Parallelization and multi-processing in MsSpec"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1dccb5e3-1cd3-4732-a7ba-81a8a94c89dc",
|
||||
"metadata": {
|
||||
"editable": true,
|
||||
"slideshow": {
|
||||
"slide_type": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"source": [
|
||||
"As you can see from the previous examples, a complete simulation may require several multiple scattering calculations, for instance to calculate the total intensity of a substrate or to optimize the geometry of a system. As the calculations are often time consuming, it can be useful to distribute these tasks over several processors to make the most of hardware resources.\n",
|
||||
"Although MsSpec is not fully parallelized, the code does offer a number of features, which we will explore here.\n",
|
||||
"\n",
|
||||
"## Matrix inversion parallelization\n",
|
||||
"\n",
|
||||
"When available during installation, MsSpec will link with the system lapack library. It will be used to invert the matrix in the `inversion` option of the MsSpec `calculator`. To allow MsSpec to use this shared memory parallelism, you need to set the number of cores to be used in the `OMP_NUM_THREADS` environment variable.\n",
|
||||
"\n",
|
||||
"You can set this variable just for the execution of your script. For example:\n",
|
||||
"\n",
|
||||
"```sh\n",
|
||||
"$ OMP_NUM_THREADS=12 python my_script.py\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"will use 12 cores for inverting the matrix in your script.\n",
|
||||
"\n",
|
||||
"It is also possible to set environment variable inside your python script.\n",
|
||||
"\n",
|
||||
"```python\n",
|
||||
"import os\n",
|
||||
"\n",
|
||||
"os.environ['OMP_NUM_THREADS'] = 12\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"It may be useful for technical reasons or to use different number of cores in some parts of your script.\n",
|
||||
"\n",
|
||||
"## Process-based parallelism\n",
|
||||
"\n",
|
||||
"Another kind of parallelization used in MsSpec is multiprocessing. Quite often, you need to run different *independent* calculations. MsSpec provides a simple *looper* that can be useful for multiprocessing. Let's demonstrate it with the previous example CO/Fe(001).\n",
|
||||
"\n",
|
||||
"[This script](COFe_mp.py) is the multiprocessed version of the previous one. You can see that the previous nested for loops are now replaced by some declarative content (lines 63-67) and the definition of a `process` function (whose name \n",
|
||||
"can be changed).\n",
|
||||
"\n",
|
||||
"With the `msspec.looper` package, the user define `Sweep` objects that are parameters of the calculation or of the cluster. The `process` function must accept as many arguments as parameters to sweep (+ the `**kwargs`).\n",
|
||||
"\n",
|
||||
"A `Looper` object is created (line 76) and the `process` function is set to its `pipeline` attribute (line 77). When MsSpec will run the `looper`, it will combine all parameters values to unique individual sets and MsSpec will distribute the calculations over the number of processors specified in the `ncpu` option.\n",
|
||||
"\n",
|
||||
":::{literalinclude} COFe_mp.py\n",
|
||||
":lineno-start: 63\n",
|
||||
":linenos: true\n",
|
||||
":lines: 63-84\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"::::{tab-set}\n",
|
||||
"\n",
|
||||
":::{tab-item} <i class=\"fa-solid fa-circle-question\"></i> Quiz\n",
|
||||
"In the paper discussed in {ref}`RFactor`, experimental values of the anisotropy suggest an adsorption height between 0.2 and 0.6 Å. Modify the script to add another sweep for variying the adsorption height of the CO molecule.\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"::::"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# Table of contents
|
||||
# Learn more at https://jupyterbook.org/customize/toc.html
|
||||
|
||||
format: jb-book
|
||||
root: intro
|
||||
chapters:
|
||||
- file: Activity01/Activity01_light
|
||||
- file: Activity02/Activity02_light
|
||||
- file: Activity03/Activity03_light
|
||||
- file: Activity04/Activity04_light
|
||||
- file: Activity05/Activity05_light
|
||||
- file: Activity06/Activity06_light
|
||||
- file: Activity07/Activity07_light
|
||||
- file: Activity08/Activity08_light
|
||||
- file: Activity09/Activity09_light
|
||||
- file: Activity10/Activity10_light
|
Loading…
Reference in New Issue