Skip to main content

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:

Example output showing fission sites visualization

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


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

If you're not sure about the file name format, learn more about wheel file names.

m6sourceview-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

m6sourceview-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

m6sourceview-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

m6sourceview-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

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

File hashes

Hashes for m6sourceview-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00400e95dad9d67b45a9edf4c5571e358d29269500d2c73109cbecd40aea673b
MD5 df57d291e5d9b0a539a0f4828b1d2299
BLAKE2b-256 348a4a9cf4c454fd94ddc144f151a1bd203c200541292d1da98316bd3f3c1552

See more details on using hashes here.

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

File hashes

Hashes for m6sourceview-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51ceede9795ba451da57c69e3a474ee75f1049dc920d9f9a14b4783cc9e1f093
MD5 1c53f9a35b9b387cc4fb8572b2e1e151
BLAKE2b-256 33092b70c2370bf7da1c80af2c3ceb200f82e357dfc79aaf1637c079a5a7b076

See more details on using hashes here.

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

File hashes

Hashes for m6sourceview-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2900e1064c9b9682dfeb981eb597531bd1fd107c7fef5a77ac0db2747ecb6bdc
MD5 64ab9f382266755ceafe3e462ac87335
BLAKE2b-256 37a9532bbb01ebe4b899bdb821d9f2dc554ccb64deecef74aa8554639f63054b

See more details on using hashes here.

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

File hashes

Hashes for m6sourceview-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e67a63d5f34e77658ce2b97699cc8b352576da45386673aa0e12def3027c528
MD5 c38cc0bd3f25d4cc44d66b0aa84b11d5
BLAKE2b-256 53961920d24ee4612cc53f81461a55c1d82c8d108ad987e9a0ea46eee862ae7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page