Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy Simulation

A physics-based simulation of a galaxy with interactive controls and adjustable parameters.

Features

  • Tunable parameters:

    • Gravitational constant
    • Central mass
    • Number of bodies per layer
    • Density per layer
    • Initial velocity
    • Epsilon (ε): minimum distance for gravitational calculation
    • Delta t (Δt): simulation time step
  • Visual mass spectrum:

    • Blue = largest mass
    • Red = smallest mass
  • Real-time interaction:

    • Start, pause, and restart
    • Add/remove bodies during simulation
    • Adjust density and return to settings

Purpose

This simulation illustrates the gravitational behavior of celestial systems, offering insight into orbital mechanics and mass distribution in galactic structures.

About

Interactive galaxy simulation with tunable parameters: gravity, mass, velocity, density, epsilon, and delta t. Real-time control of bodies and settings. Displays angular momentum, kinetic and potential energy. Mass is visualized by color from blue (high) to red (low).

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages