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.0.0.tar.gz (38.4 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.0.0-py3-none-win_arm64.whl (44.5 kB view details)

Uploaded Python 3Windows ARM64

mcpl_extra-2.0.0-py3-none-win_amd64.whl (50.5 kB view details)

Uploaded Python 3Windows x86-64

mcpl_extra-2.0.0-py3-none-musllinux_1_2_x86_64.whl (57.8 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mcpl_extra-2.0.0-py3-none-musllinux_1_2_aarch64.whl (60.5 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_extra-2.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (57.5 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mcpl_extra-2.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (58.7 kB view details)

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

mcpl_extra-2.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (57.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mcpl_extra-2.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (62.4 kB view details)

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

mcpl_extra-2.0.0-py3-none-macosx_11_0_arm64.whl (54.5 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_extra-2.0.0-py3-none-macosx_10_9_x86_64.whl (53.2 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file mcpl_extra-2.0.0.tar.gz.

File metadata

  • Download URL: mcpl_extra-2.0.0.tar.gz
  • Upload date:
  • Size: 38.4 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.0.0.tar.gz
Algorithm Hash digest
SHA256 c05cc5d19a23186fa012b3bb405703a3e17f7ddc73be9ae3b2dab47e661b8018
MD5 fd466d83857a9c6770451634a65469c7
BLAKE2b-256 df073b9f4e48481afe5ae5c958808e5505c62c13a591842d6de35b9792f70729

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_extra-2.0.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 44.5 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.0.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 b3c10f207dd48fb8b9643c868cbbcfef27cb268ec0ea612865102fa1c257d159
MD5 90af562e53adbe4783199b9945f0e208
BLAKE2b-256 8cde640f2b9ade18edae8fac499ee8ae77df140c61c260339e413fbc734952d5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcpl_extra-2.0.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 50.5 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.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7094f297203190c71cfe5b58978e060c35df37648415e55486ac1ad9b573dd72
MD5 687a14589e14c695d13e3cb91176ec42
BLAKE2b-256 9b5e55eb74d42f7f415aa39c17762d720d526bbae1171320cb50ad8b85285455

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6465b65b01f5d421daf7fdbb690460c437b9b9a715621efae0d3ba9fc232623a
MD5 4464ad3fc10341764d042901283c1798
BLAKE2b-256 c4c4fb0dd40822daf33b017aec6ab45d4662faa264b9ae86677d57224c853a93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 34f37fd291bfdc59c025545f9dcd68e25c5b781846efe7042adf8a8ccb19e0a2
MD5 c7a91cea02826e19b6189aa0cd54e786
BLAKE2b-256 3555530afcd1a1f275aeb25aaf2505429fe6f55de10c836b7196e581453eba52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d6a38320980fb0edb19ed7e945ec81c9fe5551b3bc7f51555bc31a3b4496d6b
MD5 0416632d0f5df7ca57241dcef0a4fc00
BLAKE2b-256 c427c7a0da3ebf8e2989894ec1284634323eed676f974a8a86e1848ddaadbc42

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_extra-2.0.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.0.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.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e10b3f850c5520b2abe137d93d04250df623af8eb5687f684eef4ef2e7872bd
MD5 95683febfac80eb1dfa2ea7b5ac7675a
BLAKE2b-256 b617752a78bbbba84c395fa9e4dfdfac2f9e9ac9ce411140299012d679924f88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7a83ef48bdde4467d2eeb94737f39a81de573f812bc9542a982d64ae845e00ab
MD5 883d42b24b8edc26c0c105bc1e66159b
BLAKE2b-256 bb0dd386398eefe7cb58b2619a891d9324811a600f98133ec31278efabb64265

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 af9ffb19d6ce56be65cab79606441831038bafe5d39e70a58fabc44be8563b4b
MD5 177ced774bd5eff7a0877c4aceee6454
BLAKE2b-256 0cfc5a42ea01cfe31a9fedd62b387e0adfe9593dbcf14b9f908e28b039ea7b4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09f3274ee3e2535c097a7d2a8b450a25cc38116d66efff59baf5589c7224f0aa
MD5 847febb2185696f2bd951ed586f99d52
BLAKE2b-256 172acbf9301117113476c7012065a3d5b48ab145381b4cb5bae7ff3b63af82f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcpl_extra-2.0.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e0ef2ed8c70d2771e53b304ea7636a08c79e8bd9f29df4e5dbc4d189db0fd521
MD5 a04865928f71bbf9b85b03dc62e448ad
BLAKE2b-256 faf6168dbe33e99ce7a09aba4d3c1aacf4efe41a794dcdc6b3c8d3286fe16a46

See more details on using hashes here.

Provenance

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