Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
EvolvingStellarEnvelope.h
Go to the documentation of this file.
1 #ifndef __EVOLVING_STELLAR_ENVELOPE_H
2 #define __EVOLVING_STELLAR_ENVELOPE_H
3 
12 #include "EvolvingStellarZone.h"
13 
14 namespace Star {
15 
19  private:
22 
30  };
31 
32  public:
35  double stellar_mass,
36 
39  *outer_radius=NULL,
40 
43  *moment_of_inertia=NULL
44  ) :
46  __stellar_mass(stellar_mass)
47  {}
48 
50  double moment_of_inertia(double age, int deriv_order=0) const
51  {return any_age_quantity(INERTIA, age, deriv_order);}
52 
54  double moment_of_inertia(int deriv_order=0) const
55  {return current_age_quantity(INERTIA, deriv_order);}
56 
58  double outer_radius(double age, int deriv_order=0) const
59  {return any_age_quantity(RADIUS, age, deriv_order);}
60 
62  double outer_radius(int deriv_order=0) const
63  {return current_age_quantity(RADIUS, deriv_order);}
64 
66  double outer_mass(double, int deriv_order=0) const
67  {return (deriv_order ? 0 : __stellar_mass);}
68 
70  double outer_mass(int deriv_order=0) const
71  {return (deriv_order ? 0 : __stellar_mass);}
72 
73  };//End EvolvingStellarEnvelope class.
74 
75 }//End Star namespace.
76 
77 #endif
double outer_radius(double age, int deriv_order=0) const
See DissipatingZone::outer_radius(double, int).
double moment_of_inertia(int deriv_order=0) const
See DissipatingZone::moment_of_inertia(int).
Base class for zones of low mass evolving stars.
EvolvingStellarEnvelope(double stellar_mass, const StellarEvolution::EvolvingStellarQuantity *outer_radius=NULL, const StellarEvolution::EvolvingStellarQuantity *moment_of_inertia=NULL)
double outer_radius(int deriv_order=0) const
See DissipatingZone::outer_radius(int).
A class for stellar properties that depend on age.
Declares a base class for all stellar zones.
double current_age_quantity(size_t quantity, unsigned deriv_order=0) const
The current age value of the given quantity (or its derivative).
double moment_of_inertia(double age, int deriv_order=0) const
See DissipatingZone::moment_of_inertia(double, int)
double any_age_quantity(size_t quantity, double age, unsigned deriv_order=0) const
The value of the given quantity (or its derivative) at an arbitrary age.
Surface convective zone for low mass evolving stars or the entire star for high mass stars...
double outer_mass(int deriv_order=0) const
See DissipatingZone::outer_mass.
double outer_mass(double, int deriv_order=0) const
See DissipatingZone::outer_mass(double, int).
double __stellar_mass
The age for the last configure() call.
CurrentAgeQuantities
Identifiers for the various age dependent values which are only computed once per fixed age...