openmc.Summary¶
-
class
openmc.
Summary
(filename)[source]¶ Information summarizing the geometry, materials, and tallies used in a simulation.
Variables: - openmc_geometry (openmc.Geometry) – An OpenMC geometry object reconstructed from the summary file
- opencg_geometry (opencg.Geometry) – An OpenCG geometry object equivalent to the OpenMC geometry encapsulated by the summary file. Use of this attribute requires installation of the OpenCG Python module.
-
get_cell_by_id
(cell_id)[source]¶ Return a Cell object given the cell id
Parameters: id (int) – Unique identifier for the cell Returns: cell – Cell with given id Return type: openmc.Cell
-
get_lattice_by_id
(lattice_id)[source]¶ Return a Lattice object given the lattice id
Parameters: id (int) – Unique identifier for the lattice Returns: lattice – Lattice with given id Return type: openmc.Lattice
-
get_material_by_id
(material_id)[source]¶ Return a Material object given the material id
Parameters: id (int) – Unique identifier for the material Returns: material – Material with given id Return type: openmc.Material
-
get_surface_by_id
(surface_id)[source]¶ Return a Surface object given the surface id
Parameters: id (int) – Unique identifier for the surface Returns: surface – Surface with given id Return type: openmc.Surface
-
get_universe_by_id
(universe_id)[source]¶ Return a Universe object given the universe id
Parameters: id (int) – Unique identifier for the universe Returns: universe – Universe with given id Return type: openmc.Universe