GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fusion-energy/openmc_depletion_plotter: Plot the isotopes present during depletion steps.

BranchesTags
Open more actions menu

Latest commit

 

History

138 Commits
138 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples
examples
 
 
src/openmc_depletion_plotter
src/openmc_depletion_plotter
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
chain-nndc-b7.1.xml
chain-nndc-b7.1.xml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

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.

👉 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 😄

Additional methods provided

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

openmc plotly activity

About

Plot the isotopes present during depletion steps.

Topics

burnupdepletionevolutonmaterialtransmutationwaste

Resources

Readme
MIT license
Activity
Custom properties

Stars

12 stars

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.