ndiffusion.Materials

class ndiffusion.Materials

Cross-section data for all materials and energy groups.

All arrays are flat (row-major):

D, removal, chi : [n_mat * n_groups]
nusigf          : [n_mat * n_groups]  (standard mode)
                  [n_mat * n_groups * n_groups]  (fission-matrix mode,
                   nusigf[m][g_to][g_from]) - activated when chi is all zeros
scatter         : [n_mat * n_groups * n_groups]  (scatter[m][g_to][g_from])
velocity        : [n_groups]  neutron speed (cm/s)

Fields read back as 1-D numpy arrays. Each read is a copy, so assign a whole array to change one; editing an element of the copy does nothing. Any array-like of the right total size can be assigned, and multi-dimensional arrays are flattened in C order - scatter can be given as an (n_mat, n_groups, n_groups) array, for example.

__init__(self: ndiffusion._core.Materials) → None

Methods

__init__(self)

Attributes

property D
property chi
property n_groups
property n_mat
property nusigf
property removal
property scatter
property velocity