Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
DissipationQuantities.cpp
Go to the documentation of this file.
1 
9 #define BUILDING_LIBRARY
10 #include "DissipationQuantities.h"
11 
12 namespace Evolve {
13 
14  std::ostream &operator<<(std::ostream &os,
15  const Dissipation::Quantity &quantity)
16  {
17  switch(quantity) {
18  case Dissipation::POWER : os << "POWER"; break;
19  case Dissipation::TORQUEX : os << "TORQUEX"; break;
20  case Dissipation::TORQUEZ : os << "TORQUEZ"; break;
21  case Dissipation::SEMIMAJOR_DECAY : os << "SEMIMAJOR_DECAY"; break;
22  case Dissipation::ORBIT_SPINUP : os << "ORBIT_SPINUP"; break;
23  case Dissipation::INCLINATION_DECAY : os << "INCLINATION_DECAY";
24  break;
25  default : assert(false);
26  };
27  return os;
28  }
29 
31  std::ostream &operator<<(std::ostream &os,
32  Dissipation::QuantityEntry entry)
33  {
34  switch(entry) {
35  case Dissipation::NO_DERIV : os << "NO_DERIV";
36  break;
37  case Dissipation::AGE : os << "AGE";
38  break;
39  case Dissipation::SPIN_FREQUENCY : os << "SPIN_FREQUENCY";
40  break;
41  case Dissipation::ORBITAL_FREQUENCY: os << "ORBITAL_FREQUENCY";
42  break;
43  case Dissipation::INCLINATION : os << "INCLINATION";
44  break;
45  case Dissipation::ECCENTRICITY: os << "ECCENTRICITY";
46  break;
47  case Dissipation::PERIAPSIS: os << "PERIAPSIS";
48  break;
49  case Dissipation::RADIUS : os << "RADIUS";
50  break;
51  case Dissipation::MOMENT_OF_INERTIA : os << "MOMENT_OF_INERTIA";
52  break;
53  case Dissipation::SPIN_ANGMOM : os << "SPIN_ANGMOM";
54  break;
55  case Dissipation::SEMIMAJOR : os << "SEMIMAJOR";
56  break;
57  case Dissipation::EXPANSION_ERROR : os << "EXPANSION_ERROR";
58  break;
59  default : assert(false);
60  };
61  return os;
62  }
63 } //End Evolve namespace.
RADIUS
The derivative w.r.t. the radius of the body in .
SPIN_FREQUENCY
The derivative w.r.t. the spin frequency of a dissipating zone.
std::ostream & operator<<(std::ostream &os, const ZoneEvolutionQuantities &evol_var)
More civilized output for EvolVarType variables.
SEMIMAJOR
The derivative w.r.t. the semimajor axis in AU.
MOMENT_OF_INERTIA
Orientations of zones of bodies in a binary system.
INCLINATION_DECAY
ORBIT_SPINUP
The rate of change of the orbital frequency in rad/day/Gyr.
Declaration of enumerations of dissipation quantities and derivatives.
ECCENTRICITY
The derivative w.r.t. the eccentricity.
AGE
The derivative w.r.t. age, excluding the dependence through the body&#39;s radius and the moments of iner...
NO_DERIV
The quantity itself, undifferentiated.
ORBITAL_FREQUENCY
The derivative w.r.t. the orbital frequency.
SPIN_ANGMOM
The derivative w.r.t. the spin angular momentum in .
SEMIMAJOR_DECAY
Minus the rate of change of the semimajor axis in AU/Gyr.