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-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_core-2.2.4.tar.gz (89.1 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.4-py3-none-win_arm64.whl (167.7 kB view details)

Uploaded Python 3Windows ARM64

mcpl_core-2.2.4-py3-none-win_amd64.whl (184.5 kB view details)

Uploaded Python 3Windows x86-64

mcpl_core-2.2.4-py3-none-musllinux_1_2_x86_64.whl (138.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

mcpl_core-2.2.4-py3-none-macosx_10_9_x86_64.whl (119.2 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: mcpl_core-2.2.4.tar.gz
  • Upload date:
  • Size: 89.1 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.4.tar.gz
Algorithm Hash digest
SHA256 4134077b1f908d707b0c948c8a8eaf7557ebd21749a91b24c465bb77c76a1cde
MD5 6fa330560033a823d85f3deb7b3603d5
BLAKE2b-256 40f6fca2e573dbe407793ef19f8ff8b971eef5060c19ae210839222cacf42fc4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_core-2.2.4-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.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 02600dcda941215c47ecbd5b5b1e5d82ae3e79e91ad1223767687f4524d707df
MD5 6d2d558323e90d8bb5d098fcd5ff0265
BLAKE2b-256 b10d53e0f6d7f24fd797815fde1d31620e56a5041f8ed8cdf7ff8464c46a9f91

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_core-2.2.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 184.5 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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 49522ad50e933354347c7df4523b20fde6fcfbcdd5a90edec24e14bf85f65509
MD5 ec951e93e962e17739bed2db76f06497
BLAKE2b-256 5f85fdc6c1849af59cd045567268181844fff71616e5eaf9c8a0620b52fca145

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7a4e05df6ff640a9d6917a45d8a836402529e4257727395aed6942e5b219a24
MD5 b115f9b7aacba6162beb8d00dd52dcff
BLAKE2b-256 6bfdb12e2c4647a2ff26e3d01d68a64577d5e3712174f2a8d29082c376fdc732

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 098ebc145a41d616fb5029b6349441211469055a952c209c7a24ee6cc18424cf
MD5 14277a860f55cbf7dcd80669de35b411
BLAKE2b-256 327942595efd76c6493c1bc2904dd762c2020e55128b2ac728b082bb1fd6f922

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2bd3684a9da84667065b6a86de54e33e0106d774394f1c8081e33abce88a3032
MD5 b3900ff30ff8909454c27068a9f84542
BLAKE2b-256 8eb078877fc7f33f3421e5857a5424838667320516d7fef7eab5f3624998964e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-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_core-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_core-2.2.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aec41f107c7fc767c31cca04fbf63e77523b4220c64404ede2d6a451e859f261
MD5 1b4bc5a6b532a0136ed8de077965b2cd
BLAKE2b-256 9be8ea9610a165079e786a11e368b4bf6a977cdcbda304f501b2e50ce8121d08

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 868ce1d142d91ccaa9214e255b8d9d29b9f5246db40eb78579489cccd3930714
MD5 25285a20e17d4239b815c5a52d3dd4ff
BLAKE2b-256 449607e703091abb02ed1fbe2178f6b0e5cdbd078f0823899e9008efa0456fa9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f781e715ef864f10fb120cef1cc99d5750aaa4fb4c28364eac065630b5f6485a
MD5 62517e15a7ae411be3925bbb344d03cc
BLAKE2b-256 6f933ac2493785d0d1c4331102ff5b127b0952f3fd8c0174d3b3bc032a7f4a70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7623cf7cdfc3c86d53152cbc9d3570a96798675e15a6a28800ae91fc07eb02a
MD5 d4a7bb5139eec43505e690c50e90da1c
BLAKE2b-256 2ea2cac25b9b71a2fa9b592ae31cb987939225d4cdb9b860cf7d2e78fbc1c18d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_core-2.2.4-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 17a3625f4ae9fa2b63e4014a62b5b6df47665b51272ecde1996235fb080978c0
MD5 44202f9949dbd90f60485ed32ef6584e
BLAKE2b-256 f07432b05f4493dc9a164cd4aed05b987ebb5812005c742ccf93090121acbe3e

See more details on using hashes here.

Provenance

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