Skip to content

Commit

Permalink
docs on complexes + periodic image
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed Dec 11, 2023
1 parent 1d39ec2 commit 06a30a1
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions docs/source/content/defining-defects.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The `defect_structure` for each complex is shown blow.\n",
"The `defect_structure` for each complex is shown below.\n",
"\n",
"<img src=\"https://raw.githubusercontent.com/materialsproject/pymatgen-analysis-defects/main/docs/source/_static/img/defect_complex_equiv.png\" width=\"800\"/>\n",
"\n",
"By inspection it is clear that `def_comp0` and `def_comp2` are symmetrically equivalent to each other and distinct from `def_comp1`, and our basic implementation of defect equivalence is able to verify this:\n"
"By inspection, `def_comp0` and `def_comp2` appear symmetrically equivalent to each other at first and distinct from `def_comp1`.\n",
"However, there are two distinct Mg_Ga+V_N complexes in the structure:\n",
"\n",
"- One where the two parts of the defect complex are nearest neighbors (`def_comp0`).\n",
"- One where the two defects are next-nearest neighbors (`def_comp2`).\n",
"\n",
"Since our defect complex definition accounts for an effective _Center of Mass_ site, we can properly account for periodic boundary conditions. the two defect complexes will be considered not equal."
]
},
{
Expand All @@ -172,21 +178,10 @@
"metadata": {},
"outputs": [],
"source": [
"assert def_comp0 == def_comp2\n",
"assert def_comp0 != def_comp2\n",
"assert def_comp0 != def_comp1"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"However some defect complexes might become nonequivalent based on the periodic image you consider for the combination of sites.\n",
"\n",
"<div class=\"alert alert-block alert-info\"><b>Note:</b> To deal with these edge cases, we might have to add a dummy \"DefectComplex\" species at the \"center\" of the defect complex which will fix the selection of periodic for the different sites. This is easy to implement but should be done when there is a good test case.\n",
"</div>\n"
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand Down Expand Up @@ -245,12 +240,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:38:29) [Clang 13.0.1 ]"
},
"vscode": {
"interpreter": {
"hash": "68485e4e4f6ba0276341f7d764a6dd3a7d31473cb629faa542bbbd38a80276a6"
}
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 06a30a1

Please sign in to comment.