saltproc package

Submodules

saltproc.run_saltproc module

saltproc.saltproc module

class saltproc.saltproc.saltproc(steps, cores, nodes, bw, restart=False, input_file='core', db_file='db_saltproc.hdf5', mat_file='fuel_comp')

Bases: object

Class saltproc runs SERPENT and manipulates its input and output files to reprocess its material, while storing the SERPENT run results in a HDF5 database.

init_db()

Initializes the database from the output of the first SEPRENT run

init_indices()

Initializes indices isotopes and groups

main()

Core of saltproc, moves forward in timesteps, run serpent, process fuel, record to db, and repeats

maintain_const(target_isotope, target_adens)

Maintains the constant amount of a target isotope

target_isotope: array
array of indices for isotopes to be refilled
target_adens: float
adens to be satisfied

null.

process_fuel()

processes the fuel from the output of the previous SERPENT run by removing isotopes and refilling with fresh fuel

read_bumat(file_name, moment)

Reads the SERPENT .bumat file

moment: int
moment of depletion step (0 for BOC and 1 for EOC)
isolib_array: np array
array of isotopes
bu_adens: list
list of isotopes adens
mat_def: str
material definition in SERPENT with volume and density
read_res(moment)

Reads using PyNE the SERPENT output .res file

moment: int
moment of depletion step (0 for BOC and 1 for EOC)

[mean_keff, uncertainty_keff]

record_db()

Records the processed fuel composition, Keff values, waste tank composition to database

refill(refill_iso, delta_adens)

Refills isotope with target rate of refuel

refill_iso: array
array of indices for isotopes to be refilled
delta_adens: float
adens to be refilled

null.

remove_iso(target_iso, removal_eff)

Removes isotopes with given removal efficiency

target_iso: array
array of indices for isotopes to remove from core
removal_eff: float
removal efficiency (max 1)
tank_stream: array
array of adens of removed material
reopen_db(restart)

Reopens the previously exisiting database

restart: bool
if True, modified current_step and datasets if False, simply load the datasets
run_serpent()

Runs SERPENT with subprocess with the given Args

write_mat_file()

Writes the input fuel composition input file block

null. creates SEPRENT input mat block text file

saltproc.version module

Module contents