2015-06-01 12:08:45 +07:00
|
|
|
.. _pythonapi:
|
|
|
|
|
|
|
|
|
|
==========
|
|
|
|
|
Python API
|
|
|
|
|
==========
|
|
|
|
|
|
2015-08-07 12:01:38 +07:00
|
|
|
OpenMC includes a rich Python API that enables programmatic pre- and
|
|
|
|
|
post-processing. The easiest way to begin using the API is to take a look at the
|
2015-08-10 13:11:05 +07:00
|
|
|
example Jupyter_ notebooks provided. However, this assumes that you are already
|
|
|
|
|
familiar with Python and common third-party packages such as NumPy_. If you have
|
|
|
|
|
never programmed in Python before, there are many good tutorials available
|
|
|
|
|
online. We recommend going through the modules from Codecademy_ and/or the
|
|
|
|
|
`Scipy lectures`_. The full API documentation serves to provide more information
|
|
|
|
|
on a given module or class.
|
2015-08-07 12:01:38 +07:00
|
|
|
|
|
|
|
|
**Handling nuclear data:**
|
2015-06-01 12:08:45 +07:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
|
|
ace
|
2015-08-07 12:01:38 +07:00
|
|
|
|
|
|
|
|
**Creating input files:**
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
2015-06-01 12:08:45 +07:00
|
|
|
cmfd
|
|
|
|
|
element
|
|
|
|
|
filter
|
|
|
|
|
geometry
|
|
|
|
|
material
|
|
|
|
|
mesh
|
|
|
|
|
nuclide
|
|
|
|
|
opencg_compatible
|
|
|
|
|
plots
|
|
|
|
|
settings
|
|
|
|
|
surface
|
|
|
|
|
tallies
|
|
|
|
|
trigger
|
|
|
|
|
universe
|
2015-08-07 10:34:14 +07:00
|
|
|
|
2015-08-07 12:01:38 +07:00
|
|
|
**Running OpenMC:**
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
|
|
executor
|
|
|
|
|
|
|
|
|
|
**Post-processing:**
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
|
|
particle_restart
|
|
|
|
|
statepoint
|
|
|
|
|
summary
|
|
|
|
|
tallies
|
|
|
|
|
|
2015-10-11 11:18:52 -04:00
|
|
|
**Multi-Group Cross Section Generation**
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
|
|
mgxs
|
|
|
|
|
energy_groups
|
|
|
|
|
mgxs_library
|
|
|
|
|
|
2015-08-08 09:51:29 +07:00
|
|
|
**Example Jupyter Notebooks:**
|
2015-08-07 10:34:14 +07:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
2015-09-19 07:38:33 +07:00
|
|
|
examples/post-processing
|
2015-08-08 09:51:29 +07:00
|
|
|
examples/pandas-dataframes
|
2015-08-07 10:34:14 +07:00
|
|
|
examples/tally-arithmetic
|
2015-11-30 21:31:34 -05:00
|
|
|
examples/mgxs-part-i
|
|
|
|
|
examples/mgxs-part-ii
|
|
|
|
|
examples/mgxs-part-iii
|
2015-08-10 13:11:05 +07:00
|
|
|
|
|
|
|
|
.. _Jupyter: https://jupyter.org/
|
|
|
|
|
.. _NumPy: http://www.numpy.org/
|
|
|
|
|
.. _Codecademy: https://www.codecademy.com/tracks/python
|
|
|
|
|
.. _Scipy lectures: https://scipy-lectures.github.io/
|