Skip to main content

A Python package for creating publication quality plots of regular mesh tallies with the underlying geometry

Project description

N|Python

CI with install

PyPI

codecov

A minimal Python package that plots 2D mesh tally results with the underlying DAGMC geometry

Installation

pip install regular_mesh_plotter

Mesh results in the form of Numpy arrays or OpenMC.tally objects can be plotted with a single API call.

A Matplotlib.pyplot object is returned by all functions so one can make changes to the legend, axis, colour map etc. However some key options are accessable in the function call directly.

There are additional options that allow

  • rotation of the mesh tally results
  • rotation of the DAGMC geometry slice
  • saving the plot as an image file
  • specifying contour lines TODO
  • changing axis and colour bar labels
  • changing colour scale applied
  • truncation of values
  • The plane_normal of the DAGMC geometry

The resulting plots can be used to show dose maps, activation, reaction rate and other mesh tally results.

Example 1 shows a Numpy array plotted

TODO

Example 2 shows a Numpy array plotted with an underlying DAGMC geometry

TODO

Example 3 shows a OpenMC tally plotted with an underlying DAGMC geometry

TODO

Example 4 shows how to rotate the underlying DAGMC geometry and mesh tally. This is sometimes necessary as the slice and mesh can get out of alignment when changing the

TODO

Related packages

If you want to plot the DAGMC geometry without a mesh tally then take a look at the dagmc_geometry_slice_plotter package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regular_mesh_plotter-0.0.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

regular_mesh_plotter-0.0.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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