Satisfied when the surface zone of a body is spinning at exactly the wind saturation frequency. More...
#include <WindSaturationCondition.h>
Public Member Functions | |
WindSaturationCondition (SaturatingSkumanichWindBody &body, const Evolve::DissipatingBody &other_body, bool primary, bool saturated) | |
std::valarray< double > | operator() (Core::EvolModeType evol_mode, const std::valarray< double > &orbit, const std::valarray< double > &derivatives, std::valarray< double > &stop_deriv) const |
The difference between the convective and wind saturation angular velocities divided by the latter. More... | |
Evolve::StoppingConditionType | type (unsigned=0) const |
Identify this as a WIND_SATURATION condition. More... | |
void | reached (short deriv_sign, unsigned index=0) |
See StoppingCondition::reached(). More... | |
virtual std::string | describe (int index=-1) const |
See StoppingCondition::describe(). More... | |
Public Member Functions inherited from Evolve::StoppingCondition | |
StoppingCondition (short expected_crossing_deriv_sign=0) | |
Create a generic stopping condition. More... | |
virtual size_t | num_subconditions () const |
The number of subconditions in the current condition. More... | |
virtual short | expected_crossing_deriv_sign (unsigned index=0) const |
The expected sign of the derivative at the next zero-crossing. More... | |
Private Attributes | |
double | __saturation_freq |
The frequency at which the wind saturates. More... | |
SaturatingSkumanichWindBody & | __body |
The body this condition is monitoring. More... | |
const Evolve::DissipatingBody & | __other_body |
The primary body in the system if not __body. More... | |
bool | __primary |
Is __body we are the primary in the system? More... | |
Satisfied when the surface zone of a body is spinning at exactly the wind saturation frequency.
Definition at line 21 of file WindSaturationCondition.h.
|
inline |
body | The body whose wind saturation we are monitoring. |
other_body | The other body in the system. |
primary | Is the body we are monitoring the primary? |
saturated | Is the wind currently saturated or not? |
Definition at line 35 of file WindSaturationCondition.h.
|
virtual |
See StoppingCondition::describe().
Implements Evolve::StoppingCondition.
Definition at line 55 of file WindSaturationCondition.cpp.
|
virtual |
The difference between the convective and wind saturation angular velocities divided by the latter.
Implements Evolve::StoppingCondition.
Definition at line 12 of file WindSaturationCondition.cpp.
|
inlinevirtual |
See StoppingCondition::reached().
Reimplemented from Evolve::StoppingCondition.
Definition at line 69 of file WindSaturationCondition.h.
|
inlinevirtual |
Identify this as a WIND_SATURATION condition.
Implements Evolve::StoppingCondition.
Definition at line 65 of file WindSaturationCondition.h.
|
private |
The body this condition is monitoring.
Definition at line 27 of file WindSaturationCondition.h.
|
private |
The primary body in the system if not __body.
Definition at line 30 of file WindSaturationCondition.h.
|
private |
Is __body we are the primary in the system?
Definition at line 33 of file WindSaturationCondition.h.
|
private |
The frequency at which the wind saturates.
Definition at line 24 of file WindSaturationCondition.h.