saltproc.Materialflow

class saltproc.Materialflow(comp=None, comp_is_density=False, density=None, volume=1.0, mass_flowrate=0.0, void_frac=0.0, burnup=0.0, **kwargs)[source]

Class contains information about burnable material flow. Child class of openmc.Material.

Parameters
  • comp (dict of str to float) – Dictionary mapping element or nuclide names to their weight percent.

  • density (float) – Material density [g/cm^3]

  • volume (float) – Material volume [cm^3]

  • mass_flowrate (float) – mass flow rate of the material flow [g/s]

  • void_frac (float) – void fraction in the material [%]

  • burnup (float) – material burnup at the end of depletion step [MWd/kgU]

  • kwargs (dict) – Key-word arguemnts for openmc.Material

get_mass(nuc=None, openmc=False)[source]

Return mass of one or all nuclides.

Note that this method requires that the Material.volume has already been set.

Parameters

nuclides (str, optional) – Nuclide for which mass is desired. If not specified, the density for the entire material is given.

Returns

Mass of the nuclide/material in [g]

Return type

float

print_attr()[source]

Prints various attributes of Materialflow object.

replace_components(comp, comp_is_density=False)[source]

Replace and normalize the material composition

Parameters
  • comp (dict of str to float) – Dictionary mapping element or nuclide names to their atom or weight percent.

  • percent_type ({'wo', 'ao'}) – ‘ao’ for atom percenta nd ‘wo’ for weight percent.

scale_matflow(f=1.0)[source]

Returns nuclide vector dictionary, obtained from object attrs and then scaled by factor.

Parameters

f (float) – Scaling factor.

Returns

new_mat_comp – Nuclide component dictionary of relative mass.

key

The keys are preserved from PyNE Material (integers representing nuclides in id-form).

value

factor f.

Return type

dict of int to float