Gravitational wave pattern generator in Go.
The gravitational wave strain amplitude from a binary inspiral:
Where:
-
$G$ = Gravitational constant ($6.67430 \times 10^{-11}$ m³ kg⁻¹ s⁻²) -
$c$ = Speed of light ($2.9979 \times 10^8$ m/s) -
$\mathcal{M}_c$ = Chirp mass -
$f$ = Gravitational wave frequency -
$\phi$ = Phase at coalescence
Gravitational waves have two independent polarization states:
Where
go run main.go
go run main.go -m1 10 -m2 10 -d 200 -i 30 -t 15| Flag | Default | Description |
|---|---|---|
-m1 |
30 | Mass of first body (solar masses) |
-m2 |
30 | Mass of second body (solar masses) |
-d |
400 | Distance (Mpc) |
-i |
0 | Inclination angle (degrees) |
-t |
10 | Duration (seconds) |
-fps |
10 | Frames per second |
ASCII visualization of gravitational wave strain over time, simulating LIGO detection of a binary black hole merger with:
- Plus (+) polarization mode
- Cross (×) polarization mode
- Chirp mass calculation
- Inspiral frequency evolution
- Phase indicator (inspiral/merger/ringdown)
- LIGO Scientific Collaboration
- Einstein Field Equations:
$G_{\mu\nu} = \frac{8\pi G}{c^4} T_{\mu\nu}$ - Quadrupole approximation for GW emission
MIT