Skip to main content

Library for thermal neutron transport in crystals and other materials.

Project description

NCrystal : A library for thermal neutron transport in crystals and other materials

The ncrystal-python package provides the Python API and command-line scripts for NCrystal. To function it needs to acess NCrystal shared library behind the scenes, and as such it requires the ncrystal-core package to function.

In conda and Python environments, it is recommended that most users simply install and depend on the package named ncrystal which itself depends on both ncrystal-core and ncrystal-python.

Note that to support some esoteric installations, the ncrystal-python package does not itself depend on the ncrystal-core package, which is another reason that most users are recommended to simply install or depend only on the package named ncrystal.

Installation of the ncrystal-python package more specifically provides (in addition to what is found in the ncrystal-core package):

  • The NCrystal python module.
    • This allows you to do import NCrystal and use the Python API of NCrystal.
  • Command-line utilities.
    • These commands (e.g. nctool, ncrystal_cif2ncmat, ...) are actually themselves written in Python, and can also be accessed from the Python API itself via the NCrystal.cli module.
    • Note that the special command ncrystal-config is provided by the ncrystal-core package, not the ncrystal-python package.
  • Note that the ncrystal-python package can only be installed via Python installation tools like pip.
  • For convenience, the ncrystal-core package has a dependency on numpy.

Referencing NCrystal in scientific work

A very substantial effort went into developing NCrystal. If you use it for your work, we would appreciate it if you would use the following primary reference in your work:

X.-X. Cai and T. Kittelmann, NCrystal: A library for thermal neutron transport, Computer Physics Communications 246 (2020) 106851, https://doi.org/10.1016/j.cpc.2019.07.015

For work benefitting from elastic physics (e.g. Bragg diffraction), we furthermore request that you additionally also use the following reference in your work:

T. Kittelmann and X.-X. Cai, Elastic neutron scattering models for NCrystal, Computer Physics Communications 267 (2021) 108082, https://doi.org/10.1016/j.cpc.2021.108082

For work benefitting from our inelastic physics, we furthermore request that you additionally also use the following reference in your work:

X.-X. Cai, T. Kittelmann, et. al., "Rejection-based sampling of inelastic neutron scattering", Journal of Computational Physics 380 (2019) 400-407, https://doi.org/10.1016/j.jcp.2018.11.043

Project details


Download files

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

Source Distribution

ncrystal_python-4.2.4.tar.gz (262.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncrystal_python-4.2.4-py3-none-any.whl (295.4 kB view details)

Uploaded Python 3

File details

Details for the file ncrystal_python-4.2.4.tar.gz.

File metadata

  • Download URL: ncrystal_python-4.2.4.tar.gz
  • Upload date:
  • Size: 262.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ncrystal_python-4.2.4.tar.gz
Algorithm Hash digest
SHA256 bf92f7f5c9ad5ec6612d4f5c76c237a29af5fe853d6d6ac47f6266cd2335c960
MD5 3c8bf3dc12797fc683f026403f8a0e67
BLAKE2b-256 7a431c46cb344244b066c6d2342524ad0e9387efc261fab238eb7b914c4e2063

See more details on using hashes here.

Provenance

The following attestation bundles were made for ncrystal_python-4.2.4.tar.gz:

Publisher: pypi.yml on mctools/ncrystal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ncrystal_python-4.2.4-py3-none-any.whl.

File metadata

  • Download URL: ncrystal_python-4.2.4-py3-none-any.whl
  • Upload date:
  • Size: 295.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ncrystal_python-4.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 affd0b046fefb1a8c86abda9f2b5dbdef6e56de0f7825bbf1e125909fc6aa5b5
MD5 74d97e85d1c3740bbd7ad091bfc4788d
BLAKE2b-256 caa5adaaaa80bb066aa8c0ed174126bcfc5e84b21d4349d1df556781735b9118

See more details on using hashes here.

Provenance

The following attestation bundles were made for ncrystal_python-4.2.4-py3-none-any.whl:

Publisher: pypi.yml on mctools/ncrystal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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