ndiffusion.make_delayed_data

ndiffusion.make_delayed_data(data_list, G, n_mat=None, chi=None)[source]

Build a DelayedNeutronData from per-material precursor specs.

Parameters:
  • data_list (dict or list of dict) –

    One spec per material, or a single spec broadcast to every material (the common case - one fuel kinetics parameter set used throughout). Recognized keys:

    Beta

    Delayed fraction per precursor group, length n_precursor. Required.

    Lambda

    Decay constant (1/s) per precursor group, length n_precursor. Required, and must be identical across materials - the decay constants are properties of the precursor nuclides, not the fuel.

    ChiDelayed

    Delayed fission spectrum, shape (n_precursor, G) or (G,) (broadcast to every precursor group). Each row must sum to 1 - a decaying precursor emits exactly one neutron. Defaults to chi.

    ChiPrompt

    Prompt fission spectrum, shape (G,). Optional; when omitted the solver derives it as (chi - sum_i beta_i chi_d,i) / (1 - beta) so that prompt and delayed parts sum back to the total Materials.chi. Supply it explicitly only when Materials.chi is itself the prompt spectrum rather than the total. All-or-nothing: the solver takes one chi_prompt array covering every material and cannot derive individual rows, so either all materials supply it or none do.

    A non-fissile material is written as an all-zero Beta; it then produces no precursors regardless of the other entries.

  • G (int) – Number of energy groups.

  • n_mat (int or None) – Number of materials. Required when data_list is a single spec to broadcast; inferred from the list length otherwise.

  • chi (array-like or None) – Fission spectrum to use as the default ChiDelayed, flat [n_mat * G] (i.e. Materials.chi) or (G,). Required only when a material omits ChiDelayed.

Returns:

Ready to pass as the delayed argument of any time-dependent solver.

Return type:

DelayedNeutronData

Raises:

ValueError – If required keys are missing, array shapes disagree, the precursor count is inconsistent between materials, the decay constants differ between materials, or ChiPrompt is supplied for only some materials.

Notes

In fission-matrix mode Materials.chi is all zeros, so it cannot serve as the ChiDelayed fallback - give ChiDelayed explicitly there. The solver applies the prompt/delayed split to the fission matrix itself, using its column sums as the production cross section.