CINDER Data – pyne.dbgen.cinder

This module locates, parses, and adds CINDER cross section and fission product yield data to nuc_data.h5. Note that this module requires that the cinder.dat file exist within the DATAPATH directory. This often requires that MCNPX is installed.

All functionality may be found in the cinder module:

from pyne.dbgen import cinder

CINDER Data API

This module provides a way to locate, parse, and store CINDER cross sections.

pyne.dbgen.cinder.get_fp_sizes(raw_data)[source]

Gets the number of fission product yield data sets in this file.

Parameters
datastr

Input cinder.dat data file as a string.

Returns
N_nint

The number of neutron fission product yield datasets in the file.

N_g int

The number of photon fission product yield datasets in the file.

pyne.dbgen.cinder.get_group_sizes(raw_data)[source]

Gets the number of nuclides and groups in this data file.

Parameters
raw_datastr

Input cinder.dat data file as a string.

Returns
nuclidesint

The number of nuclides in the dataset

G_nint

The number of neutron energy groups in the dataset

G_pint

The number of proton energy groups in the dataset

G_gint

The number of photon energy groups in the dataset

pyne.dbgen.cinder.grab_cinder_dat(build_dir='', datapath='')[source]

Grabs the cinder.dat file from the DATAPATH directory if not already present.

pyne.dbgen.cinder.grab_photon_fp_info(raw_data)[source]

Grabs the photon fission product info.

Parameters
raw_datastr

string of the cinder.dat data file.

Returns
info_tablearray

Structured array with the form “(index, nuc, type, mass)”.

pyne.dbgen.cinder.make_cinder(args)[source]

Controller function for adding cinder data.

pyne.dbgen.cinder.make_mg_absorption(nuc_data, build_dir='')[source]

Adds the absorption reaction rate cross sections to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_mg_fission(nuc_data, build_dir='')[source]

Adds the fission reaction rate cross sections to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_mg_gamma_decay(nuc_data, build_dir='')[source]

Adds the gamma decay spectrum information to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_mg_group_structure(nuc_data, build_dir='')[source]

Add the energy group bounds arrays to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_neutron_fp_info(nuc_data, build_dir='')[source]

Adds the neutron fission product yield info to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_neutron_fp_yields(nuc_data, build_dir='')[source]

Adds the neutron fission product yields to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_photon_fp_info(nuc_data, build_dir='')[source]

Adds the photofission product yield info to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.make_photon_fp_yields(nuc_data, build_dir)[source]

Adds the photofission product yields to the hdf5 library.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory with cinder.dat file.

pyne.dbgen.cinder.parse_neutron_fp_info(raw_data)[source]

Grabs the neutron fission product info.

Parameters
raw_datastr

string of the cinder.dat data file.

Returns
info_tablearray

Structured array with the form “(index, nuc, type, mass)”.

pyne.dbgen.cinder.safe_decode(b, encs=None, 'utf-8', 'latin-1')[source]

Tries to decode a bytes array in a few different ways.