Jacob Kegerreis [email protected]
Python code for GIHR simulation projects and related bits and pieces. Mostly things like making initial conditions or analysing and plotting results. See also SWIFT and WoMa.
This code is provided in the hopes that it may be useful and to improve the openness and reproducibility of published projects. However, please note that this code has grown organically and often messily over many years and many different projects, and was not designed primarily with other users in mind. As such, while there is hopefully sufficient documentation for the code to be usable and intelligible, there is a lot that could be refactored and tidied.
-
gihr.pyMain script, see its doc string for usage. -
gihrpy/-
init_cond.pyFunctions for generating and plotting initial conditions. -
snapshot_plots.pyFunctions for plotting standard snapshot data, etc. -
scenario_plots.pyFunctions for plotting accumulated scenario results, etc. -
rebound_plots.pyFunctions for plotting rebound results. -
custom_plots.pyFunctions for customisable plots like tiled figures, etc. -
objects.pyAccumulated input-info objects from all projects for easy access. -
objects_*.pyInput objects for specific projects. -
classes.pyClasses for plotting and initial conditions input objects. -
classes_sim.pyClasses for main simulation input objects. -
classes_reb.pyClasses for rebound input objects. -
utilities.pyGeneral utility functions for e.g. loading data and plotting extras. -
utilities_reb.pyRebound utility functions for e.g. loading data. -
utilities_*.pyExtra utilities for specific projects, like custom plotting tweaks.
-
-
orbits.pyStand-alone module for computing and plotting Keplerian orbits. -
jkeger.pyVarious generic utilities and constants, etc. -
tables/cmap_*.pklGenerated colour maps.
-
records/*/Extra recorded info for specific projects, e.g. simulation input parameters.readme.mdDetails about this specific project and any other record files.
-
README.mdThis file. -
LICENSE.txtGNU general public license v3+. -
format.shSimple formatting script.
- PEP8 is followed in most cases, auto-formatted with black.
- Arrays are explicitly labelled with a prefix
A1_, orAn_for ann-dimensional array. - Dictionaries are labelled with a prefix
Di_. - File paths are labelled with a prefix
Fp_. - Units are SI unless specified.