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

Total release size: 41.6 MB

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

Download URL yamc_core-0.11.0-cp310-abi3-win_amd64.whl
Size 16.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0e1a30efec3f781ed080d3b43b29c8c8f0736be5aaeedf01834f0318507547d1
BLAKE2b-256 checksum
How to use checksums
194ebf3b613900c01d61b35a23d7805e069cab4dce353b416d9577754f859d84
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 11, 2026.

Transparency log

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

Download URL yamc_core-0.11.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 16.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f04b895a0be1c6255f2f1a07b6ba5c6450b0237c9865bda06e38c4b853d95fea
BLAKE2b-256 checksum
How to use checksums
3b497e8def428c1d694ee9d50dfac26cbc1d09ca711573603bcf22d05fa2ebe1
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 11, 2026.

Transparency log

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

Download URL yamc_core-0.11.0-cp310-abi3-macosx_11_0_arm64.whl
Size 8.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cdd41daf769843c7148e76797f526280410be2cb5fb447ea3b2d473df29c6b59
BLAKE2b-256 checksum
How to use checksums
e66890eb4e077ba61377cc98a8854a85344a12ec089a61828f2e025928787f6d
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 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.13.0

3 release files

0.12.0

3 release files

This release

0.11.0 This release

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