Python package for MORET6 fission source visualization in criticality mode
Project description
M6SourceView
Python package helping to visualize fission sites in a MORET6 calculation.
Monte Carlo criticality calculations are performed by a series of cycles, each cycle simulating the life of a set of neutrons. When the calculation has converged correctly, the position of the neutron birth sites (which correspond to the fission sites) indicates the most reactive space in the fissile material. It may then be useful to visualize these fission sites to determine the most reactive part of the nuclear system.
This package allows you to:
- calculate the center of mass of the neutrons from the last cycle (presumably the one with the best convergence)
- perform a graphical cut in three dimensions at this center of mass
- display the position of the neutrons on the graphical slices.
⚠️ Warning: This package only works on Linux not Windows.
Example of output:
Installation
As is usual practice in the Python world, it is best to install m6sourceview in a venv:
python3 -m venv
source venv/bin/active
pip3 install m6sourceveiw
Usage
In order to use m6sourceview, you must activate the outputs for the positions of neutron birth and death sites in the MORET6 input file. This is done by adding the keywords POST STAR ENDP to the output block, as in the following example:
OUTP
POST
STAR
ENDP
ENDO
Once installed you can use it as:
As a Python module
python3 -m m6sourceview input_file.m6
As a command-line tool
m6sourceview input_file.m6
Options
--nb_max_pixel INT: Maximum number of pixels for the plot (default: 500)--no-show: Save plot without displaying--max_bank_size: Maximum number of birth site to load (default: 10k)--output: Output file path of the plot.
Examples
python3 -m m6sourceview example/CPX_CONT_0001.m6
python3 -m m6sourceview example/CPX_CONT_0001.m6 --nb_max_pixel 1000
python3 -m m6sourceview example/CPX_CONT_0001.m6 --no-show
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
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 m6sourceview-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: m6sourceview-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00400e95dad9d67b45a9edf4c5571e358d29269500d2c73109cbecd40aea673b
|
|
| MD5 |
df57d291e5d9b0a539a0f4828b1d2299
|
|
| BLAKE2b-256 |
348a4a9cf4c454fd94ddc144f151a1bd203c200541292d1da98316bd3f3c1552
|
File details
Details for the file m6sourceview-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: m6sourceview-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51ceede9795ba451da57c69e3a474ee75f1049dc920d9f9a14b4783cc9e1f093
|
|
| MD5 |
1c53f9a35b9b387cc4fb8572b2e1e151
|
|
| BLAKE2b-256 |
33092b70c2370bf7da1c80af2c3ceb200f82e357dfc79aaf1637c079a5a7b076
|
File details
Details for the file m6sourceview-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: m6sourceview-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2900e1064c9b9682dfeb981eb597531bd1fd107c7fef5a77ac0db2747ecb6bdc
|
|
| MD5 |
64ab9f382266755ceafe3e462ac87335
|
|
| BLAKE2b-256 |
37a9532bbb01ebe4b899bdb821d9f2dc554ccb64deecef74aa8554639f63054b
|
File details
Details for the file m6sourceview-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: m6sourceview-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e67a63d5f34e77658ce2b97699cc8b352576da45386673aa0e12def3027c528
|
|
| MD5 |
c38cc0bd3f25d4cc44d66b0aa84b11d5
|
|
| BLAKE2b-256 |
53961920d24ee4612cc53f81461a55c1d82c8d108ad987e9a0ea46eee862ae7f
|