Skip to main content

N|Python

CI

Extends OpenMC to provides convenient plotting methods. This is done by Monkey Patching OpenMC to provide additional functionality to the base classes. One benefit of this is the user can continue to work with the familiar OpenMC classes and they simply get additional functionality. Another benefit is that if any of these functions ever become popular enough to include in OpenMC then it could be done with a simple copy paste into the existing class structure. Plotly figures or MatPlotLib figures are returned for user customization.

:point_right: API Examples

Install

The full openmc_depletion_plotter package can be installed from PyPi with the terminal command.

pip install openmc_depletion_plotter[gui]

Or without the Graphical User Interface

pip install openmc_depletion_plotter

Graphical User Interface

Once installed you can then used the API or launch the GUI. To launch the GUI type the following command in the terminal and the browser should open with the GUI.

openmc_depletion_plotter

openmc depletion plotter

Plotting pulse schedule

All the Integrator classes have been extended to include a .plot_pulse_schedule() method.

This method plots the source rate as a function of time.

This is useful when wanting to visually display a pulse schedule used in an depletion / activation study.

Additional methods provided

openmc.deplete.PredictorIntegrator.plot_pulse_schedule()
openmc.deplete.CECMIntegrator.plot_pulse_schedule()
openmc.deplete.CF4Integrator.plot_pulse_schedule()
openmc.deplete.CELIIntegrator.plot_pulse_schedule()
openmc.deplete.EPCRK4Integrator.plot_pulse_schedule()
openmc.deplete.LEQIIntegrator.plot_pulse_schedule()
openmc.deplete.SICELIIntegrator.plot_pulse_schedule()
openmc.deplete.SILEQIIntegrator.plot_pulse_schedule()

openmc pulse time plot

Plotting activation, atoms, or decay heat as a function of time

The openmc.deplete.Results() class has been extended to include a plot_atoms_vs_time() method and a plot_activity_vs_time method.

These methods plot atoms or activity as a function of time. These plots optionally include a breakdown of the dominant nuclides. Matplotlib or Plotly backends are available.

Additional methods provided

openmc.deplete.Results.plot_atoms_vs_time()
openmc.deplete.Results.plot_activity_vs_time()
openmc.deplete.Results.plot_decay_heat_vs_time()

openmc matplotlib activity openmc plotly activity

Plotting activation or atoms on an isotope chart

The openmc.Material() class has been extended to include a plot_isotope_chart_of_activity() method and plot_isotope_chart_of_atoms() method.

This method plots the material atoms or the material activity on an isotope chart.

I started making isotope plots back in 2010 so nice to finally distribute this :smile:

Additional methods provided

openmc.Material.plot_isotope_chart_of_atoms()
openmc.Material.plot_isotope_chart_of_activity()

openmc plotly activity

Metadata

Release files for openmc-depletion-plotter 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openmc-depletion-plotter 0.4.2
File Size Uploaded
openmc_depletion_plotter-0.4.2.tar.gz 37.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for openmc-depletion-plotter 0.4.2
File Interpreter ABI Platform
openmc_depletion_plotter-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 37.1 MB

Release files / openmc_depletion_plotter-0.4.2.tar.gz

Download URL openmc_depletion_plotter-0.4.2.tar.gz
Size 37.1 MB
Tags Source
SHA-256 checksum
How to use checksums
0793b49d9ae2f1eba2453e6c7169d938990ac0d904f5d44cbffbe9e06598e035
BLAKE2b-256 checksum
How to use checksums
fca6054ac6e0cf6e7c4d0003e957bee85c425847874de459166127dea83bc97a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / openmc_depletion_plotter-0.4.2-py3-none-any.whl

Download URL openmc_depletion_plotter-0.4.2-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
249b20d617a7931326a14bf4d47016f3ee90a573a8e7834624a6583283f7e95a
BLAKE2b-256 checksum
How to use checksums
323eb07446e1d48fe0e3ed4d07382493fbd98bb51c2673173cbcadf6c9eca545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page