Planetary Orbital Evolution due to Tides
Orbital evolution of two objects experiencing tides
SpinOrbitLockInfo.cpp
1
#define BUILDING_LIBRARY
2
#include "
DissipatingBody.h
"
3
4
namespace
Evolve
{
5
6
std::ostream &
operator<<
(std::ostream &os,
const
SpinOrbitLockInfo
&lock)
7
{
8
os <<
"Lock: "
<< lock.
orbital_frequency_multiplier
() <<
"*OrbFreq = "
9
<< lock.
spin_frequency_multiplier
() <<
"*SpinFreq "
;
10
if
(!lock) os <<
"DISABLED"
;
11
else
os << (lock.
lock_direction
()>0 ?
"from above"
:
"from below"
);
12
return
os;
13
}
14
15
void
SpinOrbitLockInfo::set_lock
(
int
orbital_freq_mult,
int
spin_freq_mult,
16
short
lock_direction)
17
{
18
__orbital_freq_mult
=orbital_freq_mult;
19
__spin_freq_mult
=spin_freq_mult;
20
__lock_direction
=
lock_direction
;
21
}
22
23
bool
SpinOrbitLockInfo::operator==
(
const
SpinOrbitLockInfo
&rhs)
const
24
{
25
return
rhs.
__orbital_freq_mult
==
__orbital_freq_mult
&&
26
rhs.
__spin_freq_mult
==
__spin_freq_mult
&&
27
bool(rhs.
__lock_direction
)==bool(
__lock_direction
);
28
}
29
30
}
//End Evolve namespace.
Evolve::SpinOrbitLockInfo::operator==
bool operator==(const SpinOrbitLockInfo &rhs) const
Definition:
SpinOrbitLockInfo.cpp:23
Evolve::SpinOrbitLockInfo::__orbital_freq_mult
int __orbital_freq_mult
The mutiplier in front of the orbital frequency in the lock.
Definition:
SpinOrbitLockInfo.h:28
Evolve::SpinOrbitLockInfo::__spin_freq_mult
int __spin_freq_mult
The multiplier in front of the spin frequency in the lock.
Definition:
SpinOrbitLockInfo.h:28
Evolve::operator<<
std::ostream & operator<<(std::ostream &os, const ZoneEvolutionQuantities &evol_var)
More civilized output for EvolVarType variables.
Definition:
DissipatingZone.cpp:7
Evolve::SpinOrbitLockInfo::orbital_frequency_multiplier
int orbital_frequency_multiplier() const
The multiplier in front of the orbital frequency in the lock.
Definition:
SpinOrbitLockInfo.h:126
Evolve::SpinOrbitLockInfo::__lock_direction
short __lock_direction
Should a lock be assumed, and if so from which direction is it approached?
Definition:
SpinOrbitLockInfo.h:48
Evolve
Orientations of zones of bodies in a binary system.
Definition:
ConstSolutionIterator.cpp:3
Evolve::SpinOrbitLockInfo::spin_frequency_multiplier
int spin_frequency_multiplier() const
The multiplier in front of the spin frequency in the lock.
Definition:
SpinOrbitLockInfo.h:129
Evolve::SpinOrbitLockInfo::lock_direction
short lock_direction() const
Definition:
SpinOrbitLockInfo.h:120
DissipatingBody.h
Declares the DissipatingBody class.
Evolve::SpinOrbitLockInfo::set_lock
void set_lock(int orbital_freq_mult, int spin_freq_mult, short lock_direction=0)
Define which tidal dissipation term is in a lock.
Definition:
SpinOrbitLockInfo.cpp:15
Evolve::SpinOrbitLockInfo
Defines a lock between the spin of a dissipating body and the orbit.
Definition:
SpinOrbitLockInfo.h:25
poet_src
Evolve
SpinOrbitLockInfo.cpp
Generated on Fri Apr 23 2021 13:57:10 for Planetary Orbital Evolution due to Tides by
1.8.13