planit
The Planetary Impact Toolkit provides tools for accessing, manipulating, and analysing smoothed particle hydrodynamcis (SPH) impact simulation data, and creating planets for SPH impact simulations.
Philip J. Carter (p.carter@bristol.ac.uk)
Sarah T. Stewart (sstewa56@asu.edu)
Overview
planit currently supports the SPH codes Gadget2-planetary and SWIFT.
makeplanet provides functions for generating adiabatic 1D planet structures and
converting these into (unequilibrated) SPH planets.
snaptools provides the Snapshot class for holding input and output files, calculating
remnant masses, and vapor fractions.
impacttools provides the Impact class for loading and plotting snapshots produced by
an impact simulation.
eos provides classes and functions for accessing and using equations of state.
utils provides additional utility functions for analysis.
Installation
planit is available in PyPI and can be installed with pip install planit.
Equations of State (EoS)
planit currently includes the following EoS:
- ANEOS Forsterite (Stewart et al., 2019):
ANEOSForsterite - ANEOS Iron (Stewart, 2020):
ANEOSIron - ANEOS Fe85Si15 (Stewart, 2020):
ANEOSFeSiAlloy - ANEOS Pyrolite (Stewart et al., 2022):
ANEOSPyrolite - 5-phase Water (Senft & Stewart, 2008):
5PhaseWater - HM80 Hydrogen-Helium (Hubbard & MacFarlane, 1980; Lock & Stewart, 2024):
HM80HHe
They can be accessed using the names given above (as well as some variations) or using the
corresponding SWIFT/WoMa ID number.
User supplied tables in standard SESAME format can also be used.
[!WARNING] HM80 EoS support is not fully tested yet!
Planet generation
planit.makeplanet differs from other planet creation code in that produces planets with
isentropic layers, integrates outwards from the centre of the planet, and ensures the
requested mass and component mass fractions are matched (within tolerance). The default
behaviour prevents the unphyiscal scenario of a core cooler than the mantle at the
core-mantle boundary.
Metadata
Release files for planit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| planit-1.0.0.tar.gz | 68.8 kB | With provenance | Details for planit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| planit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for planit-1.0.0-py3-none-any.whl |
Total release size: 138.6 kB
Release files / planit-1.0.0.tar.gz
| Download URL | planit-1.0.0.tar.gz |
|---|---|
| Size | 68.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3abad64e56306705251f7937cd8c34b17e1a699a7068cc24a607fc438612a3b
|
|
BLAKE2b-256 checksum How to use checksums |
e139000f225057322a3eb3e684da38e7c74d766ac255828b0d35097d20cefb35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / planit-1.0.0-py3-none-any.whl
| Download URL | planit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 69.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fbd880c1030a2ae088589ff157999d52caf11d2b523235054d7fcbdbb6a7cd8
|
|
BLAKE2b-256 checksum How to use checksums |
1b208c19df67e383083011355fa837bb1e4b1a23b2815fd7b6ebcd110a862da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logSecurity for planit 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for planit-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.