Skip to main content

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:

cinema-users@outlook.com

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

neutron_cinema-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

neutron_cinema-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

neutron_cinema-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

neutron_cinema-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

neutron_cinema-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

neutron_cinema-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

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

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