From e7853194db80299d83a103ba24ca445f3e583b03 Mon Sep 17 00:00:00 2001 From: Kane Shenton Date: Wed, 18 Sep 2024 12:28:41 +0100 Subject: [PATCH 1/2] A few extra cif2cell tips --- docs/workshop/08_cif2cell.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/workshop/08_cif2cell.md b/docs/workshop/08_cif2cell.md index cbb17a4..7878c1c 100644 --- a/docs/workshop/08_cif2cell.md +++ b/docs/workshop/08_cif2cell.md @@ -1,14 +1,29 @@ We will use cif to cell to generate cell files from cif files. Cif files can be obtained from the ICSD (inorganic crystals) or the CSD (molecular crystals). -'''MgO''' -Examine the [file](http://www.castep.org/files/MgO.cif). Look at the crystal structure with jmol or magresview (drag and drop the file onto the magresview window). You will see a cubic face-centre cubic cell. How many atoms in the cell? +## MgO + +Examine the [file](http://www.castep.org/files/MgO.cif). Look at the crystal structure with jmol or [magresview](https://ccp-nc.github.io/magresview-2/) (drag and drop the file onto the magresview window). You will see a cubic face-centre cubic cell. How many atoms in the cell? Use cif2cell to convert this cif file to a cell file. + ``` cif2cell MgO.cif --program=castep -o MgO.cell ``` + Look at the cell file. How many atoms in the cell? View this will jmol or magresview. Do you understand what cif2cell has done? -'''Molecular Tweezers''' +To obtain the conventional unit cell, use the --no-reduce option when running `cif2cell`. Note that `cif2cell` assumes that values such as 0.333333 mean ⅓, and silently corrects the decimal so it corresponds to the machine-precision representation of the fraction, e.g. 0.33333333333, which may not be correct. + +Using the `--export-cif-labels` option ensures that any site labels in the .cif file are used in the .cell file and thereby also in the .castep and .magres files. This is extremely useful for keeping track of equivalent/special sites. For example, you might do: + +``` +cif2cell --export-cif-labels .cif -p castep -o .cell +``` + +A note that some versions of cif2cell use the tag `ID` in the generated .cell file, which is not recognised by CASTEP. In this case, the tag should be changed to `LABEL`. + + + +## Molecular Tweezers Examine the [file](http://www.castep.org/files/GUQHUV.cif) From 63e703cf6f3a44e4e35681957af86ed747d29f5e Mon Sep 17 00:00:00 2001 From: Kane Shenton Date: Wed, 18 Sep 2024 12:42:33 +0100 Subject: [PATCH 2/2] links to ICSD and CSD --- docs/workshop/08_cif2cell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/workshop/08_cif2cell.md b/docs/workshop/08_cif2cell.md index 7878c1c..c733a5c 100644 --- a/docs/workshop/08_cif2cell.md +++ b/docs/workshop/08_cif2cell.md @@ -1,4 +1,4 @@ -We will use cif to cell to generate cell files from cif files. Cif files can be obtained from the ICSD (inorganic crystals) or the CSD (molecular crystals). +We will use cif to cell to generate cell files from cif files. Cif files can be obtained from the [ICSD](https://www.psds.ac.uk/) (inorganic crystals) or the [CSD](https://www.ccdc.cam.ac.uk/structures/) (molecular crystals). ## MgO