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 |
|
Return the current batch of the simulation. |
|
Export physical properties. |
|
Export weight windows. |
|
Import weight windows. |
|
Finalize simulation and free memory |
|
Find the cell at a given point |
|
Find the material at a given point |
|
Calculate a global bounding box for the model |
|
Mean and standard deviation of the mean for each global tally. |
|
Reset tallies, timers, and pseudo-random number generator state. |
|
Generate a 2-D map of cell and material IDs. |
|
Import physical properties. |
|
Initialize OpenMC |
|
Return whether statepoint will be written in current batch or not. |
|
Iterator over batches. |
|
Return the calculated k-eigenvalue and its standard deviation. |
|
Load cross section data for a nuclide. |
|
Return whether processor is master processor or not. |
|
Run next batch. |
|
Number of realizations of global tallies. |
|
Plot geometry |
|
Generate a 2-D map of cell temperatures and material densities. |
|
Reset tally results |
|
Reset timers. |
|
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. |