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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

mcpl_core-2.2.6-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.6-py3-none-musllinux_1_2_aarch64.whl (138.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_core-2.2.6-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.6-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.6-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.6-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.6-py3-none-macosx_11_0_arm64.whl (118.0 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_core-2.2.6-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.6.tar.gz.

File metadata

  • Download URL: mcpl_core-2.2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 e5154310a6550fd9e80c6f2afc1d3f516437e47f42bcb6e907cdf2f5c641ea36
MD5 3fb00d134e6b97de428fbae14ebac30a
BLAKE2b-256 339c187fe00db8824d0c6f18ae9fcd2316806cefa534604d629502634a426d3d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_core-2.2.6-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.6-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d5740f1e534931769de059dfb44b0bd07aeb09708ae5027110031470b82a921c
MD5 4f27373a86b07f9b133f651fc3ed0792
BLAKE2b-256 2cb52579b30ea09b273a7b8382950cd1c4d65a1ef14606b0e1dc36f47cdc3b2d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_core-2.2.6-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.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c57c4db95f440579f41efbe7470460b6d68cf085e9d3d20ccca5e7b0ad5ff274
MD5 c3ac5dbc0fbea0b7b75b8300fe90252a
BLAKE2b-256 735f0ff17adc78edadb58ce29300e3576ef957f0d44a6bedf666a72e4a50b69a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 92bd6d210c40d81d602a6fddcb4b1bc293e56dbec8010bc42878ec46ec62abbc
MD5 49d2cc3694a27cb1894537b81d253036
BLAKE2b-256 462d2d2b496976cf489f8e26a7e24869b7974f85a2d6efb76befd0068c5fda99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 05a2ebfb39917edcc1cd5a3c89ce0d0e5a5e092403efac341a5ebbcb9ed4462e
MD5 ad0f348cb2a0cd8a415465a697d705f9
BLAKE2b-256 9db1d1862a606cac559921984ca7f761278cee47abc12a158dff3000977ab3c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4647a4ce076b5f65754c79057cfca19dd6260909c708f54dbc91e01bdcf6049d
MD5 3ec8e1bbf057b0948f12411103c13c35
BLAKE2b-256 de2205eca0c1f399f32f61e1262eeb9ade6a7400700f6a68527298c24691e755

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.6-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.6-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.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d7b54aaed064a5ee87f6d8b47b94917d815141af9d801d0ff9d19e7e3a6cf12
MD5 b223e493bba2862e4ee70aa9a72a044f
BLAKE2b-256 c7f1ce6c6f50474512ef43e7758ac3e32647b53325c617e07222640b3d44ab91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e3b80794a1c39df4200e135304ab7e30d7af7a6269f4c885a294c4f3475c120e
MD5 20c7dd7f0e5c1b3bd1dda44cda05033d
BLAKE2b-256 72567e8a8d4cc00532ee54f5b328c8bcfaebf254a5c788f72f5848507407ec2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4061ecf6fadbb3ab9878be4b5f1f66cb4bb71e86a3f945b052fcab3862835ce0
MD5 424d66d7f0149f250e34955de1570c8c
BLAKE2b-256 bf80c83d3d60f68d94cf104b17742ebdb4c620b146c908c2671aad32accebfe4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d890f8a15d4c48b1ffaed051408c1d33802ce83c6a925b7adb79a9b9648d5fb2
MD5 dfa82e39214302b65d0a4b8d54d59668
BLAKE2b-256 59174f42de6296f18918b3841f3b12de3934ea4542753deddc64bd5fdf33b4a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.6-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06a6e95ce71696b09dfdea315fb628e5e3c4dae67e7ca6ff398a3c9d873565d8
MD5 48a56af0fe07322134cc2b6be1fb6bb6
BLAKE2b-256 89afae22c84785ea25c1edb1ea97f8127aadf67f5b701fb9555271a0f9914de6

See more details on using hashes here.

Provenance

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