🛰️航天仿真算法库 SpaceAST 0.4.0
载入中...
搜索中...
未找到
DragForce.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "ForceModel.hpp"
25#include "AstUtil/EnumOrName.hpp"
26#include <string>
27
28AST_NAMESPACE_BEGIN
29
37enum class EAtmosphereModel
38{
39 eNone,
40 e1976Standard,
41 eHarrisPriester,
42 eJacchia60,
43 eJacchia70,
44 eJacchia71,
45 eJacchiaRoberts,
46 eMSIS1986,
47 eMSISE1990,
48 eNRLMSISE2000,
49 eCIRA72,
50 eDTM2012,
51};
52
53using EAtmDensityModel = EAtmosphereModel; // alias
54
61
62enum class EGeoMagFluxSource
63{
64 eKp,
65 eAp,
66};
67
68enum class EGeoMagFluxUpdateRate
69{
70 eDaily,
71 e3Hourly,
72 e3HourlyInterp,
73 e3HourlyCubicSpline,
74};
75
77class AST_CORE_API DragForce : public ForceModel
78{
79public:
80 AST_OBJECT(DragForce)
81 DragForce() = default;
82 ~DragForce() = default;
83
85 double ap() const;
86
88 double kp() const;
89
91 double f10p7Daily() const;
92
94 double f10p7Average() const;
95
97 AtmosphereModelId& atmosphereModel() { return atmDensityModel_; }
98
100 AtmosphereModelId& lowAltAtmDensityModel() { return lowAltAtmDensityModel_; }
101
102public:
105 AtmosphereModelId atmDensityModel_{EAtmosphereModel::e1976Standard};
106 AtmosphereModelId lowAltAtmDensityModel_{EAtmosphereModel::eNone};
107 double atmBlendingRange_{0.0};
109
110
113 bool useFluxApFile_{false};
114
117 double f10p7Average_{150.0};
118 double f10p7Daily_{150.0};
119 double kp_{3.0};
121
124 std::string fluxApFile_{};
125 EGeoMagFluxUpdateRate geoMagFluxUpdateRate_{EGeoMagFluxUpdateRate::eDaily};
126 EGeoMagFluxSource geoMagFluxSource_{EGeoMagFluxSource::eKp};
127 double geoMagFluxInterpSubSamplingRatio_{1.0};
130
131
134 bool useApproxAltForDrag_{false};
135 ESunPosition sunPosition_{ESunPosition::eTrue};
137};
138
139AST_CORE_API std::string toString(EAtmDensityModel model);
140AST_CORE_API errc_t parse(StringView type, EAtmDensityModel &result);
141
142
145AST_NAMESPACE_END
146
大气阻力模型
定义 DragForce.hpp:78
AtmosphereModelId & atmosphereModel()
大气模型
定义 DragForce.hpp:97
AtmosphereModelId & lowAltAtmDensityModel()
低高度大气模型
定义 DragForce.hpp:100
力模型
定义 ForceModel.hpp:50
ESunPosition
太阳位置
定义 SunPosition.hpp:35