OpenMC/docs/source/pythonapi/base.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

275 lines
5.5 KiB
ReStructuredText
Raw Normal View History

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
openmc.SourceBase
openmc.IndependentSource
openmc.FileSource
openmc.CompiledSource
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
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
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
openmc.MaterialFromFilter
2017-04-05 07:11:57 -05:00
openmc.CellFilter
openmc.CellFromFilter
openmc.CellBornFilter
openmc.CellInstanceFilter
openmc.CollisionFilter
2017-04-05 07:11:57 -05:00
openmc.SurfaceFilter
openmc.MeshFilter
openmc.MeshBornFilter
openmc.MeshSurfaceFilter
2017-04-05 07:11:57 -05:00
openmc.EnergyFilter
openmc.EnergyoutFilter
openmc.MuFilter
openmc.MuSurfaceFilter
2017-04-05 07:11:57 -05:00
openmc.PolarFilter
openmc.AzimuthalFilter
openmc.DistribcellFilter
openmc.DelayedGroupFilter
openmc.EnergyFunctionFilter
openmc.LegendreFilter
openmc.SpatialLegendreFilter
openmc.SphericalHarmonicsFilter
2021-09-10 13:57:20 -05:00
openmc.TimeFilter
openmc.ZernikeFilter
2018-08-09 11:05:16 -05:00
openmc.ZernikeRadialFilter
openmc.ParentNuclideFilter
2018-07-05 15:32:33 -05:00
openmc.ParticleFilter
openmc.RegularMesh
2019-05-29 22:02:43 -04:00
openmc.RectilinearMesh
2022-01-11 08:18:47 -06:00
openmc.CylindricalMesh
openmc.SphericalMesh
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
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
openmc.ParticleList
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
.. 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:
: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
Variance Reduction
------------------
.. autosummary::
:toctree: generated
:nosignatures:
:template: myclass
openmc.WeightWindows
openmc.WeightWindowGenerator
openmc.hdf5_to_wws
Coarse Mesh Finite Difference Acceleration
------------------------------------------
CMFD is implemented in OpenMC and allows users to accelerate fission source
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.
.. autosummary::
:toctree: generated
:nosignatures:
:template: myclass.rst
openmc.cmfd.CMFDMesh
openmc.cmfd.CMFDRun
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`.