Skip to main content

OpenMC Anywhere

OpenMC Monte Carlo Particle Transport Code with unofficial Windows/Apple/Linux pypi wheel (openmc executable + libopenmc shared library).

Let's type pip install openmc-anywhere or uv add openmc-anywhere, and write your script with import openmc

License PyPI

What is OpenMC Anywhere

This is an unofficial binary redistribution of upstream openmc-dev/openmc. The distribution name is openmc-anywhere; the import name is plain openmc, exactly as upstream.

Prebuilt wheel

Target Wheel tag OpenMC HDF5 DAGMC MOAB NJOY
img x86_64-unknown-linux-gnu manylinux_2_28_x86_64 0.16.0 2.1.1 3.2.4 5.6.0 2016.79
img aarch64-unknown-linux-gnu manylinux_2_28_aarch64 0.16.0 2.1.1 3.2.4 5.6.0 2016.79
img x86_64-pc-windows-gnu win_amd64 0.16.0 2.1.1 3.2.4 5.6.0 2016.79
img x86_64-apple-darwin macosx_11_0_x86_64 0.16.0 2.1.1 3.2.4 5.6.0 2016.79
img aarch64-apple-darwin macosx_11_0_arm64 0.16.0 2.1.1 3.2.4 5.6.0 2016.79

Getting-started

import openmc
# A 20 cm sphere of natural lithium driven by a 14.1 MeV point source: the tritium breeding ratio comes out at 0.2683.
li = openmc.Material()
li.add_element("Li", 1.0)
li.set_density("g/cm3", 0.534)
sphere = openmc.Sphere(r=20.0, boundary_type="vacuum")
cell = openmc.Cell(fill=li, region=-sphere)

settings = openmc.Settings(run_mode="fixed source", batches=5, particles=10_000)
settings.source = openmc.IndependentSource(
    space=openmc.stats.Point(), energy=openmc.stats.Discrete([14.1e6], [1.0])
)
tally = openmc.Tally(name="tbr")
tally.filters = [openmc.CellFilter(cell)]
tally.scores = ["H3-production"]

model = openmc.Model(openmc.Geometry([cell]), openmc.Materials([li]), settings, openmc.Tallies([tally]))
with openmc.StatePoint(model.run(output=False)) as sp:
    t = sp.get_tally(name="tbr")
    print(f"openmc {openmc.__version__}  TBR = {t.mean.item():.4f} +/- {t.std_dev.item():.4f}")
$ export OPENMC_CROSS_SECTIONS=/path/to/cross_sections.xml   # data is not bundled
$ pip install openmc-anywhere && python main.py
# or
$ uv add openmc-anywhere && uv run main.py

openmc 0.16.0.0  TBR = 0.2683 +/- 0.0004
openmc.data.IncidentNeutron.from_njoy("n-092_U_235.endf", temperatures=[300, 600, 900])

License

This repository's build tooling is MIT (see LICENSE). The redistributed components keep their own terms: OpenMC (MIT), HDF5 (BSD-3-Clause style), DAGMC (BSD-2-Clause), NJOY2016 (LANL BSD-3-Clause style), and MOAB (LGPL-3.0-or-later). MOAB is statically linked into the openmc executable and into libopenmc, so redistributing these wheels carries the LGPL-3.0 obligations for a Combined Work. MOAB is modified here: see src/moab-*.patch.

Thirdparty Licenses

Every license text is in thirdparty-license/, and each wheel ships the same set under <dist-info>/licenses/thirdparty-license/. thirdparty-license/README.md maps each file to the component and version it covers.

Corresponding Source for every redistributed component is this repository at the tag matching the wheel version. Each component is pinned as a git submodule under src/; git submodule status prints the exact upstream revision. make cross-<triple> at that tag rebuilds these binaries, which is how the relink freedom of LGPL-3.0 §4(d)(0) is provided: substitute your own MOAB and rebuild.

Metadata

Release files for openmc-anywhere 0.16.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for openmc-anywhere 0.16.0.0
File Actions
openmc_anywhere-0.16.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for openmc_anywhere-0.16.0.0-py3-none-win_amd64.whl
openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_x86_64.whl
openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_aarch64.whl
openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_x86_64.whl
openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_arm64.whl

Total release size: 67.9 MB

Release files / openmc_anywhere-0.16.0.0-py3-none-win_amd64.whl

Download URL openmc_anywhere-0.16.0.0-py3-none-win_amd64.whl
Size 14.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2ade1e4eada5200a85609811dd999886a143af55a353fad27accfdfb86fdaf28
BLAKE2b-256 checksum
How to use checksums
4a58749f397b563abffd276a4051d23fda940e04606fe7ae5d814c1bd841ebc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_x86_64.whl

Download URL openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 15.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b8e78825d9fdc057b1faeb1540e7bb10f57c23386f0f52ada3349078f0608f36
BLAKE2b-256 checksum
How to use checksums
e6c69a959443be876f6420c0e67a2c6c4ea8a667a4a245b6ce2e451daa673704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_aarch64.whl

Download URL openmc_anywhere-0.16.0.0-py3-none-manylinux_2_28_aarch64.whl
Size 14.5 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c258e5049733959cb351fd74ee5b53c2dec3b478cb7dfe3176e0c09b79dfe358
BLAKE2b-256 checksum
How to use checksums
8134b6cefc19d1bde2f1d7c600e50d4b7986a5c8e87184ca646d8156378d9a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_x86_64.whl

Download URL openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_x86_64.whl
Size 12.5 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
95dd702595eb9ef74911803376804dd4d50ed1d507aac9a15228c68097551c9b
BLAKE2b-256 checksum
How to use checksums
baa6e771ce9de93b09e8c5c6e15efd3a5a989e36550762bb5ff9107a9972ce3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_arm64.whl

Download URL openmc_anywhere-0.16.0.0-py3-none-macosx_11_0_arm64.whl
Size 11.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
811b1a1c6e42f1f001b63e299ceaefc41b44b3972150ff868211cf5bc38e77be
BLAKE2b-256 checksum
How to use checksums
329e2d9e98e3f9959c5d42006dce48bba3dc32fb9c4189c763958e30c160d01b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for openmc-anywhere 0.16.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.16.0.0 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page