openmc.model.Model¶
-
class
openmc.model.
Model
(geometry=None, materials=None, settings=None, tallies=None, cmfd=None, plots=None)[source]¶ Model container.
This class can be used to store instances of
openmc.Geometry
,openmc.Materials
,openmc.Settings
,openmc.Tallies
,openmc.Plots
, andopenmc.CMFD
, thus making a complete model. TheModel.export_to_xml()
method will export XML files for all attributes that have been set. If theModel.materials()
attribute is not set, it will attempt to create amaterials.xml
file based on all materials appearing in the geometry.Parameters: - geometry (openmc.Geometry, optional) – Geometry information
- materials (openmc.Materials, optional) – Materials information
- settings (openmc.Settings, optional) – Settings information
- tallies (openmc.Tallies, optional) – Tallies information
- cmfd (openmc.CMFD, optional) – CMFD information
- plots (openmc.Plots, optional) – Plot information
Variables: - geometry (openmc.Geometry) – Geometry information
- materials (openmc.Materials) – Materials information
- settings (openmc.Settings) – Settings information
- tallies (openmc.Tallies) – Tallies information
- cmfd (openmc.CMFD) – CMFD information
- plots (openmc.Plots) – Plot information