Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

static_star.C

Go to the documentation of this file.
00001 //
00002 // SPZDCH19_star.C
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 // (GN+SPZ May  4 1999) last_update_age now used as time of last type change
00035 //  last_update_age = relative_age;
00036 
00037 }

Generated at Sun Feb 24 09:57:17 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001