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 NCrystaland use the Python API of NCrystal.
- This allows you to do
- 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 theNCrystal.climodule. - Note that the special command
ncrystal-configis provided by thencrystal-corepackage, not thencrystal-pythonpackage.
- These commands (e.g.
- Note that the
ncrystal-pythonpackage can only be installed via Python installation tools like pip. - For convenience, the
ncrystal-corepackage has a dependency onnumpy.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ncrystal_python-4.2.2.tar.gz.
File metadata
- Download URL: ncrystal_python-4.2.2.tar.gz
- Upload date:
- Size: 261.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c04c63c884ff0517383931fa2dabc9b4682953192375c29905effb07a76f72
|
|
| MD5 |
9decfeefd3f6820c2757e8a57577caf7
|
|
| BLAKE2b-256 |
30dc4147340fee20729ae707faa5c199462824100c9fc6f25226977af4117ffc
|
Provenance
The following attestation bundles were made for ncrystal_python-4.2.2.tar.gz:
Publisher:
pypi.yml on mctools/ncrystal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ncrystal_python-4.2.2.tar.gz -
Subject digest:
d3c04c63c884ff0517383931fa2dabc9b4682953192375c29905effb07a76f72 - Sigstore transparency entry: 261921640
- Sigstore integration time:
-
Permalink:
mctools/ncrystal@347775ffc999e959984ffca2ed5457d5f5809836 -
Branch / Tag:
refs/tags/v4.2.2 - Owner: https://github.com/mctools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@347775ffc999e959984ffca2ed5457d5f5809836 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ncrystal_python-4.2.2-py3-none-any.whl.
File metadata
- Download URL: ncrystal_python-4.2.2-py3-none-any.whl
- Upload date:
- Size: 295.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7bf88680dfa57c6569468b4f321302abb2be294abde8888611dee7d838f2658
|
|
| MD5 |
89f36d55b35cf131ab007ef233a683d9
|
|
| BLAKE2b-256 |
ad77adede5f57a9a28d87bde554e59745bfe8a5f4d103c75765827c3e616efaf
|
Provenance
The following attestation bundles were made for ncrystal_python-4.2.2-py3-none-any.whl:
Publisher:
pypi.yml on mctools/ncrystal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ncrystal_python-4.2.2-py3-none-any.whl -
Subject digest:
a7bf88680dfa57c6569468b4f321302abb2be294abde8888611dee7d838f2658 - Sigstore transparency entry: 261921659
- Sigstore integration time:
-
Permalink:
mctools/ncrystal@347775ffc999e959984ffca2ed5457d5f5809836 -
Branch / Tag:
refs/tags/v4.2.2 - Owner: https://github.com/mctools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@347775ffc999e959984ffca2ed5457d5f5809836 -
Trigger Event:
push
-
Statement type: