The repository or configuration that created this release differ from a previous release. View details.
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
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
Metadata
Release files for yamc 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| yamc-0.28.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for yamc-0.28.0-cp310-abi3-win_amd64.whl |
| yamc-0.28.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl | CPython 3.10 | abi3 | PyEmscripten 2026.0+ WebAssembly | Details for yamc-0.28.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl |
| yamc-0.28.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.28.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| yamc-0.28.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for yamc-0.28.0-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 91.6 MB
Release files / yamc-0.28.0-cp310-abi3-win_amd64.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | yamc-0.28.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 34.3 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c8d29001a56e2b1b03b3042c1a505d31c25c560d9b7b61677d92eef034bdc3ba
|
|
BLAKE2b-256 checksum How to use checksums |
03cfabbc6057e368a15dad87b44b7a5cb561a224ff9c3a65fb9f1594f2786620
|
| 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 27, 2026.
Transparency logRelease files / yamc-0.28.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | yamc-0.28.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 |
6e34471084087a9d8a3ae5d255745a327704cb608373db15bb4e104241e3d8a4
|
|
BLAKE2b-256 checksum How to use checksums |
5fa96203a25da9bf7f38d6138cb855aa5404bf5edc568c7a4f87c7d29cbbd9ba
|
| 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 27, 2026.
Transparency logRelease files / yamc-0.28.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | yamc-0.28.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 35.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c4c7547d647305f90fc1608e27a6fe51bae2ee1876c33b1248d1a48576a1d22c
|
|
BLAKE2b-256 checksum How to use checksums |
67b0a0cdcce6b06605bb21a79506fc5440531ccbb8660c5c8f0194dacfc9bae8
|
| 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 27, 2026.
Transparency logRelease files / yamc-0.28.0-cp310-abi3-macosx_11_0_arm64.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | yamc-0.28.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 |
2cf2b7d617807604b344669d9aec0bd041900713d3bab05a766a160b16492291
|
|
BLAKE2b-256 checksum How to use checksums |
1f5074c8056b8567af491b5dc12e8a9ca775b981e2cbe0cffc74c695a95b37e8
|
| 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 27, 2026.
Transparency logSecurity for yamc 0.28.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.
Change of provenance
The repository and configuration that created this release differ from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 0.27.0 github.com/fusion-neutronics/yamc
- Added 0.28.0 github.com/fusion-neutronics/yamc-and-yani
Attestation for yamc-0.28.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 27, 2026.
Transparency logA 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.