openmc-feedbacks
An importable wrapper around OpenMC depletion. The package accepts a prepared
OpenMC Model or a directory containing OpenMC XML inputs and runs depletion
with one function. Provide the reactor geometry, materials, temperatures,
volumes, cross-section data, and depletion chain for your calculation.
Install
Install OpenMC and its nuclear data according to the OpenMC documentation, then install this package:
pip install .
Install the released package with:
pip install openmc-feedbacks
Documentation
The full user guide can be found here: openmc-feedbacks documentation
Ordinary depletion
import openmc
from openmc_feedbacks import run_depletion
run_depletion(
model="model", # directory containing geometry.xml, materials.xml, settings.xml, etc.
timesteps=[1, 7, 30, 90],
timestep_units="d",
power=160e6, # watts
chain_file="data/chain.xml",
output_dir="depletion-results",
)
Soluble-species feedback
Provide a named material containing the soluble species at the stated reference concentration. The controller scales the listed nuclide atom densities together, leaving every other nuclide in the material untouched. Species concentration units are intentionally user-defined, so the same controller can represent ppm boron, ppm gadolinium, or another soluble absorber when the reference material has been prepared consistently.
from openmc_feedbacks import FeedbackControl, run_depletion
control = FeedbackControl(
material_name="Primary coolant",
nuclides=("B10", "B11"),
reference_concentration=1000, # ppm represented by the model densities
minimum=0,
maximum=1000,
target_keff=1.005,
search_particles=5000,
search_batches=30,
search_inactive=5,
)
run_depletion(
model="model", # directory containing the OpenMC XML inputs
timesteps=[1, 7, 30],
power=160e6,
chain_file="data/chain.xml",
control=control,
output_dir="controlled-results",
)
Citation
Citation metadata is provided in CITATION.cff.
Metadata
Release files for openmc-feedbacks 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openmc_feedbacks-0.1.0.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openmc_feedbacks-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / openmc_feedbacks-0.1.0.tar.gz
| Download URL | openmc_feedbacks-0.1.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ffa6fb8f1ea2e813ec293f1e9d48b53a5233747af0a1abd3d3ec7ed54fd9e5f
|
|
BLAKE2b-256 checksum How to use checksums |
804ba72f72990bcf0603a3de88f2a36ccb0f92fd0f8a448e23c88ab4460f0df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / openmc_feedbacks-0.1.0-py3-none-any.whl
| Download URL | openmc_feedbacks-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9ddc2bb075c4f3ccd88c0c8c0d3107cf2842ad1180aa4de357eaa56eb8c1efd
|
|
BLAKE2b-256 checksum How to use checksums |
4cfc7bd1a0efe4e2e7405bb8a0c21c2ee876d52a819d2ea44d3e85fcfbefb18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency log