Skip to content

A small python library to read multigroup nuclear data libraries.

Notifications You must be signed in to change notification settings

tflaspoehler/BUGLE-VITAMIN-reader

Repository files navigation

BUGLE-VITAMIN-reader

I developed a python class that reads cross-sections libraries with the 'bcd' file extension with the BUGLE and VITAMIN shielding libraries in mind. The libraries can be loaded by a simple command:

from reader import *
book = multigroup_library(file_name)

The fine-group VITAMIN and coarse-group BUGLE libraries are multigroup shielding libraries that have useful cross sections for different isotopes and compositions that have been collapsed with different weighting spectrums that are representative of regions in typical shielding materials. Updated versions are available through RSICC where they are developed by the transport group that develops SCALE. The MAVRIC shielding library is based on this with a higher energy group to go to 20MeV for neutrons (and maybe photons). The same libraries from MAVRIC are provided in ADVANTG.

I also have included a demo.py file that can be edited to plot different distributions from a loaded library like the following:

alt text

This is simply called with something similar:

from reader import *
from xs_plot import *

book = multigroup_library(file_name)
energy = [float(b.replace('\n','').replace('\r','')) for b in open('neutron_groups.dat').readlines()]

isos = [1137, 2065, 2001, 249, 95]
values = []
titles = []
for i in isos:
    values += book.get_mt(i, [2])
    titles.append(book.nuclides[i].name)
    
xs_plot(energy, values, titles)

About

A small python library to read multigroup nuclear data libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages