🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::ConstantSpaceWeather类 参考

#include <ConstantSpaceWeather.hpp>

+ 类 ast::ConstantSpaceWeather 继承关系图:

Public 成员函数

 ConstantSpaceWeather ()=default
 
 ConstantSpaceWeather (double f10p7Daily, double f10p7Average, double ap, double kp)
 
double getApDaily (const TimePoint &) const override
 
double getKpDaily (const TimePoint &) const override
 
double getF10p7Daily (const TimePoint &) const override
 
double getF10p7Average (const TimePoint &) const override
 
void setAp (double ap)
 
double getAp () const
 
void setKp (double kp)
 
double getKp () const
 
void setF10p7Daily (double f10p7)
 
double getF10p7Daily () const
 
void setF10p7Average (double f10p7Avg)
 
double getF10p7Average () const
 
- Public 成员函数 继承自 ast::SpaceWeatherProvider
virtual int getAp3HourlyList (const TimePoint &tp, double *apList, int maxLookback) const
 

静态 Public 属性

static constexpr double kDefaultAp = 15.0
 
static constexpr double kDefaultKp = 3.0
 
static constexpr double kDefaultF10p7Daily = 150.0
 
static constexpr double kDefaultF10p7Avg = 150.0
 

Protected 属性

double f10p7Daily_ = kDefaultF10p7Daily
 
double f10p7Average_ = kDefaultF10p7Avg
 
double ap_ = kDefaultAp
 
double kp_ = kDefaultKp
 

详细描述

恒定空间天气数据提供者

SpaceWeatherProvider 的具体实现,所有查询方法返回用户预设的常数值。 默认值代表中等太阳活动水平下的典型空间天气条件。

使用示例:

// 使用默认值
double ap = sw.getApDaily(tp); // 返回 15.0
// 自定义值
ConstantSpaceWeather sw(150.0, 150.0, 15.0, 3.0);
恒定空间天气数据提供者
定义 ConstantSpaceWeather.hpp:50
double getApDaily(const TimePoint &) const override
获取指定时间的Ap日平均值
定义 ConstantSpaceWeather.hpp:77

构造及析构函数说明

◆ ConstantSpaceWeather()

ast::ConstantSpaceWeather::ConstantSpaceWeather ( double f10p7Daily,
double f10p7Average,
double ap,
double kp )
inline

构造,指定所有空间天气指数

参数
f10p7DailyF10.7单日观测值(10⁻²² W·m⁻²·Hz⁻¹)
f10p7AverageF10.7平均观测值(10⁻²² W·m⁻²·Hz⁻¹)
apAp日平均值(0-400)
kpKp日平均值(0-9)

成员函数说明

◆ getApDaily()

double ast::ConstantSpaceWeather::getApDaily ( const TimePoint & tp) const
inlineoverridevirtual

获取指定时间的Ap日平均值

参数
tp时间点
返回
对应时间点的Ap值(0-400),无数据时返回0.0

实现了 ast::SpaceWeatherProvider.

◆ getF10p7Average()

double ast::ConstantSpaceWeather::getF10p7Average ( const TimePoint & tp) const
inlineoverridevirtual

获取指定时间的F10.7平均观测值

参数
tp时间点
返回
以输入时间为中心的81天平均F10.7观测值(调整到1 AU),无数据时返回0.0

实现了 ast::SpaceWeatherProvider.

◆ getF10p7Daily()

double ast::ConstantSpaceWeather::getF10p7Daily ( const TimePoint & tp) const
inlineoverridevirtual

获取指定时间的F10.7单日观测值

参数
tp时间点
返回
对应时间点的F10.7观测值(10⁻²² W·m⁻²·Hz⁻¹),无数据时返回0.0

实现了 ast::SpaceWeatherProvider.

◆ getKpDaily()

double ast::ConstantSpaceWeather::getKpDaily ( const TimePoint & tp) const
inlineoverridevirtual

获取指定时间的Kp日平均值

参数
tp时间点
返回
对应时间点的Kp值(0-9),无数据时返回0.0

实现了 ast::SpaceWeatherProvider.

类成员变量说明

◆ kDefaultAp

double ast::ConstantSpaceWeather::kDefaultAp = 15.0
staticconstexpr

默认中等太阳活动水平

默认Ap日平均值


该类的文档由以下文件生成: