Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
<p align="center"><img src="https://raw.githubusercontent.com/nilsleiffischer/cbc-playground/master/banner.png"></p> | ||
|
||
# Gravitational waves playground | ||
|
||
In this [Swift playground book](http://www.apple.com/swift/playgrounds/) you can make [gravitational waves](https://en.wikipedia.org/wiki/Gravitational_wave) visible and control the visualization of this elusive radiation emitted by two inspiraling and merging black holes. It continues my series of interactive iPad simulations that started with my [playground book on black holes](https://nilsleiffischer.de/black-holes-playground/). | ||
|
||
- Adjust the black hole masses: | ||
|
||
![Images/masses.gif](Images/masses.gif) | ||
|
||
- Control visualization parameters, such as wave polarization and colors: | ||
|
||
![Images/polarization.gif](Images/polarization.gif) | ||
|
||
- Explore the visualization in three dimensions: | ||
|
||
![Images/perspective.gif](Images/perspective.gif) | ||
|
||
|
||
## Installation | ||
|
||
1. [Download the Swift Playgrounds App](https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=908519492&mt=8&ls=1) on your iPad. | ||
2. [Download the Gravitational Waves playground file](https://github.com/knly/cbc-playground/raw/master/dist/Gravitational%waves.playgroundbook.zip) on your iPad or Mac: | ||
|
||
- **On your iPad:** Select _Open with "Playgrounds"_. | ||
|
||
![iPad download](Images/ipad_download.png) | ||
|
||
- Or **on your Mac:** [AirDrop](https://support.apple.com/en-us/HT203106) the file to your iPad and select _Open with "Playgrounds"_. | ||
|
||
![AirDrop](Images/airdrop.png) | ||
|
||
|
||
## Gallery | ||
|
||
![Images/gallery_rgb.gif](Images/gallery_rgb.gif) | ||
|
||
![Images/gallery_red.gif](Images/gallery_red.gif) | ||
|
||
![Images/gallery_merger.gif](Images/gallery_merger.gif) | ||
|
||
|
||
## Simulated physics | ||
|
||
- The rendered field is the lowest-order metric perturbation in TT-gauge (or _gravitational wave strain_) $h_\plus$ or $h_\cross$, with their $\frac{1}{r}$ distance scaling removed. | ||
- Selecting the option `showFrequencyScaling` is equivalent to visualising the real or imaginary part of the Weyl scalar $\Psi_4$, depending on the chosen polarization. | ||
- The six colors are chosen from the normalized field values discretized into bins with edges $\left{\pm 1, \pm 0.7, \pm 0.5, \pm 0.3\right}$. | ||
- The rotating spheres depict the relative Schwarzschild radius of the black holes, with an arbitary rescaling for visualisation. | ||
- Orbital separation, time and wave propagation speed are also arbitrarily rescaled. Relative quantities are correct, however. | ||
- The ringdown is modeled as a simple quadrupolar oscillation with an exponential decay in amplitude for visualisation purposes only. | ||
|
||
|
||
## About this project | ||
|
||
I created this Swift playground book as part of my application for the Apple WWDC 2018 scholarship. It allows the reader to discover physics that is invisible to our eyes by simulating it on screen and by controlling its visual representation. The volume rendering of the gravitational field is accomplished by a library of [Metal](https://developer.apple.com/metal/) shaders that apply to a [SceneKit](https://developer.apple.com/scenekit/) scene. The shaders perform ray-tracing through three-dimensional space and integrate the gravitational field along each ray. By translating the field values to colors and blending them together along the ray, I create a visual representation of the gravitational field in space. | ||
|
||
- Author: [Nils Leif Fischer](https://nilsleiffischer.de) | ||
|
||
Copyright (c) 2018 Nils Leif Fischer |
Binary file modified
BIN
+5.3 KB
(100%)
...s.xcodeproj/project.xcworkspace/xcuserdata/knl.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.