Skip to main content

yamc-core

Yet Another Monte Carlo: neutron and photon transport for fusion neutronics. Constructive solid and mesh geometry, coupled neutron-photon transport, CAD import, flexible tallies and transport-coupled transmutation, with the whole solver in Rust.

This is the compiled distribution, and it provides the yamc module itself, so the import name and the distribution name differ (as pillow provides PIL). Install yamc rather than this: it pins the matching version of this wheel and is where the documentation lives.

import yamc

# A point source inside a Li/Be sphere.
inner = yamc.Sphere(x0=0, y0=0, z0=0, radius=1.0)
outer = yamc.Sphere(x0=0, y0=0, z0=0, radius=200.0, boundary="vacuum")

breeder = yamc.Material(
    composition={"Li6": 0.035, "Li7": 0.465, "Be9": 0.5},
    density=2.0,
    temperature=294,
)
breeder.read_nuclear_data({
    "Be9": "tests/Be9.arrow",
    "Li6": "tests/Li6.arrow",
    "Li7": "tests/Li7.arrow",
})

void = yamc.Cell(name="void", region=inner.below)
blanket = yamc.Cell(name="blanket", region=inner.above & outer.below, material=breeder)
geometry = yamc.Geometry([void, blanket])

source = yamc.NeutronSource(
    energy=yamc.sources.fusion_neutron_spectrum(20000.0),
    position=(0, 0, 0),
)
tally = yamc.Tally(name="tbr", cells=blanket, scores=["H3-production"])

model = yamc.Model(geometry=geometry, tallies=[tally], source=source)
results = model.simulate_transport(total_particles=250_000, seed=1)
print(results[tally].mean)

Relationship to yani

yamc is a superset: it ships everything yani has (materials, decay data, irradiation schedules, inventories) plus neutron and photon transport, geometry, tallies and transport-coupled transmutation. The two are alternatives. Installing both puts two extension modules in one process, so yamc.Material and yani.Material are distinct types and the nuclear-data configuration (cross_section_data, the four transmutation_* sources) exists twice, once per package.

Pick yamc when the neutron spectrum should come from a transport solve; pick yani when you have a spectrum already and want none of the transport stack.

What it does not do

  • Fixed-source transport only. No criticality or eigenvalue calculations.
  • One transmutation stepper (ForwardEulerStepper, beginning-of-step rates). No predictor-corrector.
  • No sensitivity or uncertainty propagation, and no pathway analysis.

Metadata

Release files for yamc-core 0.12.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-core 0.12.0
File Interpreter ABI Platform
yamc_core-0.12.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
yamc_core-0.12.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
yamc_core-0.12.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 51.6 MB

Release files / yamc_core-0.12.0-cp310-abi3-win_amd64.whl

Download URL yamc_core-0.12.0-cp310-abi3-win_amd64.whl
Size 20.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
584521eba76bccc8ea2ef16378119976c473d93c961e1b8d0141d905c710178b
BLAKE2b-256 checksum
How to use checksums
9dc0ba3d8f6a1bd2dee7ba0474b7db497bf96447a79d717178ec3c99d3c2c322
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 Sep 19, 2026.

Transparency log

Release files / yamc_core-0.12.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL yamc_core-0.12.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 21.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
11b1877cb7acbe249a52f13882f48b30e390b69c29583aa8bebbecc71d768002
BLAKE2b-256 checksum
How to use checksums
21435d1865546f1cf1ceac78d8c536d5fd9f4537a897c6dfecbc4f63d8f3c8cb
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 Sep 19, 2026.

Transparency log

Release files / yamc_core-0.12.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL yamc_core-0.12.0-cp310-abi3-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5675957e8b0c27b718776abc01ea2fbe67fd5912290700824f69cd953d75a82d
BLAKE2b-256 checksum
How to use checksums
18af9469796a1c163050cb23161a12a9ec3f777b5f7865905e431ffc96707412
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 Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.13.0

3 release files

This release

0.12.0 This release

3 release files

0.11.0

3 release files

0.9.0

3 release 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