Modeling stellar evolution stages using Python
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).
📁 Star-Evolution-Simulator/ │ ├── evolation.py → Core evolution simulation in English ├── evrim.py → Turkish version of the simulator └── README.md → This documentation
- Install Python 3.x.
- Install required packages:
pip install numpy matplotlib - Run one of the scripts:
python evolation.py python evrim.py - Plots showing stellar evolution will appear and can be saved as PNG images.
The simulator follows simplified analytic relationships from stellar physics:
tₛ ≈ 10¹⁰ × (M / M☉)⁻²·⁵ years
Where:
M: stellar massM☉: solar masstₛ: approximate stellar lifetime