Defines a lock between the spin of a dissipating body and the orbit. More...
#include <SpinOrbitLockInfo.h>
Public Member Functions | |
SpinOrbitLockInfo (int orbital_freq_mult=0, int spin_freq_mult=0, short lock_direction=-1) | |
Define which tidal dissipation term is in a lock. More... | |
SpinOrbitLockInfo (const SpinOrbitLockInfo &orig) | |
Copy the original to this. More... | |
SpinOrbitLockInfo & | operator= (const SpinOrbitLockInfo &rhs) |
Make this the same lock as RHS. More... | |
void | set_lock (int orbital_freq_mult, int spin_freq_mult, short lock_direction=0) |
Define which tidal dissipation term is in a lock. More... | |
double | spin (double orbital_frequency) const |
Spin frequency at exactly the lock that corresponds to the given orbital frequency. More... | |
bool | operator() (int orbital_freq_mult, int spin_freq_mult) const |
Is the given tidal dissipation term one of the locked terms? More... | |
bool | term (int orbital_freq_mult, int spin_freq_mult) const |
operator bool () const | |
Should this lock be assumed. More... | |
short | lock_direction () const |
void | lock_direction (short value) |
Set the lock direction to the given value. More... | |
int | orbital_frequency_multiplier () const |
The multiplier in front of the orbital frequency in the lock. More... | |
int | spin_frequency_multiplier () const |
The multiplier in front of the spin frequency in the lock. More... | |
bool | operator== (const SpinOrbitLockInfo &rhs) const |
Private Attributes | |
int | __orbital_freq_mult |
The mutiplier in front of the orbital frequency in the lock. More... | |
int | __spin_freq_mult |
The multiplier in front of the spin frequency in the lock. More... | |
short | __lock_direction |
Should a lock be assumed, and if so from which direction is it approached? More... | |
Defines a lock between the spin of a dissipating body and the orbit.
With inclined and eccentric orbits, locks can occur at many different general almost any rational ratio can result in a lock if the dissipation has the appropriate frequency dependence.
Definition at line 25 of file SpinOrbitLockInfo.h.
|
inline |
Define which tidal dissipation term is in a lock.
orbital_freq_mult | The multiple of the orbital frequency at the lock. |
spin_freq_mult | The multiple of the spin frequency at the lock. |
lock_direction | The direction from which the spin frequency is approaching the lock. See __lock_direction for the meaning of the values. |
Definition at line 52 of file SpinOrbitLockInfo.h.
|
inline |
Copy the original to this.
Definition at line 65 of file SpinOrbitLockInfo.h.
|
inline |
The opposite of the sign of the forcing frequency associated with this component.
Definition at line 120 of file SpinOrbitLockInfo.h.
|
inline |
Set the lock direction to the given value.
Definition at line 123 of file SpinOrbitLockInfo.h.
|
inline |
Should this lock be assumed.
Definition at line 116 of file SpinOrbitLockInfo.h.
|
inline |
Is the given tidal dissipation term one of the locked terms?
orbital_freq_mult | The multiple of the orbital frequency to consider. |
spin_freq_mult | The multiple of the spin frequency to consider. |
Definition at line 94 of file SpinOrbitLockInfo.h.
|
inline |
Make this the same lock as RHS.
Definition at line 71 of file SpinOrbitLockInfo.h.
bool Evolve::SpinOrbitLockInfo::operator== | ( | const SpinOrbitLockInfo & | rhs | ) | const |
Are the two locks for the same frequency ratio and in the same enabled/disabled state.
Definition at line 23 of file SpinOrbitLockInfo.cpp.
|
inline |
The multiplier in front of the orbital frequency in the lock.
Definition at line 126 of file SpinOrbitLockInfo.h.
void Evolve::SpinOrbitLockInfo::set_lock | ( | int | orbital_freq_mult, |
int | spin_freq_mult, | ||
short | lock_direction = 0 |
||
) |
Define which tidal dissipation term is in a lock.
orbital_freq_mult | The multiple of the orbital frequency at the lock. |
spin_freq_mult | The multiple of the spin frequency at the lock. |
lock_direction | The sign of the forcing frequency for this term. See __lock_direction for the meaning of the values. |
Definition at line 15 of file SpinOrbitLockInfo.cpp.
|
inline |
Spin frequency at exactly the lock that corresponds to the given orbital frequency.
Definition at line 90 of file SpinOrbitLockInfo.h.
|
inline |
The multiplier in front of the spin frequency in the lock.
Definition at line 129 of file SpinOrbitLockInfo.h.
|
inline |
Returns true if the lock is referring to the given term, regardless of whether it is locked or not.
orbital_freq_mult | The multiple of the orbital frequency to consider. |
spin_freq_mult | The multiple of the spin frequency to consider. |
Definition at line 105 of file SpinOrbitLockInfo.h.
|
private |
Should a lock be assumed, and if so from which direction is it approached?
The values have the following meanings:
Definition at line 48 of file SpinOrbitLockInfo.h.
|
private |
The mutiplier in front of the orbital frequency in the lock.
Definition at line 28 of file SpinOrbitLockInfo.h.
|
private |
The multiplier in front of the spin frequency in the lock.
Definition at line 28 of file SpinOrbitLockInfo.h.