-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
788 additions
and
989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
docs/toolbox/siesta/generated/sisl_toolbox.siesta.atom.AtomInput.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
sisl\_toolbox.siesta.atom.AtomInput | ||
=================================== | ||
|
||
.. currentmodule:: sisl_toolbox.siesta.atom | ||
|
||
.. autoclass:: AtomInput | ||
|
||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
|
||
|
||
~AtomInput.ae | ||
|
||
|
||
~AtomInput.excite | ||
|
||
|
||
~AtomInput.from_input | ||
|
||
|
||
~AtomInput.from_yaml | ||
|
||
|
||
~AtomInput.pg | ||
|
||
|
||
~AtomInput.plot | ||
|
||
|
||
~AtomInput.write_all_electron | ||
|
||
|
||
~AtomInput.write_generation | ||
|
||
|
||
~AtomInput.write_header | ||
|
||
|
||
~AtomInput.write_test | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
6 changes: 6 additions & 0 deletions
6
.../toolbox/transiesta/generated/sisl_toolbox.transiesta.poisson.solve_poisson.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
solve_poisson | ||
============================================= | ||
|
||
.. currentmodule:: sisl_toolbox.transiesta.poisson | ||
|
||
.. autofunction:: solve_poisson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"tags": [ | ||
"notebook-header" | ||
] | ||
}, | ||
"source": [ | ||
"[![GitHub issues by-label](https://img.shields.io/github/issues-raw/pfebrer/sisl/SitesPlot?style=for-the-badge)](https://github.com/pfebrer/sisl/labels/SitesPlot)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
" \n", | ||
" \n", | ||
"SitesPlot\n", | ||
"=========\n", | ||
"\n", | ||
"The `SitesPlot` is simply an adaptation of `GeometryPlot`'s machinery to any class that can be represented as sites in space. The main difference is that it doesn't show bonds, and also inputs with the word `atoms` are renamed to `sites`. Therefore, see `GeometryPlot`'s showcase notebook to understand the full customization possibilities.\n", | ||
"\n", | ||
"We are just going to show how you can plot the k points of a `BrillouinZone` object with it." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import sisl\n", | ||
"import sisl.viz\n", | ||
"import numpy as np" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Let's create a circle of K points:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"g = sisl.geom.graphene()\n", | ||
"\n", | ||
"# Create the circle\n", | ||
"bz = sisl.BrillouinZone.param_circle(\n", | ||
" g,\n", | ||
" kR=0.0085,\n", | ||
" origin= [0.0, 0.0, 0.0],\n", | ||
" normal= [0.0, 0.0, 1.0],\n", | ||
" N_or_dk=25,\n", | ||
" loop=True)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"And then generate some fake vectorial data for it:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"data = np.zeros((len(bz), 3))\n", | ||
"\n", | ||
"data[:, 0] = - bz.k[:, 1]\n", | ||
"data[:, 1] = bz.k[:, 0]" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"And now plot the k points, showing the vectorial data as arrows:" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"# Plot k points as sites\n", | ||
"bz.plot.sites(\n", | ||
" axes=\"xy\", drawing_mode=\"line\", sites_style={\"color\": \"black\", \"size\": 2},\n", | ||
" arrows={\"data\": data, \"color\": \"red\", \"width\": 3, \"name\": \"Force\"}\n", | ||
")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"-----\n", | ||
"This next cell is just to create the thumbnail for the notebook in the docs " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"tags": [ | ||
"nbsphinx-thumbnail" | ||
] | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"thumbnail_plot = _\n", | ||
"\n", | ||
"if thumbnail_plot:\n", | ||
" thumbnail_plot.show(\"png\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"tags": [ | ||
"notebook-footer" | ||
] | ||
}, | ||
"source": [ | ||
"-------------" | ||
] | ||
} | ||
], | ||
"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.8.15" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.