https://github.com/openmc-data-storage/material_xs_plotter
XSPlot - Neutron cross section plotter for materials
https://github.com/openmc-data-storage/material_xs_plotter
barns cross graph material neutron neutronics nuclear plot section
Last synced: 2 months ago
JSON representation
XSPlot - Neutron cross section plotter for materials
- Host: GitHub
- URL: https://github.com/openmc-data-storage/material_xs_plotter
- Owner: openmc-data-storage
- Created: 2020-05-01T16:47:19.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T22:48:07.000Z (about 3 years ago)
- Last Synced: 2025-09-05T02:28:19.874Z (8 months ago)
- Topics: barns, cross, graph, material, neutron, neutronics, nuclear, plot, section
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
This repository contains part of the source code for neutron cross section
plotting website [xsplot.com](http://xsplot.com) which allows neutron cross
sections for materials to be plotted.
This repository contains:
- A Python [Plotly Dash](https://plotly.com/dash/) based GUI 🐍
- A Dockerfile that provides the hosting enviroment 🐳
# Run locally
You can view the hosted version of this repositoy here [xsplot.com](http://xsplot.com).
However you might want to host your own version locally.
To host your own local version of [xsplot.com](http://xsplot.com) you will need [Docker](https://www.docker.com/) installed and then can build and run the Dockerfile
with the following commands.
First clone the repositoy
```bash
git clone https://github.com/openmc-data-storage/material_xs_plotter.git
```
Then navigate into the repositoy folder
```bash
cd material_xs_plotter
```
Then build the docker image
```bash
docker build -t material_xs_plotter .
```
Then run the docker image
```bash
docker run --network host -t material_xs_plotter
```
The URL of your locally hosted version should appear in the terminal, copy and paste this URL into a web browser address bar.
# Maintenance
Pushing to the main branch of this repository triggers an automatic rebuild and
deployment of the new code using Google Cloud build at the [xsplot.com](http://xsplot.com)
The website makes use of a few other packages to process the nuclear data:
- [openmc_data_downloader](https://github.com/openmc-data-storage/openmc_data_downloader) to download processed h5 nuclear data files.
- [openmc_data_to_json](https://github.com/openmc-data-storage/openmc_data_to_json) to convert the h5 files (per isotope) into seperate reaction files.
- [nuclear_data_base_docker](https://github.com/openmc-data-storage/nuclear_data_base_docker) to provide a dockerfile containing all the required nuclear data with an index / loop up file containing every reaction available.