Plot the isotopes present during depletion steps.
Project description
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 openmc_depletion_plotter package can be installed from PyPi with the terminal command.
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
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()
Plotting activation or atoms 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()
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()
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 Distribution
Built Distribution
File details
Details for the file openmc_depletion_plotter-0.4.0.tar.gz
.
File metadata
- Download URL: openmc_depletion_plotter-0.4.0.tar.gz
- Upload date:
- Size: 37.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 081831bd22ecd1078f5f4d42457550086c6f37befc3b32db0504c6ae38590115 |
|
MD5 | 59e599c6372bfd56218f7ddbfc6c9b92 |
|
BLAKE2b-256 | dbd4c09b6ed8b99930efd62a07a7655c660b7c687804e5ce0316e6817b991dc6 |
File details
Details for the file openmc_depletion_plotter-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: openmc_depletion_plotter-0.4.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b80212f90a89043ed25e8f99b3c584825415d940f7ee4ff86d91532e88bf82 |
|
MD5 | d4759734c204588e78cbd16749b93b47 |
|
BLAKE2b-256 | 0056f6863bc22a4dc67bffdd801b4c4507ded057e1f5b8e94c7c8b1c853d2b56 |