China Spallation Neutron Source Monte Carlo System
Project description
neutron-cinema(China Spallation Neutron Source Monte Carlo System): a neutron transport simulation system
neutron-cinema (China Spallation Neutron Source Monte Carlo System) uses NCrystal as the backend for the scattering physics, VecGeom for the geometry modelling and pyvista for the visualisation. The cross section generators for crystalline materials (PiXiu) and liquids (Tak) will be included in the future releases.
Installation
The latest stable release (and required dependencies) can be installed from PyPI:
pip install neutron-cinema
Usage
Run the following command on bash to simulate a square neutron guide:
promptpy --gdml guide_1.gdml --visualize --neutronNum 100
To simulate the neutron guide and visualise the position sensity monitor at the exist of the guide:
promptpy --gdml guide_1.gdml --neutronNum 1000000 && python ScororPSD_Monitor2_view.py
Run your customized gdml files (e.g. MyGdml.gdml):
promptpy --gdml MyGdml.gdml --visualize --neutronNum 100
Documentation and publications
Under preparation.
Connect with us:
Languages and Tools:
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 Distributions
Built Distributions
Hashes for neutron_cinema-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46846cfe0d975dc7412f3906571910fb8261910ef6b76a1981b90a8d88f279b |
|
MD5 | ad3bdb08b72d5863fcb46f3003ce8a8f |
|
BLAKE2b-256 | a91157bda722b4a738bf192ee5fe998db0b3fe19aafc296f5893dfcad8b2027c |
Hashes for neutron_cinema-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b6be2e75559cb266385371ceebd77bc73dc5fb043ccdc9f00a9067cafba687 |
|
MD5 | 882ad2733892c86ea82b67fc8a8d47aa |
|
BLAKE2b-256 | 1c173b551e3337b8eef7ee02abaa47ebfa443e6af4bf723e01238c3df6e8732b |
Hashes for neutron_cinema-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67a4db9e76b1bf916c0430a9dd6ed73cdf85bac17c7057633f9fdf6d5cab86f |
|
MD5 | 430f1e3d1d31c80fc2e538726e26eff7 |
|
BLAKE2b-256 | 6d811c940a5ba0b2ce76656cef1ae4cf558540474676f7e07c768da8c91a752a |
Hashes for neutron_cinema-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9337b3c5b0404216743687de2a1c457ee4aa406e472403a6665c36b5aa7c20e |
|
MD5 | bec7f0135766fb7db13a33c146980e4e |
|
BLAKE2b-256 | 88417a51dca1ffdb8e423aa519bfdf626085706a54095b96118ee7e9db996c52 |