2017-04-05 07:11:57 -05:00
|
|
|
------------------------------------
|
|
|
|
|
:mod:`openmc` -- Basic Functionality
|
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
|
|
Handling nuclear data
|
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.XSdata
|
|
|
|
|
openmc.MGXSLibrary
|
|
|
|
|
|
|
|
|
|
Simulation Settings
|
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
2023-09-01 21:43:19 -05:00
|
|
|
openmc.SourceBase
|
|
|
|
|
openmc.IndependentSource
|
|
|
|
|
openmc.FileSource
|
|
|
|
|
openmc.CompiledSource
|
2023-12-02 11:35:23 -06:00
|
|
|
openmc.MeshSource
|
2020-10-14 15:16:50 -05:00
|
|
|
openmc.SourceParticle
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.VolumeCalculation
|
|
|
|
|
openmc.Settings
|
|
|
|
|
|
2020-10-14 15:16:50 -05:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myfunction.rst
|
|
|
|
|
|
2024-02-16 15:16:36 -06:00
|
|
|
openmc.read_source_file
|
2020-10-14 15:16:50 -05:00
|
|
|
openmc.write_source_file
|
2022-03-17 22:26:26 -05:00
|
|
|
openmc.wwinp_to_wws
|
2020-10-14 15:16:50 -05:00
|
|
|
|
2017-04-05 07:11:57 -05:00
|
|
|
Material Specification
|
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Material
|
|
|
|
|
openmc.Materials
|
|
|
|
|
|
|
|
|
|
Cross sections for nuclides, elements, and materials can be plotted using the
|
|
|
|
|
following function:
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myfunction.rst
|
|
|
|
|
|
|
|
|
|
openmc.plot_xs
|
|
|
|
|
|
|
|
|
|
Building geometry
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Plane
|
|
|
|
|
openmc.XPlane
|
|
|
|
|
openmc.YPlane
|
|
|
|
|
openmc.ZPlane
|
|
|
|
|
openmc.XCylinder
|
|
|
|
|
openmc.YCylinder
|
|
|
|
|
openmc.ZCylinder
|
|
|
|
|
openmc.Sphere
|
|
|
|
|
openmc.Cone
|
|
|
|
|
openmc.XCone
|
|
|
|
|
openmc.YCone
|
|
|
|
|
openmc.ZCone
|
|
|
|
|
openmc.Quadric
|
2021-12-22 09:53:34 -05:00
|
|
|
openmc.XTorus
|
|
|
|
|
openmc.YTorus
|
|
|
|
|
openmc.ZTorus
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.Halfspace
|
|
|
|
|
openmc.Intersection
|
|
|
|
|
openmc.Union
|
|
|
|
|
openmc.Complement
|
2023-04-18 22:04:46 -05:00
|
|
|
openmc.BoundingBox
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.Cell
|
|
|
|
|
openmc.Universe
|
2022-01-11 08:18:47 -06:00
|
|
|
openmc.DAGMCUniverse
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.RectLattice
|
|
|
|
|
openmc.HexLattice
|
|
|
|
|
openmc.Geometry
|
|
|
|
|
|
|
|
|
|
Many of the above classes are derived from several abstract classes:
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Surface
|
|
|
|
|
openmc.Region
|
|
|
|
|
openmc.Lattice
|
|
|
|
|
|
|
|
|
|
.. _pythonapi_tallies:
|
|
|
|
|
|
|
|
|
|
Constructing Tallies
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Filter
|
|
|
|
|
openmc.UniverseFilter
|
|
|
|
|
openmc.MaterialFilter
|
2023-11-09 17:05:42 +01:00
|
|
|
openmc.MaterialFromFilter
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.CellFilter
|
2017-06-28 18:58:28 -04:00
|
|
|
openmc.CellFromFilter
|
2022-11-09 16:34:46 -06:00
|
|
|
openmc.CellBornFilter
|
2019-12-02 14:57:00 -06:00
|
|
|
openmc.CellInstanceFilter
|
2021-03-25 14:21:58 -04:00
|
|
|
openmc.CollisionFilter
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.SurfaceFilter
|
|
|
|
|
openmc.MeshFilter
|
2024-04-04 16:32:21 -05:00
|
|
|
openmc.MeshBornFilter
|
2018-03-16 14:38:37 -05:00
|
|
|
openmc.MeshSurfaceFilter
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.EnergyFilter
|
|
|
|
|
openmc.EnergyoutFilter
|
|
|
|
|
openmc.MuFilter
|
2024-10-04 02:07:03 -03:00
|
|
|
openmc.MuSurfaceFilter
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.PolarFilter
|
|
|
|
|
openmc.AzimuthalFilter
|
|
|
|
|
openmc.DistribcellFilter
|
|
|
|
|
openmc.DelayedGroupFilter
|
|
|
|
|
openmc.EnergyFunctionFilter
|
2017-09-05 10:14:46 -05:00
|
|
|
openmc.LegendreFilter
|
2018-03-29 10:19:27 -05:00
|
|
|
openmc.SpatialLegendreFilter
|
|
|
|
|
openmc.SphericalHarmonicsFilter
|
2021-09-10 13:57:20 -05:00
|
|
|
openmc.TimeFilter
|
2018-03-29 10:19:27 -05:00
|
|
|
openmc.ZernikeFilter
|
2018-08-09 11:05:16 -05:00
|
|
|
openmc.ZernikeRadialFilter
|
2025-02-21 11:47:38 -06:00
|
|
|
openmc.ParentNuclideFilter
|
2018-07-05 15:32:33 -05:00
|
|
|
openmc.ParticleFilter
|
2019-06-06 17:04:07 -04:00
|
|
|
openmc.RegularMesh
|
2019-05-29 22:02:43 -04:00
|
|
|
openmc.RectilinearMesh
|
2022-01-11 08:18:47 -06:00
|
|
|
openmc.CylindricalMesh
|
|
|
|
|
openmc.SphericalMesh
|
2020-03-18 17:21:41 -05:00
|
|
|
openmc.UnstructuredMesh
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.Trigger
|
|
|
|
|
openmc.TallyDerivative
|
|
|
|
|
openmc.Tally
|
|
|
|
|
openmc.Tallies
|
|
|
|
|
|
|
|
|
|
Geometry Plotting
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Plot
|
2025-02-17 21:11:54 -06:00
|
|
|
openmc.WireframeRayTracePlot
|
|
|
|
|
openmc.SolidRayTracePlot
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.Plots
|
|
|
|
|
|
|
|
|
|
Running OpenMC
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myfunction.rst
|
|
|
|
|
|
|
|
|
|
openmc.run
|
|
|
|
|
openmc.calculate_volumes
|
|
|
|
|
openmc.plot_geometry
|
|
|
|
|
openmc.plot_inline
|
|
|
|
|
openmc.search_for_keff
|
|
|
|
|
|
|
|
|
|
Post-processing
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.Particle
|
2024-10-05 03:51:56 -03:00
|
|
|
openmc.ParticleList
|
2022-05-20 10:41:38 -05:00
|
|
|
openmc.ParticleTrack
|
2017-04-05 07:11:57 -05:00
|
|
|
openmc.StatePoint
|
|
|
|
|
openmc.Summary
|
2022-05-17 07:33:55 -04:00
|
|
|
openmc.Track
|
2022-05-25 16:58:20 -05:00
|
|
|
openmc.Tracks
|
2017-04-05 07:11:57 -05:00
|
|
|
|
2023-04-26 12:34:05 -05:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myfunction.rst
|
|
|
|
|
|
|
|
|
|
openmc.voxel_to_vtk
|
|
|
|
|
|
2018-08-21 10:21:01 -05:00
|
|
|
The following classes and functions are used for functional expansion reconstruction.
|
2018-08-17 16:40:17 -05:00
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
2018-11-24 00:13:37 -05:00
|
|
|
:template: myclass.rst
|
2018-08-17 16:40:17 -05:00
|
|
|
|
|
|
|
|
openmc.ZernikeRadial
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myfunction.rst
|
|
|
|
|
|
|
|
|
|
openmc.legendre_from_expcoef
|
|
|
|
|
|
|
|
|
|
|
2017-04-05 07:11:57 -05:00
|
|
|
Various classes may be created when performing tally slicing and/or arithmetic:
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
|
|
|
|
openmc.arithmetic.CrossScore
|
|
|
|
|
openmc.arithmetic.CrossNuclide
|
|
|
|
|
openmc.arithmetic.CrossFilter
|
|
|
|
|
openmc.arithmetic.AggregateScore
|
|
|
|
|
openmc.arithmetic.AggregateNuclide
|
|
|
|
|
openmc.arithmetic.AggregateFilter
|
2018-11-24 00:13:37 -05:00
|
|
|
|
2023-06-09 10:47:27 -05:00
|
|
|
Variance Reduction
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass
|
|
|
|
|
|
|
|
|
|
openmc.WeightWindows
|
|
|
|
|
openmc.WeightWindowGenerator
|
|
|
|
|
openmc.hdf5_to_wws
|
|
|
|
|
|
|
|
|
|
|
2018-11-24 00:13:37 -05:00
|
|
|
Coarse Mesh Finite Difference Acceleration
|
|
|
|
|
------------------------------------------
|
|
|
|
|
|
2018-12-11 18:00:06 -05:00
|
|
|
CMFD is implemented in OpenMC and allows users to accelerate fission source
|
2019-01-29 05:55:54 -06:00
|
|
|
convergence during inactive neutron batches. To use CMFD, the
|
|
|
|
|
:class:`openmc.cmfd.CMFDRun` class executes OpenMC through the C API, solving
|
|
|
|
|
the CMFD system between fission generations and modifying the source weights.
|
|
|
|
|
Note that the :mod:`openmc.cmfd` module is not imported by default with the
|
|
|
|
|
:mod:`openmc` namespace and needs to be imported explicitly.
|
2018-12-11 18:00:06 -05:00
|
|
|
|
2018-11-24 00:13:37 -05:00
|
|
|
.. autosummary::
|
|
|
|
|
:toctree: generated
|
|
|
|
|
:nosignatures:
|
|
|
|
|
:template: myclass.rst
|
|
|
|
|
|
2019-01-29 05:55:54 -06:00
|
|
|
openmc.cmfd.CMFDMesh
|
|
|
|
|
openmc.cmfd.CMFDRun
|
2018-11-24 00:13:37 -05:00
|
|
|
|
2019-01-29 05:55:54 -06:00
|
|
|
At the minimum, a CMFD mesh needs to be specified in order to run CMFD. Once the
|
|
|
|
|
mesh and other optional properties are set, a simulation can be run with CMFD
|
|
|
|
|
turned on using :meth:`openmc.cmfd.CMFDRun.run`.
|