openmc.lib
– Python bindings to the C/C++ API¶
This module provides bindings to C/C++ functions defined by OpenMC shared
library. When the openmc.lib
package is imported, the OpenMC shared
library is automatically loaded. Calls to the OpenMC library can then be via
functions or objects in openmc.lib
, for example:
openmc.lib.init()
openmc.lib.run()
openmc.lib.finalize()
Functions¶
Run stochastic volume calculation |
|
Export physical properties. |
|
Finalize simulation and free memory |
|
Find the cell at a given point |
|
Find the material at a given point |
|
Reset tallies, timers, and pseudo-random number generator state. |
|
Import physical properties. |
|
Initialize OpenMC |
|
Iterator over batches. |
|
Return the calculated k-eigenvalue and its standard deviation. |
|
Load cross section data for a nuclide. |
|
Run next batch. |
|
Number of realizations of global tallies. |
|
Plot geometry |
|
Reset tally results |
|
Run simulation |
|
Provides context manager for calling OpenMC shared library functions. |
|
Sample external source |
|
Initialize simulation |
|
Finalize simulation |
|
Return source bank as NumPy array |
|
Write a statepoint file. |
Classes¶
Cell stored internally. |
|
Material stored internally. |
|
Nuclide stored internally. |
|
RegularMesh stored internally. |
|
Tally stored internally. |