By Thomas Wiesenthal-Saunders

A 3D python application that simulates the lives of stars sped up allowing users view the change in their own constellations and learn more about the dots in the sky.

3D Model

Slider

P=σAT
M = (8.852 \times 10^{20}) R^{0.571} T^{1.142}
t = t_{\circledcirc} \times (M/M_{\circledcirc})^{2.5}
R = \sqrt[0.571]{\frac{t}{(8.852 \times 10^{20}) \times T^{1.142}}}
T=\sqrt[1.142]{\frac{t}{(8.852 \times 10^{20}) \times R^{0.571}}}

σ ~ Stefan Boltzmann constant

P ~ Luminosity (watts)

t ~ time until star dies

R ~ Radius

T ~ Temperature (kelvin)

M ~ mass

The code first works out the star's mass from an imputed radius and temperature. The mass can then be used to work out the remaining time for the star. The slider gets a number between 1 and 0 which is multiplied to the lifetime where the radius, temperature and luminosity is worked out and displayed. To work out the colour of the star the temperature is used against some values. This colour is overlays the texture image of the star.

Made with Slides.com