Skip to main content

Various tools and conversion utilities related to MCPL files.

Project description

MCPL - Monte Carlo Particle Lists

MCPL files, with extensions .mcpl and .mcpl.gz is a binary format for usage in physics particle simulations. It contains lists of particle state information, and can be used to interchange or reuse particles between various Monte Carlo simulation applications. The format itself is formally described in:

T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012

All MCPL code is provided under the highly liberal open source Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0), and further instructions and documentation can be found at https://mctools.github.io/mcpl/.

The mcpl-extra package

The mcpl-extra package is intended to provide tools and conversion utilities related to MCPL files, beyond what is available in the mcpl-core package. This currently includes converters to and from file formats related to PHITS and MCNP(5/X/6).

For more details about how to use these converters, refer to the https://mctools.github.io/mcpl/hooks_mcnp and https://mctools.github.io/mcpl/hooks_phits pages.

Scientific reference

Copyright 2015-2025 MCPL developers.

This software was mainly developed at the European Spallation Source ERIC (ESS) and the Technical University of Denmark (DTU). This work was supported in part by the European Union's Horizon 2020 research and innovation programme under grant agreement No 676548 (the BrightnESS project).

All MCPL files are distributed under the Apache 2.0 license, available at http://www.apache.org/licenses/LICENSE-2.0, as well as in the LICENSE file found in the source distribution.

A substantial effort went into developing MCPL. If you use it for your work, we would appreciate it if you would use the following reference in your work:

T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012

Support for specific third party applications

Note that some users might also wish to additionally install the mcpl-extra package, which contains cmdline tools for converting between the binary data files native to some third-party Monte Carlo applications (currently PHITS and MCNP[X/5/6]). Users of Geant4 might wish to install the mcpl-geant4 package, which provides C++ classes (and CMake configuration code) for integrating MCPL I/O into Geant4 simulations. Finally, many Monte Carlo applications have directly integrated support for MCPL I/O into their codes. At the time of writing, the list of applications with known support from MCPL I/O includes:

  • McStas (built in)
  • McXtrace (built in)
  • OpenMC (built in)
  • Cinema/Prompt (built in)
  • VITESS (built in)
  • RESTRAX/SIMRES (built in)
  • McVine (built in)
  • MCNPX, MCNP5, MCNP6 (based on ssw2mcpl/mcpl2ssw from the mcpl-extra package)
  • PHITS (based on phits2mcpl/mcpl2phits from the mcpl-extra package)
  • Geant4 (based on C++/CMake code from the mcpl-geant4 package)

Note that instructions for installation and setup of third-party products like those listed above are beyond the scope of the MCPL project. Please refer to the products own instructions for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpl_extra-2.2.0.tar.gz (38.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mcpl_extra-2.2.0-py3-none-win_arm64.whl (44.5 kB view details)

Uploaded Python 3Windows ARM64

mcpl_extra-2.2.0-py3-none-win_amd64.whl (50.6 kB view details)

Uploaded Python 3Windows x86-64

mcpl_extra-2.2.0-py3-none-musllinux_1_2_x86_64.whl (58.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mcpl_extra-2.2.0-py3-none-musllinux_1_2_aarch64.whl (60.7 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (57.8 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (58.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (57.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (62.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

mcpl_extra-2.2.0-py3-none-macosx_11_0_arm64.whl (54.6 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_extra-2.2.0-py3-none-macosx_10_9_x86_64.whl (53.4 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file mcpl_extra-2.2.0.tar.gz.

File metadata

  • Download URL: mcpl_extra-2.2.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_extra-2.2.0.tar.gz
Algorithm Hash digest
SHA256 b89c1312ccbd17aa35b2b5276ffce460a4fb86cd27f645bb88eab2af12e335ab
MD5 0d081efeb29557cc9bb27512273d75a0
BLAKE2b-256 9f6f5335c6c5be4c93dc4bd09899736ef2cd07543e48de52b19059752f8eb6af

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0.tar.gz:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: mcpl_extra-2.2.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 44.5 kB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d3fa95ebb69af50646d06905c6d48dbdad1cb15ff396e5c49dac3f2903380a14
MD5 8c325f70e9a6abeff053e6112dc3899a
BLAKE2b-256 18a72c3d4c718048683e495b8189932eed49c9efa3c6a0de7e440299cb111749

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-win_arm64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: mcpl_extra-2.2.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 58b7aee78a61c593be1bb3f89237feb6c03519307605590cf3ead6c5371b64fc
MD5 54ba427f16be3e9a1809acea8ff38404
BLAKE2b-256 0faf67395e1a5fe84b2b23e0911fa5171f7af7ca3af1ac098ce082ea2be4d8ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-win_amd64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6a74a1d2952ba202a01d2ce64bf3a53df06fbf3f329f54d234f60811e14c58e0
MD5 c6906ed3abbac7146149535bd56f4c94
BLAKE2b-256 c2f8cace440ba97dfe41be1467f9365e43ade75fb51722e6f7b943ae5c2c6ed6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-musllinux_1_2_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1c632612d54549eca6a80accd140ee88210861c3f6fb5244a88f94400d066563
MD5 aa2f2999feebc39f95eae39c80864363
BLAKE2b-256 961502a9438486c374d1e3f57a661745a1583d25089d8d2aa099fcbe941ea149

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-musllinux_1_2_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbbf28aa95842b26d5dfe0b55355a744cd1d0af04410497c6f5616e7b8971e0b
MD5 48e2a933f1bd68c88e56cd8b34077459
BLAKE2b-256 9e019d53ea3f025113e772639952458a18c3f482c9983d2708bfdc20eda5dc93

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 967b9fcab386a8484434b304e34dc22892e0b6f6d268ede115d0169f2cfa83b3
MD5 9beceb3f5ef621339018809508752bfa
BLAKE2b-256 8a98a3c5e822523211708ca530568a84e04877f9ea754c2ff3cb5505c683f40e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13a045f32a60b88f075d0940fc7b7bc4210853f5b86228d3d24deff023a62786
MD5 fa17159355a848fe3d131534d8f07d0d
BLAKE2b-256 39f43378dcd42b6d4a3ae8b90d0d90813307499f73a6b34103515221ec7b370b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3791334220788d4a6cf85acf07e96414019cabe8bd2fe5feb9c6ac30c7b52c8a
MD5 5811114024158e370c4ed23bc17ca7eb
BLAKE2b-256 4abb3c86c2f40edda42bf909b384020b95518cd24fabfc9de2bb35ac42344822

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b46b57d171742fbf67ec6ad412eb9249e1765a62137f6c4bec3c6018daba5a76
MD5 f26a8ecfdcbe7b30548c72da5f09e93c
BLAKE2b-256 15dec2589327dae58ca47da5ec43871c745c35f649174f8134972158ed104009

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-macosx_11_0_arm64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_extra-2.2.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 58b5c9f3f7286fcd03d474178b2adf393066b335686a40a20c053453f2ec0b80
MD5 3bd51c2975b92ac4f39de98172f1ac4b
BLAKE2b-256 020e141f44452195432d9c5805393dfff02483384c36f816378d4db071da99ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.0-py3-none-macosx_10_9_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page