China Spallation Neutron Source Monte Carlo System
Project description
prompt
Prompt: Probability-Conserved Cross Section Biasing Monte Carlo Particle Transport System.
Introduction of system can be found at arXiv.
Installing on Linux(Ubuntu) from source
To build Prompt, several prerequisites are needed.
sudo apt install g++ cmake python3-dev python3-pip python3-venv
Clone the source and compile it as
git clone https://gitlab.com/cinema-developers/prompt.git
cd prompt
. env.sh
cimbuild
Installing on Linux with pip
pip install neutron-cinema
Runing Prompt simulations
After installation, GDML formatted simulation input files can be launched by Prompt as
prompt [-g file] [-s seed] [-n number] [-v]
Option | Defult | Description |
---|---|---|
-g | Set GDML input file. | |
-s | 4096 | Set the seed for the random generator |
-n | 100 | Set the number of primary neutron events |
-v | The flag to activate the visualisation |
Example of visualising the geometry defined in the total_scattering.gdml:
prompt -g total_scattering.gdml -v
The simulation will produce histogroms in the MCPL format only in the production run, if any scorers are specified. To run the simulation with 1e6 neutrons
prompt -g total_scattering.gdml -n 1e6
After the execution, seven histogrom files and accosiated python analysis template scripts will be generated. The reults can be plotted as
python ScorerDeltaMomentum_PofQ_HW_view.py
There are many input examples are available in the gdml sub-directory.
Connect with us:
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-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919e619a087449bbe7a0fff200d1f3bcaf0eae25d21d179d31c6a89e13c78280 |
|
MD5 | 5687e5b549993e7599fb5aea51f2db54 |
|
BLAKE2b-256 | 8c42ebbeafa69e289a04d297eb773aca557ecebb0a752a45fcaef0d2322ff107 |
Hashes for neutron_cinema-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7173e19721712108c27d52a3f0cb02c4fe96aafabff6d0c97011c7ff1a43898 |
|
MD5 | bb0281ec1bf0945d8794059fbc7d9988 |
|
BLAKE2b-256 | f092dfff144f6d84ec911496abe073c80a62f56cde081b4542a0adb494c08755 |
Hashes for neutron_cinema-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d85342f0c379c994af90621288f9327e172314f6d586dc8e823820094757b07 |
|
MD5 | 1de32ba160c70de26c3ebfbd735bbc4f |
|
BLAKE2b-256 | 034621bfe905a3307f767b7f6ffc28b1e23414019f68b6864fbd67a52de264b6 |
Hashes for neutron_cinema-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43538481477a4217c88eaa28c3049ee61ae5037d12a5612334c17896792d10a4 |
|
MD5 | 6009dcd39995fde9040c0e8519216001 |
|
BLAKE2b-256 | 1e5e789e8f96607a015375fce20865e17fa6164a05f2a7d25e0dacf7d2932173 |
Hashes for neutron_cinema-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a5b7abb189b06c700e34e6417fba41a7817c36008201b0ce24920709a67d22c |
|
MD5 | 5497c2a8c282977b6b3426d96a4c7ed8 |
|
BLAKE2b-256 | 525ebce57f0f804641a10ea932a0ea5b19487a8758468b7ec678249e8d871378 |
Hashes for neutron_cinema-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15711b19a4ba17967d560c20b9f2e0c448753a7f5922fbe3a60966b936cc5ab7 |
|
MD5 | c48a06195c4a7f29e79b4f548f15ddc8 |
|
BLAKE2b-256 | 6b74b73c4679885a5f4d6803ad1180a15e08ffbc819451a49f24b624816bc9ef |