Skip to content

ConstantWeather

Defined in: space_weather.rs:45

pub struct ConstantWeather

Constant space weather — returns the same F10.7 and Ap for all epochs.

Useful for testing or when historical space weather data is not available.

fn new(f107: f64, ap: f64) -> Self

Create a constant weather provider with the given F10.7 and Ap values.

  • f107: 10.7 cm solar radio flux [SFU]. Higher values indicate stronger solar activity and higher thermospheric density. Typical range: 70–250.
  • ap: daily geomagnetic index. Higher values indicate geomagnetic storms which expand the upper atmosphere. Typical range: 0–400, quiet ≤ 15.

Both f107_daily and f107_avg are set to f107; all Ap history entries are set to ap (constant approximation).


fn solar_min() -> Self

Solar minimum conditions (F10.7 = 70, Ap = 4).

Represents quiet solar conditions near the bottom of the 11-year solar cycle. Thermospheric density is at its lowest, resulting in minimal atmospheric drag.


fn solar_moderate() -> Self

Solar moderate conditions (F10.7 = 150, Ap = 15).

Represents typical mid-cycle solar conditions. This is a reasonable default for general-purpose simulations when specific space weather data is unavailable.


fn solar_max() -> Self

Solar maximum conditions (F10.7 = 250, Ap = 50).

Represents active solar conditions near the peak of the 11-year cycle. Thermospheric density is significantly elevated, causing much stronger drag on LEO satellites.