Skip to main content

YAMC

Yet Another Monte Carlo. Geometry, materials and a neutron or photon source in; fluxes, heating, tritium production, transmuted materials and shutdown dose rates out.

Try it online 🌐 | Documentation 📝 | PyPI 🐍

The browser version needs no install and no account. It is the same Rust transport engine compiled to WebAssembly, against the same continuous-energy data. The simulation runs on your machine; nothing is uploaded.

pip install yamc
import yamc

# pick a neutron data library, downloaded on demand
yamc.neutron_cross_section_data = "endf-b8.1"

# make your own or use inbuilt material definitions
steel = yamc.materials.pnnl.material("Steel, Stainless 316")
breeder = yamc.Material(
    composition={"Li": yamc.enriched(2.0, target="Li6", percent=60.0), "Si": 1.0, "O": 4.0},
    density=2.4,
)

# build the geometry from surfaces and cells
first_wall = yamc.Sphere(radius=100.0)
blanket = yamc.Sphere(radius=101.0)
outer = yamc.Sphere(radius=150.0, boundary="vacuum")
plasma_cell = yamc.Cell(region=first_wall.below)
wall_cell = yamc.Cell(region=first_wall.above & blanket.below, material=steel)
blanket_cell = yamc.Cell(region=blanket.above & outer.below, material=breeder)
geometry = yamc.Geometry([plasma_cell, wall_cell, blanket_cell])

# a 14.06 MeV D-T fusion neutron point source
source = yamc.NeutronSource(energy=14.06e6)

# score tritium production in the blanket and heating in each cell
tbr = yamc.Tally(scores=["H3-production"], cells=blanket_cell)
heating = yamc.Tally(scores=["heating"], cells=[wall_cell, blanket_cell])

# run on every CPU core until every tally bin passes its statistical checks
model = yamc.Model(geometry=geometry, source=source, tallies=[tbr, heating])
results = model.simulate_transport()

# every result carries its statistical uncertainty
print("TBR", results[tbr].mean, "+/-", results[tbr].standard_deviation)
print("heating", results[heating].mean, "eV per source neutron")

What it solves

Continuous-energy neutron and photon transport over CSG, CAD or mesh geometry, on CPU or GPU, with tallies, variance reduction, transport-coupled transmutation and shutdown dose rates. The solver is Rust; the wheel needs no compiler and no external toolchain.

Transmutation without transport

If you already have a spectrum and do not need transport, install yani instead. It uses the same materials, schedules and nuclear data, without the geometry.

Licence

Dual-licensed under either of

at your option.

Metadata

Release files for yamc 0.29.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 yamc 0.29.0
File Actions
yamc-0.29.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for yamc-0.29.0-cp310-abi3-win_amd64.whl
yamc-0.29.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.10 abi3 PyEmscripten 2026.0+ WebAssembly Details for yamc-0.29.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl
yamc-0.29.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for yamc-0.29.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
yamc-0.29.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for yamc-0.29.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 91.9 MB

Release files / yamc-0.29.0-cp310-abi3-win_amd64.whl

Download URL yamc-0.29.0-cp310-abi3-win_amd64.whl
Size 34.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b1dbeec095be2e1df7e241aad479852f27c13e0b3bade9c81426b9c3e249c21e
BLAKE2b-256 checksum
How to use checksums
4d26cd14cad903e68a12151ce7fd9d02b601e1ca5eb274c87a78cfa60bab88e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / yamc-0.29.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl

Download URL yamc-0.29.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl
Size 6.7 MB
Tags CPython 3.10 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
1a771b1a0136364a21df5fcc107399ae58fd1d5eab3f46325ab1da1a41b3968d
BLAKE2b-256 checksum
How to use checksums
0ae1c4a2b9db196b17f43a246ab4a81faec62c003de65179999b837209476dfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / yamc-0.29.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL yamc-0.29.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 35.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b20c4bfc65062cac882df44bd5e502f2a2226a5eb084a0d20a754897c7f693f7
BLAKE2b-256 checksum
How to use checksums
54156b8624dabf79b70a767b4c856d99ce97da9334a49eac30d3de7b1c40a13c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / yamc-0.29.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL yamc-0.29.0-cp310-abi3-macosx_11_0_arm64.whl
Size 15.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
be36bd20684e426aed95144c605d407b5e25e8888ffa6d24367ec2768d869ccc
BLAKE2b-256 checksum
How to use checksums
3aeb37d144c689ddf494d3464d50916d497db7a4869bb597e285080a51a75c4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for yamc 0.29.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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for yamc-0.29.0-cp310-abi3-win_amd64.whl

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 Nov 29, 2026.

Transparency log

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.29.0 This release

4 release files Full 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