Skip to content

Utilities

Plotting an MFILE

Note

The majority of the output plots can be automatically generated at the end of the PROCESS run by using the --full-output flag. See the running process section for more info.

Summary document | plot_proc.py

plot_proc is used for plotting an overview of the results from an MFILE. It can be run using its own CLI:

python process/io/plot_proc.py -f path/to/MFILE.DAT

or through Process's main CLI (working, but still in development):

process -i path/to/IN.DAT --plot --mfile path/to/MFILE.DAT

An example of a plot proc output PDF for the large tokamak regression test is shown below:


Scan files

plot_scans is a tool to show the change in variables as a scan variable is varied. Scans can be done in one or two dimensions.

python process/io/plot_scans.py -f path/to/MFILE.DAT

2D_contour_plot

Figure 10: 2D scan contour plot

2D_stack_plot

Figure 11: 1D scan plot

Radial build

plot_radial_build is to plot the radial build of the machine in terms of bar segments. It can be run as follows:

python process/io/plot_radial_build.py -f path/to/MFILE.DAT

radial_build_plot

Figure 12: Simple radial build plot

Interactive Sankey diagram

plot_plotly_sankey is to plot an interactive .html Sankey diagram for looking at the plants power balance. It can be run as follows:

python process/io/plot_plotly_sankey.py -m path/to/MFILE.DAT

plotly_sankey_plot

Figure 13: Interactive HTML Sankey diagram