ndiffusion.make_delayed_data¶
- ndiffusion.make_delayed_data(data_list, G, n_mat=None, chi=None)[source]¶
Build a
DelayedNeutronDatafrom 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:
BetaDelayed fraction per precursor group, length
n_precursor. Required.LambdaDecay 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.ChiDelayedDelayed 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.ChiPromptPrompt 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 totalMaterials.chi. Supply it explicitly only whenMaterials.chiis itself the prompt spectrum rather than the total. All-or-nothing: the solver takes onechi_promptarray 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 omitsChiDelayed.
- Returns:
Ready to pass as the
delayedargument of any time-dependent solver.- Return type:
- Raises:
ValueError – If required keys are missing, array shapes disagree, the precursor count is inconsistent between materials, the decay constants differ between materials, or
ChiPromptis supplied for only some materials.
Notes
In fission-matrix mode
Materials.chiis all zeros, so it cannot serve as theChiDelayedfallback - giveChiDelayedexplicitly there. The solver applies the prompt/delayed split to the fission matrix itself, using its column sums as the production cross section.