Skip to main content

The virtual planet simulator

Project description

VPLanet: The Virtual Planet Simulator

The First VPLanet Developers Workshop will take place June 8-11, 2021!
Register here by May 31, 2021.


ascl:1811.017

Overview

VPLanet is software to simulate planetary system evolution, with a focus on habitability. Physical models, typically consisting of ordinary differential equations, are coupled together to simulate evolution, from planetary cores to passing stars, for the age of a system. We strive for full transparency and reproducibility in our software, and this repository contains 1) the source code, 2) extensive documentation, 3) scripts and files to generate published figures and perform parameter sweeps, and 4) scripts to validate the current release. We can't claim we found aliens with closed source software!

To get started, ensure you have clang/gcc installed and follow the Installation Guide. To stay up to date on this repository, follow it on twitter.

Modules

VPLanet currently consists of 12 functioning "modules," each containing a set of equations that simulates a specifc physical process:

AtmEsc: Roche lobe overflow and thermal escape (energy-limited and radiation-recombination-limited) of an atmosphere, including water photolyzation, hydrogen escape, oxygen escape, and oxygen build-up.

Binary: Orbital evolution of a single circumbinary planet.

DistOrb: 2nd and 4th order semi-analytic models of orbital evolution outside of resonance.

DistRot: Evolution of a world's rotational axis due to orbital evolution and the stellar torque.

EqTide: Tidal evolution in the equilibrium tide framework.

GalHabit: Evolution of a wide orbit due to the galactic tide and impulses from passing stars (including radial migration).

MagmOc: Thermal and geochemical evolution of a magma ocean.

POISE: Energy balance climate model including dynamic ice sheets and lithospheric compression/rebound.

RadHeat: Radiogenic heating in a world's core, mantle, and crust.

SpiNBody: N-body integrator for the evolution of a system of massive particles.

Stellar: Evolution of a star's bolometeric and XUV luminosity, temperature, radius, and mass concentration. Also includes magnetic braking and stellar wind spin-down.

ThermInt: Thermal interior evolution, including magnetic fields, for planets undergoing plate tectonics or stagnant lid evolution.

Many of these modules can be combined together to simulate numerous phenomena and feedback loops in planetary systems.

Resources

The examples/ directory contains input files and scripts for generating the figures in Barnes et al. (2020) and subsequent publications. The Manual/ directory contains the pdf of Barnes et al. (2020), which describes the physics of the first 11 modules, validates the software against observations and/or past results, and uses figures from the examples/ directory.

An ecosystem of support software is also publicly available. In this repo, vspace/ contains scripts to generate input files for a parameter space sweep, and then use multi-planet/ to perform the simulations on an arbitrary number of cores. bigplanet/ contains scripts to store large datasets in HDF5 format and quickly calculate summary properties from an integration, such as change in surface temperature. These three scripts can be run from the command line to seamlessly perform parameter sweeps. In a separate repository is vplot, which consists of both a command line tool to quickly plot the evolution of a system, and also matplotlib functions to generate publication-worthy figures. Finally, we recommend using approxposterior to quickly obtain posterior distributions of model parameters. These python scripts are optimized for anaconda distributions versions 3.5-3.7.

Code Integrity

Behind the scenes, the VPLanet team maintains code integrity through continuous integration, in which numerous scientific and numerical tests are validated at every commit. Check the "build" badge above for the current status. See the tests/ directory for the validation checks that the current build passes. The "coverage" badge shows the percentage of the code (by line number) that is currently tested by Codecov at every commit. Additionally, we use valgrind and addresssanitizer to periodically search for memory issues like use of uninitialized memory, accessing memory beyond array bounds, etc. The "memcheck" badge shows the current status of the master branch, either clean (no errors) or dirty. If dirty, check the Issues for more information about the current status. Note that all releases are clean. We are committed to maintaining a stable tool for scientists to analyze any planetary system.

Community

VPLanet is a community project. We're happy to take pull requests; if you want to create one, please issue it to the dev branch. Soon we will include tutorials on adding new input options, governing variables, and modules. It's a platform for planetary science that can grow exponentially, either by adding new physics or by adding competing models for clean comparisons.

Additional VPLanet examples can be found at the following GitHub pages:

Virtual Planetary Laboratory
Rory Barnes
David Fleming
Héctor Martínez-Rodríguez
Juliette Becker
Patrick Barth
David Graham

If you believe you have encountered a bug, please raise an issue using the Issues tab at the top of this page.

If you'd like to stay up to date on VPLanet by joining the e-mail list, please send a request to Rory Barnes, rory@astro.washington.edu. You can also follow VPLanet on twitter: @VPLanetCode.

Acknowledgments

If you use this code to generate results used in any publication or conference contribution, please cite Barnes, R. et al. (2020), PASP, 132, 24502.

VPLanet development has been supported by NASA grants NNA13AA93A, NNX15AN35G, 80NSSC17K048, 13-13NAI7_0024, and 80NSSC20K0229. We also acknowledge support from the University of Washington and the Carnegie Institute for Science.

Enjoy!

© 2018-2020 The VPLanet Team.

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

vplanet-2.0.0.tar.gz (357.4 kB view hashes)

Uploaded Source

Built Distributions

vplanet-2.0.0-cp39-cp39-win_amd64.whl (818.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

vplanet-2.0.0-cp39-cp39-manylinux2014_x86_64.whl (11.4 MB view hashes)

Uploaded CPython 3.9

vplanet-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl (855.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

vplanet-2.0.0-cp38-cp38-win_amd64.whl (818.3 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

vplanet-2.0.0-cp38-cp38-manylinux2014_x86_64.whl (11.4 MB view hashes)

Uploaded CPython 3.8

vplanet-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl (855.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

vplanet-2.0.0-cp37-cp37m-win_amd64.whl (818.3 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

vplanet-2.0.0-cp37-cp37m-manylinux2014_x86_64.whl (11.4 MB view hashes)

Uploaded CPython 3.7m

vplanet-2.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (855.1 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

vplanet-2.0.0-cp36-cp36m-win_amd64.whl (822.8 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

vplanet-2.0.0-cp36-cp36m-manylinux2014_x86_64.whl (11.4 MB view hashes)

Uploaded CPython 3.6m

vplanet-2.0.0-cp36-cp36m-macosx_10_9_x86_64.whl (855.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page