Skip to main content

DOI

Introduction

tokamak-neutron-source is a package that provides a flexible and high-fidelity fusion neutron source for tokamaks in OpenMC and other Monte Carlo radiation transport codes.

Installation

We don't try to manage the installation of your neutronics codes. We recommend you install your neutronics code first. If you are using tokamak-neutron-source to create an OpenMC source you can create a simple install of OpenMC using conda with:

conda install -c conda-forge 'openmc>=0.15.0'

To install the latest release of tokamak-neutron-source

pip install tokamak-neutron-source

Inputs

A tokamak neutron source can be created by specifing the plasma ion density and temperature profiles, and a description of the plasma magneto-hydrodynamic equilibrium.

Profiles can be specified in terms of arrays or as typical parameterisations, such as a parabolic-pedestal parameterisation.

Equilibrium information can be specified via an EQDSK file or as a parameterisation, such as the one found in Fausser et al., 2012.

Outputs

A source object can be used to create an idiomatic source for use in OpenMC or exported as an sdef or h5 file for use in OpenMC and MCNP6.

A neutron source from some arbitrary profiles and a free-boundary equilibrium:

A neutron source from some typical parameterised profiles and a Fausser flux surface parameterisation:

Metadata

Release files for tokamak-neutron-source 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tokamak-neutron-source 0.2.0
File Size Uploaded Provenance Actions
tokamak_neutron_source-0.2.0.tar.gz 1.0 MB With provenance Details for tokamak_neutron_source-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tokamak-neutron-source 0.2.0
File Interpreter ABI Platform Actions
tokamak_neutron_source-0.2.0-py3-none-any.whl Python 3 none any Details for tokamak_neutron_source-0.2.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / tokamak_neutron_source-0.2.0.tar.gz

Download URL tokamak_neutron_source-0.2.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
1f7c94bb01d20f64bc4a28312ebadeb1b34b477796e734682242a2aec82479d2
BLAKE2b-256 checksum
How to use checksums
63c7b911fa1abc1e5946e4ed899a369661095bf41854253b5b257cb70d43e4aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 31, 2026.

Transparency log

Release files / tokamak_neutron_source-0.2.0-py3-none-any.whl

Download URL tokamak_neutron_source-0.2.0-py3-none-any.whl
Size 203.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b404bee920f30fd224f9990022beff01640824bc0db1bf95110a45c79bfede4
BLAKE2b-256 checksum
How to use checksums
02750e33800eb6cdac61f3afe65696f9d7d54c2e926af3edec64cf12c1572984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 31, 2026.

Transparency log

Security for tokamak-neutron-source 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tokamak_neutron_source-0.2.0.tar.gz

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 Mar 31, 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.

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