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.1.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.1.0-py3-none-win_arm64.whl (44.6 kB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mcpl_extra-2.1.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.1.0-py3-none-musllinux_1_2_aarch64.whl (60.7 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_extra-2.1.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.1.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.1.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.1.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.1.0-py3-none-macosx_11_0_arm64.whl (54.6 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_extra-2.1.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.1.0.tar.gz.

File metadata

  • Download URL: mcpl_extra-2.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 4c233addb420e20fd3461d66ff927d3d1f86c7dd22959f047fc9aaa8d66ab5c3
MD5 0c2ab77436501440ff8ae68f0b6162e4
BLAKE2b-256 5d1cf060d52ff4287e44f74a5f7447d461a2b82c1941f0f96c91a99be3af8645

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: mcpl_extra-2.1.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 44.6 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.1.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9f6302c80f8c4479e09a62a4a83391131edeb6e602477f9e6e6c852b8df49216
MD5 ebda6a8b675551c460f806f2a33cd904
BLAKE2b-256 a202f7a0edcc6a166ba76ea66d0f86a8129f6d56b4b90e82562f1d607f38dcef

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: mcpl_extra-2.1.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.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2d61122eb0c6892e44bf1c571bc1e9f2662c1a5710ac9f719e9f5e33d69f339e
MD5 c128afeca9afc4bb001138caeea08305
BLAKE2b-256 92825c1f72e5d4202f02bfb55383233e02167abdf0f66c0ce28d10ee88ace142

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7188f5540963f701703a319994dda767c27cdbd6b3761ce9210676a4a22c8671
MD5 ce3813e36fa0b0515b6a798b805b73b6
BLAKE2b-256 60698cb74f1af6e658c647e358261910a26882b1f752137906157fcde72c84c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b263470326978d809fa319c3fcd4f27a5d74edddd841b052265ea317a0ff83a8
MD5 ac2c730d49591ab8f54daeee35ede7ce
BLAKE2b-256 d65a1efac93af78d0b97ef9565da47afdc4d803aa6c2fecc64a01bf6516ebfbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c86e1caca0d698e691b2ee6552a79fcb9c752e090738be5c9c3f3ff8266a0272
MD5 d1d7564bc1e18fa83f9220fd0b96c05e
BLAKE2b-256 374d37f93e2a545bd300adcdde279ce15049760dda9b64bd06b1bce378c73b86

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.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.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b00ef015995b1b0977f3836963c6edc4b33e619c6bd29a5581f23d251e1ea04
MD5 198317a507d73e882adb87a4870e9bcf
BLAKE2b-256 7dfb366df90c44fdb037d34a8a2636b43fbc9e6ba129bc0b08f5da4c367ee378

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ccf16715c13fad68d1cf6aa718fe5d87434089bfa2de1527c9d6ad08991cffc9
MD5 49e012b293da2c2e01e06766096bcdfa
BLAKE2b-256 7862e747b07e96efed6a81ee23f3c617bda1b9980ae9b930772884323f59de5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cc032d535625bdca87662ed2afe9f596e9f3580e2bb73d71f031af2bc83f13de
MD5 73037c864d8c6970c8ea55ce50dfe9f9
BLAKE2b-256 950ad56f20e2dd77c1228555a182ff45aa69869e94df24fc2940eb643336cd07

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca9aa9ad85cbc80691d258367698915c4254960d38eb5f4e2839afb2e2a2add8
MD5 9cd297c54f52bedf5a67fd498b503a3a
BLAKE2b-256 d28aa72675095c0069f6a0fb099ed185271db12ac53a2ff4d3de87c592c0616f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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.1.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.1.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ec023a4c1c4d9ef1a828ea0b9ad7aa0219cb77f6cd6343588a15bafccc815997
MD5 a9ce54de97ba8c5fd6b7fddc29e9bedf
BLAKE2b-256 1a90cd263d359f7db748cf34e14cb636ad0b126919f2134965bb6947dbedd0c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.1.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