00001
00002
00003
00004
00005 #include "static_star.h"
00006
00007 void static_star::instantaneous_element() {
00008
00009 luminosity = 1;
00010 effective_radius = radius = 1;
00011 core_radius = 1;
00012
00013 envelope_mass = get_total_mass();
00014 core_mass = 0;
00015
00016 radius = core_radius;
00017
00018 }
00019
00020 void static_star::evolve_element(const real end_time) {
00021
00022 real dt = end_time - current_time;
00023 current_time = end_time;
00024 relative_age += dt;
00025
00026 next_update_age = relative_age + cnsts.safety(maximum_timestep);
00027
00028 update();
00029 }
00030
00031
00032 void static_star::update() {
00033
00034
00035
00036
00037 }