Name | atorvi JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | Package for visualizing atomic orbitals |
upload_time | 2024-10-24 15:37:52 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.6 |
license | MIT |
keywords |
atomic orbitals
visualization
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# atorvi - ATomic ORbitals VIsualization
![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)
**atorvi** is a Python package for visualizing individual atomic orbitals and their various linear combinations. The library generates requested atomic orbitals on a 3D mesh and exports them, along with the inputted crystal structure (molecule or periodic crystal), into a file in [XCrysDen .xsf format](http://www.xcrysden.org/doc/XSF.html).
The resulting `.xsf` file can be opened and visualized using your favorite visualization software, such as [XCrysDen](http://www.xcrysden.org/), [VESTA](https://jp-minerals.org/vesta/en/) or [VMD](https://www.ks.uiuc.edu/Research/vmd/).
## Installation
To install **atorvi**, you can use `pip`:
```bash
pip install atorvi
```
## Features
- **Atomic Orbitals Generation**: Create atomic orbitals at a specific position in space or at a designated atom/element within a crystal structure.
- **Flexible Structure Input**: Input crystal structures either manually, atom-by-atom, or directly from standard file formats such as POSCAR, XSF, CIF, and more. The integration with the `pymatgen` package simplifies structure handling.
- **Orbital Hybridization**: Implement orbital hybridization by mixing different orbitals with custom coefficients, allowing for the exploration of complex bonding interactions.
- **Orbital Squared Moduli**: Generate squared moduli of orbitals, providing insight into their spatial distribution and probability densities.
Examples of orbitals generated with **atorvi**: could be found in [examples](./examples/) folder.
## Quick start
The full user manual is available in [docs/atorvi_manual.md](./docs/atorvi_manual.md).
**atorvi** can be used in two modes: package mode (for scripting and notebooks) and CLI interactive mode (only basic functionality is available).
### 1.Package Mode
In your Python script or Jupyter notebook, you can generate and visualize atomic orbitals with the following example:
```python
import atorvi
# Example: visualize a d_{3z^2-r^2} orbital for an Ni atom (Z = 28)
outfile = atorvi.OrbitalFile("Ni_orbital.xsf")
outfile.add_orbital("d_{3z^2-r^2}", position=[0, 0, 0], znumber=28)
outfile.write_data()
```
Then just open the `Ni_orbital.xsf` file in your favorite visualization software.
The orbitals available for generation are:
$$s$$
$$p_z, p_x, p_y$$
$$d_{3z^2-r^2}, d_{xz}, d_{yz}, d_{xy}, d_{x^2-y^2} $$
$$f_{z^3}, f_{xz^2}, f_{yz^2}, f_{xyz}, f_{z(x^2-y^2)}, f_{x(x^2-3y^2)}, f_{y(3x^2-y^2)}$$
```python
print(atorvi.supported_orbitals)
['s',
'p_z', 'p_x', 'p_y',
'd_{3z^2-r^2}', 'd_{xz}', 'd_{yz}', 'd_{xy}', 'd_{x^2-y^2}',
'f_{z^3}', 'f_{xz^2}', 'f_{yz^2}', 'f_{xyz}', 'f_{z(x^2-y^2)}', 'f_{x(x^2-3y^2)}', 'f_{y(3x^2-y^2)}']
```
### 2. CLI Interactive Mode
atorvi also offers an interactive mode via the command line interface (CLI). You can simply run the script directly in a terminal:
```bash
atorvi_cli
```
Follow the prompts to generate orbitals and export them to XCrysDen-compatible formats.
Once the file is generated, you can open it using visualization tools like XCrysDen or VESTA.
## Author
`atorvi` is developed and maintained by [Dmitry Korotin](https://www.researchgate.net/profile/Dmitry-Korotin). Contributions, suggestions, and feedback are welcome to help improve the project.
## License
`atorvi` is released under the MIT License. You are free to use, modify, and distribute the software, provided that the original copyright and permission notice are included in all copies or substantial portions of the software.
The author kindly asks that you cite this GitHub repository [github.com/dkorotin/atorvi](https://github.com/dkorotin/atorvi) and the related paper (link will be available soon) in any publications that use images or data generated with the `atorvi` package.
For more details, refer to the full [MIT License](./LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "atorvi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "atomic orbitals, visualization",
"author": null,
"author_email": "Dmitry Korotin <dmitry@korotin.name>",
"download_url": "https://files.pythonhosted.org/packages/c2/12/f621fc0867a45b3eac18b8b93196345a1cf9323ea6e70018b6ec677226cb/atorvi-0.1.1.tar.gz",
"platform": null,
"description": "# atorvi - ATomic ORbitals VIsualization\n\n![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)\n\n**atorvi** is a Python package for visualizing individual atomic orbitals and their various linear combinations. The library generates requested atomic orbitals on a 3D mesh and exports them, along with the inputted crystal structure (molecule or periodic crystal), into a file in [XCrysDen .xsf format](http://www.xcrysden.org/doc/XSF.html).\n\nThe resulting `.xsf` file can be opened and visualized using your favorite visualization software, such as [XCrysDen](http://www.xcrysden.org/), [VESTA](https://jp-minerals.org/vesta/en/) or [VMD](https://www.ks.uiuc.edu/Research/vmd/).\n\n## Installation\n\nTo install **atorvi**, you can use `pip`:\n\n```bash\npip install atorvi\n```\n\n## Features\n\n- **Atomic Orbitals Generation**: Create atomic orbitals at a specific position in space or at a designated atom/element within a crystal structure. \n\n- **Flexible Structure Input**: Input crystal structures either manually, atom-by-atom, or directly from standard file formats such as POSCAR, XSF, CIF, and more. The integration with the `pymatgen` package simplifies structure handling.\n\n- **Orbital Hybridization**: Implement orbital hybridization by mixing different orbitals with custom coefficients, allowing for the exploration of complex bonding interactions.\n\n- **Orbital Squared Moduli**: Generate squared moduli of orbitals, providing insight into their spatial distribution and probability densities.\n\nExamples of orbitals generated with **atorvi**: could be found in [examples](./examples/) folder.\n\n## Quick start\n\nThe full user manual is available in [docs/atorvi_manual.md](./docs/atorvi_manual.md).\n\n**atorvi** can be used in two modes: package mode (for scripting and notebooks) and CLI interactive mode (only basic functionality is available).\n\n### 1.Package Mode \nIn your Python script or Jupyter notebook, you can generate and visualize atomic orbitals with the following example:\n\n```python\nimport atorvi\n\n# Example: visualize a d_{3z^2-r^2} orbital for an Ni atom (Z = 28)\noutfile = atorvi.OrbitalFile(\"Ni_orbital.xsf\")\n\noutfile.add_orbital(\"d_{3z^2-r^2}\", position=[0, 0, 0], znumber=28)\n\noutfile.write_data()\n```\n\nThen just open the `Ni_orbital.xsf` file in your favorite visualization software.\n\nThe orbitals available for generation are:\n$$s$$\n$$p_z, p_x, p_y$$\n$$d_{3z^2-r^2}, d_{xz}, d_{yz}, d_{xy}, d_{x^2-y^2} $$\n$$f_{z^3}, f_{xz^2}, f_{yz^2}, f_{xyz}, f_{z(x^2-y^2)}, f_{x(x^2-3y^2)}, f_{y(3x^2-y^2)}$$\n\n```python\nprint(atorvi.supported_orbitals)\n\n['s', \n'p_z', 'p_x', 'p_y', \n'd_{3z^2-r^2}', 'd_{xz}', 'd_{yz}', 'd_{xy}', 'd_{x^2-y^2}', \n'f_{z^3}', 'f_{xz^2}', 'f_{yz^2}', 'f_{xyz}', 'f_{z(x^2-y^2)}', 'f_{x(x^2-3y^2)}', 'f_{y(3x^2-y^2)}']\n```\n\n### 2. CLI Interactive Mode\natorvi also offers an interactive mode via the command line interface (CLI). You can simply run the script directly in a terminal:\n\n```bash\natorvi_cli\n```\n\nFollow the prompts to generate orbitals and export them to XCrysDen-compatible formats.\n\nOnce the file is generated, you can open it using visualization tools like XCrysDen or VESTA.\n\n## Author\n\n`atorvi` is developed and maintained by [Dmitry Korotin](https://www.researchgate.net/profile/Dmitry-Korotin). Contributions, suggestions, and feedback are welcome to help improve the project.\n\n## License\n\n`atorvi` is released under the MIT License. You are free to use, modify, and distribute the software, provided that the original copyright and permission notice are included in all copies or substantial portions of the software.\n\nThe author kindly asks that you cite this GitHub repository [github.com/dkorotin/atorvi](https://github.com/dkorotin/atorvi) and the related paper (link will be available soon) in any publications that use images or data generated with the `atorvi` package.\n\nFor more details, refer to the full [MIT License](./LICENSE).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Package for visualizing atomic orbitals",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/dkorotin/atorvi"
},
"split_keywords": [
"atomic orbitals",
" visualization"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "70e2eb3c48f340c0795a2f6bde1ded492e3c0221c5de1f56ffb370270a09f34c",
"md5": "66300dedb163b22af74ffe9e0ebbd75f",
"sha256": "f8ff0b00cdffd8e0c5d5c5f8f0a3a04b58c993988020e81da5a18b86bd1b789d"
},
"downloads": -1,
"filename": "atorvi-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "66300dedb163b22af74ffe9e0ebbd75f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 13183,
"upload_time": "2024-10-24T15:37:50",
"upload_time_iso_8601": "2024-10-24T15:37:50.649542Z",
"url": "https://files.pythonhosted.org/packages/70/e2/eb3c48f340c0795a2f6bde1ded492e3c0221c5de1f56ffb370270a09f34c/atorvi-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c212f621fc0867a45b3eac18b8b93196345a1cf9323ea6e70018b6ec677226cb",
"md5": "b043bbd0e2300e688a642cdc2af2f2ac",
"sha256": "1f30787a41dbb83601f6dc86d965ff0f29e84543065b5d1f46bee9fb84df368e"
},
"downloads": -1,
"filename": "atorvi-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "b043bbd0e2300e688a642cdc2af2f2ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 14196,
"upload_time": "2024-10-24T15:37:52",
"upload_time_iso_8601": "2024-10-24T15:37:52.014237Z",
"url": "https://files.pythonhosted.org/packages/c2/12/f621fc0867a45b3eac18b8b93196345a1cf9323ea6e70018b6ec677226cb/atorvi-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-24 15:37:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dkorotin",
"github_project": "atorvi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "atorvi"
}