star.h

Classes

star -- (full description)

class star : public starbase

Interface

Public Members
star(real age = 0, real lifetime = 1, real mf = 1, real rf = 1, real tf = 1)
real get_m_conv_star_to_dyn()
real get_r_conv_star_to_dyn()
real get_t_conv_star_to_dyn()
real get_current_age()
real get_ms_lifetime()
void set_m_conv_star_to_dyn(const real mf)
void set_r_conv_star_to_dyn(const real rf)
void set_t_conv_star_to_dyn(const real tf)
void set_current_age(const real m)
void set_ms_lifetime(const real r)
void inc_current_age(const real dt)
virtual ostream & print_star_story(ostream&)
virtual istream & scan_star_story(istream&)

Description

It cannot be included in starbase.h since node.h contains starbase.h and this would lead to a vicious circle

----------------------------------------------------------------------------- star -- the simplest class for stellar evolution ----------------------------------------------------------------------------- / star

Member Description

star(real age = 0, real lifetime = 1, real mf = 1, real rf = 1, real tf = 1)

real get_m_conv_star_to_dyn()

to convert an internal star mass variable m_star into the units used by the dyn part, you can use:

a_dyn_particle->set_mass( m_star * get_m_conv_star_to_dyn() );

real get_r_conv_star_to_dyn()

real get_t_conv_star_to_dyn()

real get_current_age()

real get_ms_lifetime()

void set_m_conv_star_to_dyn(const real mf)

void set_r_conv_star_to_dyn(const real rf)

void set_t_conv_star_to_dyn(const real tf)

void set_current_age(const real m)

void set_ms_lifetime(const real r)

void inc_current_age(const real dt)

virtual ostream & print_star_story(ostream&)

virtual istream & scan_star_story(istream&)