openmc.examples.slab_mg¶
-
openmc.examples.
slab_mg
(reps=None, as_macro=True)[source]¶ Create a one-group, 1D slab model.
Parameters: - reps (list, optional) – List of angular representations. Each item corresponds to materials and dictates the angular representation of the multi-group cross sections—isotropic (‘iso’) or angle-dependent (‘ang’), and if Legendre scattering or tabular scattering (‘mu’) is used. Thus, items can be ‘ang’, ‘ang_mu’, ‘iso’, or ‘iso_mu’.
- as_macro (bool, optional) – Whether
openmc.Macroscopic
is used
Returns: model – One-group, 1D slab model
Return type: