Skip to main content

No project description provided

Project description

Fast calculation of structural parameters and autocorrelation functions

fastatomstruct is a Python package (mostly written in Rust) that includes functions to calculate atomic structural quantities. If possible, thread-based parallelization (using rayon) is employed to speed up calculations and take advantage of multicore processors.

Documentation

The documentation can be found here.

What can this package do?

The package can currently calculate the following quantities:

  • Structural
    • Atomic distances
    • Coordination numbers
    • Nearest neighbours
    • Radial distribution function
    • Static structure factor
    • Bond orientational parameter (Steinhardt et al.) and Bond Order Correlation parameter
    • Tetrahedral order parameter
    • Angular-limited three-body correlation (ALTBC)
    • Bond length ratio (BLR)
  • Dynamical
    • Mean squared displacement
    • Non-gaussian parameter
    • Overlap q
    • Four-point correlation functions
    • Autocorrelation (with and without interpolation)

Example usage

This example uses the Atomistic Simulation Environment, which can also be installed using pip (pip install ase) and is now a dependency of fastatomstruct.

from ase.build import bulk
from fastatomstruct import all_distances, coordination_numbers

# Lithium in the BCC phase with the unit cell repeated
# 10x10x10 times
atoms = bulk("Li", "bcc", 3.45).repeat((10, 10, 10))

# Atomic distances
dists = all_distances(atoms)

# Coordination numbers with a cutoff of 3 A
coordination = coordination_numbers(atoms, 3)

Installation

From PyPI

fastatomstruct can be installed from the Python Package Index. Currently, only Linux and Windows with a Python version >= 3.8 are supported. In addition, your processor has to be x86-64 with AVX2 support. Most processors since 2015 should meet those criteria. If your system doesn't, you can still install fastatomstruct from source (see next subsection).

To run the installation, use

pip install fastatomstruct

Image parallelization

If you want to use image parallelization with fastatomstruct.ipar (see documentation), you should also install mpi4py. Please consult the corresponding documentation for installation instructions and prerequisites.

From source

Installing fastatomstruct from source requires

  • Python >= 3.7
  • pip
  • a working Rust installation (1.56 and newer), including cargo
  • maturin, a Python package that can e.g. be installed using pip3 install --upgrade maturin

To build the Python wheel, run

maturin build --release

The resulting wheel will be located in target/wheels/. You can install it using

python3 -m pip install target/wheels/fastatomstruct-version.whl

Replace "version" with your actual Python version. The package can then be used in Python using e.g. from fastatomstruct import coordination_numbers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

fastatomstruct-0.7.4-cp313-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13 Windows x86-64

