Welcome friends! In this repository you can find two tutorials that I've given over the years.
One is focused more on simulations and building waveform models:
- a brief introduction to numerical relativity, i.e., what it means to simulate a binary black hole coalescence,
- how to interact with SXS Collaboration's catalog of NR simulations, i.e., how to load waveforms and plot them,
- and then we'll conclude by building our very own waveform surrogate model using some of the more simple numerical relativity waveforms for the SXS Collaboration's catalog!
and one is focused more on gravitational wave theory and black hole perturbation theory:
- the BMS symmetries and how they can be used to express waveforms in terms of BMS charges and fluxes,
- and how to fit the ringdown phase of gravitational waves from binary black holes with quasi-normal modes.
If you don't want to download anything locally, feel free to use Google Colab instead!
Just
-
Go to Google Colab
-
Click
File, and thenUpload Notebook, and thenGitHub -
Paste the following url
https://github.com/keefemitman/ResearchTutorialsinto the search bar, and then click off the search bar
-
Click
Tutorial_SXSAndSurrogates.ipynb(this will open the notebook) -
Or click
Tutorial_BMSAndQNMs.ipynb(this will open the notebook) -
Click
Run all -
Wait for the notebook to crash
-
Click
Run allagain -
Enjoy! 🌊
To start this tutorial, you'll first need to clone the repository and cd into it
(feel free to change my_copy_of_the_tutorial to whatever you want):
git clone git@github.com:keefemitman/ResearchTutorials.git my_copy_of_the_tutorial | cd my_copy_of_the_tutorial
Then, you'll need to install the relevant packages. If you are already one of the cool kids and are using uv (https://docs.astral.sh/uv/),
then running this installation is as easy as
uv sync
Otherwise you can install via pip with
pip install .
or create a conda environment with
conda env create --name research-tutorials --file=environments.yml | conda activate research-tutorials
Everything for the tutorial can be found in the Tutorial*.ipynb notebooks.
If you're using uv, this is again trivial by running
uv run ipython kernel install --user --env VIRTUAL_ENV $(pwd)/.venv --name=research-tutorials
uv run --with jupyter jupyter lab
and then opening the notebook and select the kernel research-tutorials.
If instead you've activated your conda environment, then this should also just be as simple as running
jupyter notebook Tutorial_SXSAndSurrogates.ipynb
or
jupyter notebook Tutorial_BMSAndQNMs.ipynb
If you don't want to activate your conda environment, but would rather creater a jupyter kernel, just run
python -m ipykernel install --user --name=research-tutorials
and then load it in the notebook after starting it up.
🌈 Happy Tutorial-ing! 🎉