Skip to content

Commit 3a19cd5

Browse files
committed
Merge branch 'develop' into remove_ispyqt5
2 parents 78bca56 + 8e98144 commit 3a19cd5

File tree

9 files changed

+53
-4
lines changed

9 files changed

+53
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
apt install -y libglu1-mesa libglib2.0-0 libfontconfig1
3131
-
3232
uses: actions/checkout@v2
33+
-
34+
name: Install OpenMC Python API
35+
shell: bash
36+
run: |
37+
cd /root/OpenMC/openmc
38+
pip install .[test]
3339
-
3440
name: Install
3541
shell: bash

README.md

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44

55
## Description
66

7-
A graphical interface for visualizing and manipulating OpenMC plot slices.
7+
A graphical interface for visualizing and navigating OpenMC models.
88

99
Originally created by @landonjmitchell at the University of Chicago ([original
1010
repository](https://github.com/landonjmitchell/openmc-plotgui)).
1111

12+
![beavrs](./screenshots/beavrs.png)
13+
14+
![beavrs_zoom](./screenshots/beavrs_zoomed.png)
15+
1216
## Dependencies
1317

1418
OpenMC, Matplotlib, NumPy, PySide2
@@ -21,18 +25,57 @@ This package is most easily installed by running
2125
pip install openmc-plotter
2226
```
2327

24-
2528
## Usage
2629

27-
From a directory containing a working OpenMC model run:
30+
From a directory containing an OpenMC model run:
2831

2932
```console
3033
openmc-plotter
3134
```
3235

3336
Once the viewer has opened, press `?` to view a variety of keyboard shortcuts.
3437

35-
# Controls/Functionality
38+
![shortcuts](./screenshots/shortcuts.png)
39+
40+
## Features
41+
42+
### Tally Visualization
43+
44+
The plotter also provides the ability to view tallies with spatial filters (mesh
45+
filter, cell filter, etc.). After loading a statepoint file from the "Edit"
46+
menu, tallies can be displayed on top of the geometry.
47+
48+
![tally](./screenshots/pincell_tally.png)
49+
50+
Filters, scores, and nuclides on the tally can be enabled/disabled to isolate data.
51+
52+
### Color Manipulation
53+
54+
Cell and material colors can be customized in the color dialog menu. Overlap
55+
coloring can be enabled as well to debug problems in the geometry definition.
56+
57+
![colors](./screenshots/color_dialog.png)
58+
59+
### DAGMC Geometry Visualization
60+
61+
The plotter can also present the CAD-based tesellation geometry enabled by the
62+
[Direct Accelerated Geometry Monte Carlo](https://svalinn.github.io/DAGMC/)
63+
(DAGMC) toolkit. Below is the cross section of a tokamake model generated using [paramak](https://paramak.readthedocs.io/en/main/):
64+
65+
![dagmc](./screenshots/dagmc.png)
66+
67+
As well as a DAGMC model of the Advanced Test Reactor (ATR):
68+
69+
![atr](./screenshots/atr.png)
70+
71+
### Saving and Exporting
72+
73+
- Any image displayed in the plotter can be saved in any format supported by the
74+
user's Matplotlib installation.
75+
76+
- Tally and geometry data (material/cell IDs) can be exported to a VTK file under "File->Export"
77+
78+
# Options/Functionality
3679

3780
## Menu Bar:
3881

screenshots/atr.png

430 KB
Loading

screenshots/beavrs.png

1.19 MB
Loading

screenshots/beavrs_zoomed.png

363 KB
Loading

screenshots/color_dialog.png

231 KB
Loading

screenshots/dagmc.png

182 KB
Loading

screenshots/pincell_tally.png

248 KB
Loading

screenshots/shortcuts.png

210 KB
Loading

0 commit comments

Comments
 (0)