1 #define BUILDING_LIBRARY 8 const std::valarray<double> &,
9 const std::valarray<double> &,
10 std::valarray<double> &stop_deriv
13 if(!std::isfinite(
__spin_thres))
return std::valarray<double>(-1, 1);
15 stop_deriv.resize(1, Core::NaN);
16 return std::valarray<double>(
24 std::ostringstream description;
25 description <<
"Critical spin of " <<
__spin_thres <<
" rad/day";
26 return description.str();
Users can define any stopping condition they wish the evolution to search for in this file...
virtual std::string describe(int index=0) const
See StoppingCondition::describe().
Orientations of zones of bodies in a binary system.
double __spin_thres
The spin threshold in rad/day.
EvolModeType
The various evolution modes.
std::valarray< double > operator()(Core::EvolModeType evol_mode, const std::valarray< double > &orbit, const std::valarray< double > &derivatives, std::valarray< double > &stop_deriv) const
Returns the difference between the convective zone spin and the threshold divided by the latter...
DissipatingZone & __zone
Which zone's rotation to monitor.
double spin_frequency() const
The spin frequency of the given zone.