plot_deposition
- main()
Plot deposition data from Lionbolt HDF5 files.
Command line
User must specify the type of deposition they desire. For non-slab calculations, a user must specify either line geometry or plane geometry, although plane geometry is limited to XY, YZ, and XZ planes. See Notes below if you want to use arbitrarily defined planes.
Examples
Plot dose in a slab:
plot_deposition.py results.h5 -D
Plot charge deposition along a line from 0 to 10 along the \(z-\)axis:
plot_deposition.py results.h5 -C --line-start 0.0 0.0 0.0 --line-end 0.0 0.0 10.0
Plot energy deposition in the YZ plane:
plot_deposition.py results.h5 -E --plane YZ
Use
-hor--helpin the command line to list all arguments.Notes
The majority of this script is just handling user input to make decisions for the resulting plot. If a user wanted to make their own plotting script with more general parameters, this script shows how simple it is to use Terpdose to get the deposition map, geometry, and then plot on arbitrary geometries using functions like plot_1D / plot_2D / plot_slab.