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.9.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.9.0
File Interpreter ABI Platform
yamc_core-0.9.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
yamc_core-0.9.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.9.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 40.8 MB

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

Download URL yamc_core-0.9.0-cp310-abi3-win_amd64.whl
Size 16.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6f6caa9067bda242d1e1bafafe363bb0999ee75a1e7b8d776c8a5df3587b84ce
BLAKE2b-256 checksum
How to use checksums
fa0d62eccfd9e2c7b573650cc415893aa17c06f3b582e4a1b61aacae90de9ac4
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 Aug 30, 2026.

Transparency log

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

Download URL yamc_core-0.9.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 16.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
bc3e7d1cad521e606906fa5329d4c9c60d30d305808961d5508db9d45d1408b9
BLAKE2b-256 checksum
How to use checksums
dfe8bde018ed813af6ac95329e876184fd4cb3c3c3ee48b29cb0ba9e383837b0
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 Aug 30, 2026.

Transparency log

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

Download URL yamc_core-0.9.0-cp310-abi3-macosx_11_0_arm64.whl
Size 8.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5839286e895f1068513b75b9561cf55d38b243b578f4609cee020a07b263517c
BLAKE2b-256 checksum
How to use checksums
d2d732cec882fb8231094f3766b873eb200ad1c05f61cab9c78854cc8c5c5158
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 Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.13.0

3 release files

0.12.0

3 release files

0.11.0

3 release files

This release

0.9.0 This release

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