Skip to main content

Utilities and API for accessing MCPL (.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-core package

The mcpl-core package provides:

  • The mcpltool, a command-line utility for working with MCPL files. For more information about this tool, refer to the https://mctools.github.io/mcpl/usage_cmdline page.
  • The C/C++ API in the form of the mcpl.h header file and associated shared library. For more information about this API, refer to the https://mctools.github.io/mcpl/usage_c page.
  • Configuration utilities for working with the C/C++ API in downstream projects. Specifically, CMake configuration code and the mcpl-config command-line utility are provided.

In addition to the links above, several examples of how to use the C/C++ API, including how to configure a downstream CMake-based project, is provided in the https://github.com/mctools/mcpl/tree/HEAD/examples directory.

Note that it is recommmended for most users to simply install the package named mcpl, rather than referring to the package named mcpl-core directly.

Scientific reference

Copyright 2015-2026 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_core-2.2.8.tar.gz (89.2 kB view details)

Uploaded Source

Built Distributions

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

mcpl_core-2.2.8-py3-none-win_arm64.whl (167.7 kB view details)

Uploaded Python 3Windows ARM64

mcpl_core-2.2.8-py3-none-win_amd64.whl (184.4 kB view details)

Uploaded Python 3Windows x86-64

mcpl_core-2.2.8-py3-none-musllinux_1_2_x86_64.whl (137.9 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mcpl_core-2.2.8-py3-none-musllinux_1_2_aarch64.whl (138.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (133.3 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mcpl_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (135.7 kB view details)

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

mcpl_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (130.1 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mcpl_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (135.9 kB view details)

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

mcpl_core-2.2.8-py3-none-macosx_11_0_arm64.whl (118.0 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_core-2.2.8-py3-none-macosx_10_9_x86_64.whl (122.7 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file mcpl_core-2.2.8.tar.gz.

File metadata

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

File hashes

Hashes for mcpl_core-2.2.8.tar.gz
Algorithm Hash digest
SHA256 9dea5b722aee98f456690fc6b66d2cb785291ca020f3b5d9d30ec236ee45803f
MD5 657d7ab0247307fa4d9b136eb657e8f2
BLAKE2b-256 2f4f2cafc9958b2861a6cdde968ef4026dab86c2ac961cf9e204c4c0a9ed4b07

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8.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_core-2.2.8-py3-none-win_arm64.whl.

File metadata

  • Download URL: mcpl_core-2.2.8-py3-none-win_arm64.whl
  • Upload date:
  • Size: 167.7 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_core-2.2.8-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 977a1defd8a8b1b92d237c0aa4b847ad51566b94892f56ce0f02d9783bcec218
MD5 72340a2b1b6616cc309783b39917eae1
BLAKE2b-256 7f94f7ecf39257eb8a1ce38083cf1db9e1608a4299e70d4d7c16969a17f5a64d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-win_amd64.whl.

File metadata

  • Download URL: mcpl_core-2.2.8-py3-none-win_amd64.whl
  • Upload date:
  • Size: 184.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_core-2.2.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 41569c34454343166a94b17b8f5bdfbbcc5de9973d06f736328506331f0e429a
MD5 5ff1ce89c8d55639059e97a226dff056
BLAKE2b-256 870642b497da036406c19afd1a64a776fa0c85ee731e4e5af8e9accab47a298e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 183ad5962c97d6e30c54aa3c9f463ea12e786eaa595aaa36f7e0acaf12343a77
MD5 c0b0a40a08fdff394719bf6860c75bbe
BLAKE2b-256 a2f919b19cce87631c7f6c34350ffc1b545bb27a0b96507162f7e0fbffc000d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 00df3b996aefdd89b4c72a9af3098be3b3df488a515970983b88b54e9202a8f8
MD5 844cef8320436bb90c0abdb3afed518e
BLAKE2b-256 951bc9eaa785226aec37074755fa093000d0edb38fba2aca01c098a38d758687

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d687252f633de7be6aea44b2e71ed8d146a9d968d0b287a6a3ec72bef4c44b33
MD5 f88074882a762752c022939c8234dc25
BLAKE2b-256 4eaea2f6eb7a7fd2784759c9f0f51ade67e3151ae50b27e09895720f210a1685

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab7bed1e93b97ae5654cbb976fe95c9b3e47694987a74bb98ebf99402aadb1cf
MD5 614e7fa18621b0c32f9792a056e9b13d
BLAKE2b-256 3a2ad19142c1be6ea226a477afcd8916a3ed66a6fb68ff27600e2a9928509bcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 58ae34e6c51e86174769d4a11a8a6976b70fd9a7eb855d43136d2ba6e0ee87a6
MD5 9a287d0f91d5f0a981966e4c2aac6713
BLAKE2b-256 314cd84f164e101feeaa0e67ac6a1e933064e70bb94973f28a261a6354e4b977

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e9e94bab14b27cd75d08fb71140e2cc37f627e9b38a4b61e77c5f79c4ffb1c35
MD5 bd64cb68c3bf808bc8cabcfd95be9c6d
BLAKE2b-256 5bc1d48c3898c11713dd2cd4b8abd78bdaf98f02ef569dbaa5ca64506511fd65

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c413d09b32e842aedf10a126dde08d29e50028edd34c24cdf1182beac3c008a1
MD5 2024d8cb9156a3830a04d3f6e2b7d45f
BLAKE2b-256 e8f517d42fbf0b179df45dd7eae2aaf3c1f8b2e1c6bb976be95b38e17d64f078

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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_core-2.2.8-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.8-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5e8645186932508a6b86300efe29177c2ee66f6c14b198d4f3fcdc2d8a6b58e2
MD5 c27a1d003834c7e938de512edbecad49
BLAKE2b-256 b9004e96db3e06c0ab93b707a84f7d1d9f954d7a0278ab7297c06490e4220390

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.8-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