fastatomstruct-0.7.4-cp313-cp313-manylinux_2_31_x86_64.whl (776.9 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp312-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

fastatomstruct-0.7.4-cp312-cp312-manylinux_2_34_x86_64.whl (776.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp312-cp312-manylinux_2_31_x86_64.whl (776.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp311-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

fastatomstruct-0.7.4-cp311-cp311-manylinux_2_34_x86_64.whl (779.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp311-cp311-manylinux_2_31_x86_64.whl (779.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp310-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

fastatomstruct-0.7.4-cp310-cp310-manylinux_2_34_x86_64.whl (781.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp310-cp310-manylinux_2_31_x86_64.whl (781.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp39-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

fastatomstruct-0.7.4-cp39-cp39-manylinux_2_34_x86_64.whl (785.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp39-cp39-manylinux_2_31_x86_64.whl (785.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp38-none-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

fastatomstruct-0.7.4-cp38-cp38-manylinux_2_34_x86_64.whl (784.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp38-cp38-manylinux_2_31_x86_64.whl (784.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_34_x86_64.whl (784.4 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.34+ x86-64

fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_31_x86_64.whl (784.5 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.31+ x86-64

File details

Details for the file fastatomstruct-0.7.4-cp313-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp313-none-win_amd64.whl
Algorithm Hash digest
SHA256 b2585ad78f5ad6a5195bc7bcbd4745df7d71749fcdbbf08a66c376a298c5c6cb
MD5 1fa2563d9362cb751ccda62bdec7bbc9
BLAKE2b-256 668952fc1041454ee06295dece3ede37bf2956eb89ad79e378b2c8e292fe610f

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2824f55913a42561043e37cd216040ead8a85b62c2ab8fa671804b70b7313d55
MD5 6fb36d677e676ae12629cac8b6a77122
BLAKE2b-256 99350a4ef6ba44d4bf78ef8b29bee8a6d7ddc98f05a2904c89e0e56c288a45c8

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 c9d792580c4c2caa43fce3fe5abe48fe31aaf490130ecec37b8928eb682ec52b
MD5 c2bb625ac6ee0d99cb6d856b062cb36d
BLAKE2b-256 98bf7a5f4a96ed71acdd71130ea3245998a01857c1bab6e6c6517d5b66fc42e8

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7e0ded8dae542da75ea3ef4842143121421c83ef84dacfd628f58ba0a7da3d63
MD5 c46acd3ae9574225078ac2ac4b08a83f
BLAKE2b-256 c6502a45f1396b57a8d0c355fef58920f3b8066e89f30904d4d768daa4b4b9c2

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4ac23bc946cd8185be97cea2055948bc71a449c6788e9a6f6c34f37188f02253
MD5 3d8e558351834eedabb9745e2ad1f0a8
BLAKE2b-256 3e7c0d01d55557ce76d642c046b38b0b4ff869cc9188f48abe56c4c2ec6d3e25

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 ec14b6025fcd1eeb7d21574d00ccd65fd429c338543619e0d39004c3a58b8554
MD5 05b01b1b271d54948ba147a59f37d51d
BLAKE2b-256 d8f1c745d836e5d5ab8d6e01249f5afc43d07b6f91b6c288782c6a7c35fa3fc8

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8ce0a3efc141f51b3c7f81087bf8ca766d20a2e883734cb6ae86c635ace7bfb5
MD5 f02ef4fded634e4cd2937cd9fa779f96
BLAKE2b-256 9dfe078562e2fac8d9a642a7acaea3452ab66d8a9223113e681cadecd9ae1cdb

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d138cce4431b74ae253b5e2a2fd0bc097051f2c4d1831239609bc0c8a944898d
MD5 d413dcff0f562c5286e652210b7057b0
BLAKE2b-256 ebb3e696605eac2844d8dd0677c9e49abebf6d73448944c9c45841d3ebe1b953

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 7e6fc661d7912263a34e885136fb65b41c1ddadc9c79505f118ab02887cfc9cd
MD5 1ce33ce83447355786ee68c3981297cf
BLAKE2b-256 d497dc3d240ca3f3523eebcdffcc5222d28ba06b4aaf9db96afb57513dca9b0b

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ebaa4c1c025024ffda539e1ddea21daecfb415a0c61804f11f19eb312d42a940
MD5 2aaca9ffb64e527a5dda152725548c7b
BLAKE2b-256 cabb5d5f527b3210eabc88f3fe427092990ae06d12c247e0aa9803cc3ec32676

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 43b40c99817f06f476b0fc8457655016a3a8cc9eda3b3b3f2ff5cad176f90976
MD5 880ced7bfe334f40a512e5472e9c6f33
BLAKE2b-256 5c16d25e3faf662d1c827a8037fa8e6223c1d296858d62071424efa1736585cc

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a24efb2a72933967878a2c650935a96a0ac798366338c1b3aef0008013a19c4
MD5 eeb8f84087b1702b7ca7a2df1891470c
BLAKE2b-256 19771cfbdf2f3363513a6694c0d7cfaac969433762401c1ea664a9037bd889f6

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5de02a61dcd39a4952e82b01ac46cc9ae943051a38698f10057d5244bc3da3db
MD5 2e09653532b29c666edd2f354433bfd8
BLAKE2b-256 46f59cf09538f6fcd63d7f843ffd5fd142198e51634dd125338841101b7913b8

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 95bde94b6f7b20cbb52ff7cc7d00f7c66879f8b61356d0c7e0946571cfa9a0e0
MD5 f62eb0a3d167771ce4d9b26f834d7508
BLAKE2b-256 41646b336a66abddda362be9db21cc856d0ec2e1ab76c968782a08e872e08040

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 d5d9157bfcb4d8a53a50d68ea7221afc2a03c5e0ea809c27064d1d7aa3d47711
MD5 315ad0cbc473fcc6810d70dff1111abe
BLAKE2b-256 0a077bf6a5fac2e2f8d1a51961b14af0268279ced3cd7b757401b6bc3383e6b1

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 82799427854f1192fda4b2a2403a6dedc857105221f9d8edeb06581c0c7dacb3
MD5 08c52951940c8be51d4db3c1c8ce2ced
BLAKE2b-256 4ba557d39b0362fcfd7a898345c34021f3397356516d55cc2be908f69bada00a

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp38-cp38-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fc2fe3179622d6329205dae15cf59e59633115d1d91e5d160324a29637573361
MD5 a4ea4d14e2d334ef5a7ca7cd810d7f13
BLAKE2b-256 caa41c3f3d1c8b7f94c5df81e2d64ed7cdcc490ca9d06cc9af0e7daf133be801

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ab29a18d34a4fe7110c6718177e6ec09ab12f2d303c75ea9b432fa088c7e562a
MD5 212423535a3292b08b3b6edce3ee4a90
BLAKE2b-256 b7e4772826f09be383118cd63a706c891ac214d259400e49f24f72ecaabd688e

See more details on using hashes here.

File details

Details for the file fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for fastatomstruct-0.7.4-cp37-cp37m-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d21bbb942e75dfa70911623f53a330d9a0045d3d9a22efe7227dc639ce2e0966
MD5 7336463c56abffbb916e212bcb3cd931
BLAKE2b-256 1ad5cf163d68ba62548bdc5dd5e25f6396fb157c82b34a26d918d5cf7d4f901f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page