Accretion and dynamical evolution of a system of protoplanets via giant impacts.
Project description
Morrigan
Morrigan is the protoplanet accretion module of the PROTEUS coupled atmosphere-interior evolution framework. It follows a system of protoplanets, the planetary embryos of the post-disk stage, through the giant impacts and gravitational scattering by which they accrete, tracking how each collision changes the masses and orbits of the bodies that survive. It implements the semi-analytical Monte Carlo model of Kimura et al. (2025).
Named after Morrigan, a shapeshifting figure from Irish mythology thought to represent the dynamical nature of existence.
Installation
git clone git@github.com:FormingWorlds/Morrigan.git
cd Morrigan
pip install -e .
Running a model
Settings live in a .toml file; initialise.toml in the repository root is a worked example covering the number of systems, the embryo masses, the stellar mass, and how long to evolve for.
morrigan -c initialise.toml
Keeping several settings files side by side and pointing at whichever you want is the reason for the -c flag. The repository ignores *.toml apart from initialise.toml, so a settings file you want to keep alongside the results it produced has to be added to git explicitly.
Results are written under the save_directory named in the settings file. A relative save_directory is taken from the directory you run the command in, not from wherever the settings file happens to live, so the run prints the full path it is writing to:
| Path | Contents |
|---|---|
data/full_systems/ |
State of every planet through time |
data/mergers/ |
One row per collision: the bodies involved and the collision velocity |
data/survivors/ |
Final mass, orbit, and eccentricity of each surviving planet |
batch_summary.csv |
Runtime and surviving-planet count for each system |
To plot the results of a run, point the plotting script at the same settings file:
pip install -e ".[plot]"
python plot.py -c initialise.toml
plot.py is a script kept in the repository rather than part of the installed package, so it is run from a checkout. Its plotting dependencies (matplotlib, scipy) are in the plot extra, which keeps them out of the way of anything that only wants to import the model.
Documentation
The full documentation, including the model physics, the PROTEUS coupling contract, and the per-source validation anchors, lives at proteus-framework.org/Morrigan. Build it locally with pip install -e ".[docs]" and zensical serve.
Testing
pip install -e ".[develop]"
pytest -m "(unit or smoke) and not skip"
The suite is tiered (unit and smoke on every pull request, seed-ensemble statistics nightly) and every physics routine is pinned against a published value, an analytical limit, or a cross-implementation check; see the documentation's testing guide for the full contract.
Reproducibility
Each system's seed is mixed from random_seed in the settings file and the system's own index, so a given settings file reproduces the same systems exactly and two ensembles with neighbouring seeds are independent of each other.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fwl_morrigan-26.7.27.tar.gz.
File metadata
- Download URL: fwl_morrigan-26.7.27.tar.gz
- Upload date:
- Size: 824.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
850e29299d3a61db824f3e589d7ef068f542cdef253f1caf946452aeed65ea08
|
|
| MD5 |
70b053cb60791b750a1ec09216303ba5
|
|
| BLAKE2b-256 |
88810ad620a96a67d28a96b8bfeb0c7437c5b213be9065bb372799ab47471bc8
|
Provenance
The following attestation bundles were made for fwl_morrigan-26.7.27.tar.gz:
Publisher:
publish.yaml on FormingWorlds/Morrigan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fwl_morrigan-26.7.27.tar.gz -
Subject digest:
850e29299d3a61db824f3e589d7ef068f542cdef253f1caf946452aeed65ea08 - Sigstore transparency entry: 2256557823
- Sigstore integration time:
-
Permalink:
FormingWorlds/Morrigan@31951aed9236d4f3f08ee1fb5d4207d0d3cf6e00 -
Branch / Tag:
refs/tags/26.07.27 - Owner: https://github.com/FormingWorlds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@31951aed9236d4f3f08ee1fb5d4207d0d3cf6e00 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fwl_morrigan-26.7.27-py3-none-any.whl.
File metadata
- Download URL: fwl_morrigan-26.7.27-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec17a5a572323885d81c3a10640832e5af29479125a81b0439b8928bb3596a40
|
|
| MD5 |
ddd19c236ded211f5db2584ca6833b03
|
|
| BLAKE2b-256 |
30b207d69b7421ff38b71e29a6ccbdb72c4b17fd80d6c7b380419b7f6369d50b
|
Provenance
The following attestation bundles were made for fwl_morrigan-26.7.27-py3-none-any.whl:
Publisher:
publish.yaml on FormingWorlds/Morrigan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fwl_morrigan-26.7.27-py3-none-any.whl -
Subject digest:
ec17a5a572323885d81c3a10640832e5af29479125a81b0439b8928bb3596a40 - Sigstore transparency entry: 2256557837
- Sigstore integration time:
-
Permalink:
FormingWorlds/Morrigan@31951aed9236d4f3f08ee1fb5d4207d0d3cf6e00 -
Branch / Tag:
refs/tags/26.07.27 - Owner: https://github.com/FormingWorlds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@31951aed9236d4f3f08ee1fb5d4207d0d3cf6e00 -
Trigger Event:
release
-
Statement type: