Skip to content

TheMehranKhan/graviton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Graviton

Gravitational wave pattern generator in Go.

Physics

Gravitational Wave Strain

The gravitational wave strain amplitude from a binary inspiral:

$$h(t) = \frac{4\pi^2 G}{c^4} \mathcal{M}_c f^{5/3} \cos(2\pi f t - \phi)$$

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

Chirp Mass

$$\mathcal{M}_c = \frac{(m_1 m_2)^{3/5}}{(m_1 + m_2)^{1/5}}$$

Polarization Modes

Gravitational waves have two independent polarization states:

$$h_+ = h(t) \cdot \frac{1 + \cos\iota}{2}$$ $$h_\times = h(t) \cdot \sin\iota$$

Where $\iota$ is the inclination angle of the binary plane.

Usage

go run main.go
go run main.go -m1 10 -m2 10 -d 200 -i 30 -t 15

Parameters

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

Output

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)

References

License

MIT

About

Gravitational wave pattern generator simulating binary black hole merger detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages