thunderboltz.ThunderBoltz.plot_edfs

ThunderBoltz.plot_edfs(steps='last', sample_cap=500000, bins=100, plot_cs=False, save=None)[source]

Plot the electron total energy distribution function, optionally include the provided cross sections for comparison.

Parameters:
  • steps (str, list[int], or int) –

    Options for which time steps to read:

    • "last": Only read the VDF of the last time step

    • "first": Only read the VDF of the first time step

    • "all": Read a separate VDF for each time step.

    • list[int]: Read VDF for each time step included in list.

    • int: read VDF at one specific time step.

  • sample_cap (int) – Limit the number of samples read from the dump file for very large files. Default is 500000. If bool(sample_cap) evaluates to False, then no cap will be imposed.

  • bins (int) – Total number of bins to divide the energy space into.

  • maxwellian (bool) – Option to draw a maxwellian distribution with the same temperature for comparison.

  • save (bool) – Optional location of directory to save the figure in.

Returns:

The list of figures and a list of their corresponding step indices.

Return type:

(Tuple[list[matplotlib.figure.Figure], list[int])

Note

It currently assumed that only data for one particle type is to be plotted.