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.4.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.4-py3-none-win_arm64.whl (45.3 kB view details)

Uploaded Python 3Windows ARM64

mcpl_extra-2.2.4-py3-none-win_amd64.whl (50.4 kB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (57.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_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.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (57.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mcpl_extra-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_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.4-py3-none-macosx_11_0_arm64.whl (56.1 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_extra-2.2.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for mcpl_extra-2.2.4.tar.gz
Algorithm Hash digest
SHA256 d9bc56bea5987b14f42a8fc4dbd1c217987369f8982fdd711ee822d90b0ba729
MD5 55a97059d17431e23c34b371f3e35de6
BLAKE2b-256 812b5fa8e4d9a9934113938d139e5aaac2696aeed7a76287931934b7029dc567

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 fa50cc71c554fd2edbd013c761a26241c16f6e56cf7c599668e0eae583ab02f2
MD5 4c83462e2f0372d4ad506c2ec0033190
BLAKE2b-256 439c4be409a13066ae7ae12bfe3937ca93e95b8fb68f16506f51a753db0bde21

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9cfde47ebd984c3b62ba0a8f4e40e38bab96aac01319cec90bde76592d6ec9e6
MD5 2e0a509b1d196d2f67956d6470341d4b
BLAKE2b-256 a6f77d472bcc76a8f961127b6913fa095a70c1fd431e610e48062569ee59c9c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0df5e2d828b98feadae28348b8462ef3ece4aa0fbefc01c2e7688255c1b37d3a
MD5 0c2b07c7512e7ee1616748ebc8cad279
BLAKE2b-256 85d0bb00e2fb9f153c380f05c144adc21107173b0e5da6ed53ecd9ae3d9bb90a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f962276489986f183818649155f054089d02ab80afd257d8806743aabc3bcd4d
MD5 4ecaf0da267faabdf44518834d3b896a
BLAKE2b-256 92aa4e65d882ae3b57b291ebade25ad45abd1b53149d5c9917d6af35c3739098

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6c02ab7b8ec152cce9d3fbd7c608e5da659830b624e8ff762e0295a7083cbeaa
MD5 2ed0981e5bbcb5fd1ef4fd234a8e84d2
BLAKE2b-256 fab2118861ce7a92cd9b248d41527d5f91d8a03074da2a3d5d168019b3452983

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_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.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5f1aa67f4f53e095cb3c97620814dac4d994abedb9ea87c868f978e72298ef00
MD5 ecde5ace7f854f976ccafa5b7ece3460
BLAKE2b-256 7b3d460fae98b3e8540a5a21cddad8d5859ad96edc652c1a9f2afdcba9f2b8e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_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.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d2b1dc4ba91ff6a8025e6fb0bf94414a27d75dbbbe8f084856ab34c6e32ea3f8
MD5 c13f9fab78647ba15c7feabefcc5807a
BLAKE2b-256 3fe8159dc55936aea730db18a5981d29a8f944996a5b11212a10aec1c283dc58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 615616d33c3619925fdd7f3c9cd2d828ed48dfead50c60042b177c81f164e08e
MD5 407026d7745a1e9f7d9cf61ef81dac7e
BLAKE2b-256 34373f76e6a2ad6f978fec6c6c3aebebad2b664d885b3069299ce386f7d56cc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_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.4-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f14f1dd373cbc02bb741e3a52ae5df35640ea78fb58283cf40203d1eea511e28
MD5 74e148d97537c7a310ec04d6cf4320ed
BLAKE2b-256 168029dba8c78d126d7b607a0df4bfef8f2ce2b509a0f261ac1c071612ad8184

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.2.4-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 398eebaeee94ba067a52d49ab66036c6414d52306e88511f816cc2a2e9c34e43
MD5 9c1a01cd5f3923bec220cda76a0b96d5
BLAKE2b-256 cd53f0c73076c42260c61d477c69ec97a83369eedbb8139e0ce90086b00efa98

See more details on using hashes here.

Provenance

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