Skip to content

emresezer/Star-Evolution-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🌠 Star Evolution Simulator

Modeling stellar evolution stages using Python


🎯 Purpose & Scope

This project simulates stellar evolution from main sequence to late stages. It calculates changes in luminosity, radius, and temperature based on stellar mass, using both theoretical and empirical models.

  • Compute stellar lifetime for different masses.
  • Simulate luminosity and temperature changes over time.
  • Visualize evolution on the Hertzsprung–Russell (H–R) diagram.
  • Supports bilingual outputs (Turkish / English).

🧩 Project Structure

📁 Star-Evolution-Simulator/
│
├── evolation.py     → Core evolution simulation in English
├── evrim.py         → Turkish version of the simulator
└── README.md        → This documentation

⚙️ Installation & Usage

  1. Install Python 3.x.
  2. Install required packages:
    pip install numpy matplotlib
  3. Run one of the scripts:
    python evolation.py
    python evrim.py
  4. Plots showing stellar evolution will appear and can be saved as PNG images.

🧮 Scientific Model

The simulator follows simplified analytic relationships from stellar physics:

tₛ ≈ 10¹⁰ × (M / M☉)⁻²·⁵  years

Where:

  • M: stellar mass
  • M☉: solar mass
  • tₛ: approximate stellar lifetime
This formula reflects how massive stars evolve faster than smaller ones.

About

Star Evolution Simulator use Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages