Skip to main content

NShellFinder

PyPI Version PyPI Downloads tests

Ovito Python modifier to find the n-th coordination shell neighbors.

Utilisation

Here is an example on how to find the indices of nearest neighbors -- cluster by shells up to certain cutoff -- for the fcc crystal structure. The scrip can be found in the examples/ folder.

from ovito.io import import_file
from NshellFinder import NshellFinder

pipeline = import_file("fcc.dump")
mod = NshellFinder(crystal_structure="fcc", cutoff=18.2)
pipeline.modifiers.append(mod)
data = pipeline.compute()

neighbor_indices_per_shell = data.attributes["Neighbor indices per shell"]
# (number of nearest neighbor shells up to cutoff, number of atoms, number of nearest neighbors in the shell)

first_nn = neighbor_indices_per_shell[0] # (number of atoms, 12 first nearest neigbors)
second_nn = neighbor_indices_per_shell[1] # (number of atoms, 6 second nearest neighbors)

Installation

For a standalone Python package or Conda environment, please use:

pip install --user NshellFinder

For OVITO PRO built-in Python interpreter, please use:

ovitos -m pip install --user NshellFinder

If you want to install the lastest git commit, please replace NshellFinder by git+https://github.com/killiansheriff/NshellFinder.git.

Contact

If any questions, feel free to contact me (ksheriff at mit dot edu).

References & Citing

If you use this repository in your work, please cite:

@article{TBD,
  title={TBD},
  author={Sheriff, Killian and Cao, Yifan and Freitas, Rodrigo},
  journal={arXiv preprint TBD},
  year={2024}
}

Metadata

Release files for NshellFinder 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NshellFinder 0.0.5
File Size Uploaded
NshellFinder-0.0.5.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NshellFinder 0.0.5
File Interpreter ABI Platform
NshellFinder-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / NshellFinder-0.0.5.tar.gz

Download URL NshellFinder-0.0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
02b5fa023765f8c692e5e772277d134e241429b1f7209e392763a133bb109688
BLAKE2b-256 checksum
How to use checksums
6ae01f5f3f55e2306ea73abcaffd89e95953d05f6f105d9d416810f0e1039708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / NshellFinder-0.0.5-py3-none-any.whl

Download URL NshellFinder-0.0.5-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c3671886b274007073c42b198a2bf312d1eef3d4cf3a4499598bb8d3a001722
BLAKE2b-256 checksum
How to use checksums
1389f161538f90f6d9d1f0daa3cb7c7a8e472e1bebb858813888360f0e3dfcc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page