9 #ifndef __SYNCHRONIZED_CONDITION_H 10 #define __SYNCHRONIZED_CONDITION_H 12 #include "../Core/SharedLibraryExportMacros.h" 18 class DissipatingZone;
26 int __orbital_freq_mult,
47 int orbital_freq_mult,
81 monitored_lock.orbital_frequency_multiplier(),
82 monitored_lock.spin_frequency_multiplier(),
83 monitored_lock.lock_direction(),
97 std::valarray<double> operator()(
99 const std::valarray<double> &orbit,
100 const std::valarray<double> &derivatives,
101 std::valarray<double> &stop_deriv
117 void reached(
short deriv_sign,
unsigned index=0);
120 virtual std::string describe(
int index = -1)
const;
int __spin_freq_mult
The multiplier in front of the spin frequency in the lock.
BinarySystem & __system
The binary system this locking condition is attached to.
Satisfied when some multiples of the orbit and stellar rotation are synchronized. ...
const DissipatingZone & __zone
The zone whose spin is monitored.
int orbital_frequency_multiplier() const
The multiplier in front of the orbital frequency in the lock.
StoppingConditionType
The reasons for stopping the evolution currently supported.
Orientations of zones of bodies in a binary system.
SynchronizedCondition(const SpinOrbitLockInfo &monitored_lock, bool primary, unsigned zone_index, BinarySystem &system)
Create the synchronization condition for the given object from a lock.
bool __primary
Which body's spin is checked for locking.
A layer of a system body for which the tidal bulge is not exactly in phase with the tidal potential...
Defines the SpinOrbitLockInfo class.
A base class for all stopping conditions.
StoppingConditionType type(unsigned=0) const
Identify this as a SYNCHRONIZED condition.
EvolModeType
The various evolution modes.
unsigned __zone_index
Which zone is checked for locking.
Defines the various stopping conditions needed by OrbitSolver.
int spin_frequency_multiplier() const
The multiplier in front of the spin frequency in the lock.
Describes a system of two bodies orbiting each other.
Defines a lock between the spin of a dissipating body and the orbit.