Skip to main content

OpenMC Anywhere

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

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.15.3.post214 2.1.1 3.2.4 5.6.0 2016.79
img aarch64-unknown-linux-gnu manylinux_2_28_aarch64 0.15.3.post214 2.1.1 3.2.4 5.6.0 2016.79
img x86_64-pc-windows-gnu win_amd64 0.15.3.post214 2.1.1 3.2.4 5.6.0 2016.79
img x86_64-apple-darwin macosx_11_0_x86_64 0.15.3.post214 2.1.1 3.2.4 5.6.0 2016.79
img aarch64-apple-darwin macosx_11_0_arm64 0.15.3.post214 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.15.3.0  TBR = 0.2683 +/- 0.0004
openmc.data.IncidentNeutron.from_njoy("n-092_U_235.endf", temperatures=[300, 600, 900])
[tool.uv.sources]
openmc-anywhere = { index = "openmc-anywhere" }

[[tool.uv.index]]
name = "openmc-anywhere"
url = "https://lzpel.github.io/openmc-anywhere/wheel/"

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

openmc_anywhere-0.15.3.0-py3-none-win_amd64.whl (14.8 MB view details)

Uploaded Python 3Windows x86-64

openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_x86_64.whl (14.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_aarch64.whl (14.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_x86_64.whl (12.4 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_arm64.whl (11.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file openmc_anywhere-0.15.3.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: openmc_anywhere-0.15.3.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 14.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}

File hashes

Hashes for openmc_anywhere-0.15.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5d7273fe0cba52d95f88e3c9321c619e0116038d510ff5204305cb9795b6f29f
MD5 24606115873e6eaec71fae666073c585
BLAKE2b-256 9e2f11257ab22468e980e21da814ecef2b11061cdbbeaddc289a60bc9dddca16

See more details on using hashes here.

File details

Details for the file openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 14.9 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}

File hashes

Hashes for openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e182c2c71bc21bbe0a4bbff1a782ad2c2ea86fe09df3f393ca89a5c3951329ef
MD5 34c97c3cf5aea91a63542ea480330c7c
BLAKE2b-256 7006b56d237cec78268e672a9157e387a9c8db0f79f80e93929c903e39d79833

See more details on using hashes here.

File details

Details for the file openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}

File hashes

Hashes for openmc_anywhere-0.15.3.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5cb91c42969f8dce7e0ef1ab64f09fd7967a73c2e03aa0648f3a11bb745b0e67
MD5 0c64b3e87e624e1b59b55308ea785bc2
BLAKE2b-256 219f6a915da13303b945b040a8285c6d2a03af46d499e72b2d8f3db1a632e639

See more details on using hashes here.

File details

Details for the file openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 12.4 MB
  • Tags: Python 3, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}

File hashes

Hashes for openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3e3c6a236a79a009affd0dbfb95c643e1471f522b45ed709b1d2c1f9929b087f
MD5 89207c4b7844afff82a9943cd0319061
BLAKE2b-256 f8e118f62f9248ea98d634cd13e8aa9031a6b5a8096473b4f1f5706b255c2de6

See more details on using hashes here.

File details

Details for the file openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.0 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}

File hashes

Hashes for openmc_anywhere-0.15.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf1665d523f5a492fe8ab8cc7191a5342938a2d8ec051dd6b0c8f66072c04205
MD5 4d78df5684b226ca24bdc70f2204e342
BLAKE2b-256 131b8e7bfefe131a18877c48980ebb92ebfe5cec8b4de8ac7a1ecda662e1833b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.16.0.0

5 files

This release

0.15.3.0 This release

5 files

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