openmc.examples.slab_mg

openmc.examples.slab_mg(num_regions=1, mat_names=None, mgxslib_name='2g.h5')[source]

Create a 1D slab model.

Parameters
  • num_regions (int, optional) – Number of regions in the problem, each with a unique MGXS dataset. Defaults to 1.

  • mat_names (Iterable of str, optional) – List of the material names to use; defaults to [‘mat_1’, ‘mat_2’,…].

  • mgxslib_name (str, optional) – MGXS Library file to use; defaults to ‘2g.h5’.

Returns

model – One-group, 1D slab model

Return type

openmc.model.Model