🛰️航天仿真算法库 SpaceAST
0.3.1
载入中...
搜索中...
未找到
PointMassForce.hpp
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "
BodyAttraction.hpp
"
25
26
AST_NAMESPACE_BEGIN
27
34
class
AST_CORE_API
PointMassForce
:
public
BodyAttraction
35
{
36
public
:
37
AST_OBJECT(
PointMassForce
)
38
39
EBodyAttractionType
getBodyAttractionType()
const override
{
return
EBodyAttractionType::ePointMass
;}
40
BodyAttraction
*
clone
()
const override
{
return
new
PointMassForce
(*
this
);}
41
43
double
getGM(
CelestialBody
* body)
const
;
44
public
:
47
void
setSpecifiedGM
(
double
gm){specifiedGM_ = gm; gmSource_ =
EGMSource::eSpecifiedValue
;}
48
public
:
49
EGMSource
gmSource_{EGMSource::eBodyGravity};
50
double
specifiedGM_{0.0};
51
};
52
53
56
AST_NAMESPACE_END
BodyAttraction.hpp
ast::BodyAttraction
天体引力模型
定义
BodyAttraction.hpp:48
ast::CelestialBody
天体
定义
CelestialBody.hpp:72
ast::PointMassForce
点质量引力模型/
定义
PointMassForce.hpp:35
ast::PointMassForce::setSpecifiedGM
void setSpecifiedGM(double gm)
设置指定的引力常数,并将引力常数来源枚举设置为来自指定值
定义
PointMassForce.hpp:47
ast::PointMassForce::clone
BodyAttraction * clone() const override
克隆引力模型
定义
PointMassForce.hpp:40
ast::EGMSource
EGMSource
引力常数来源
定义
ForceModel.hpp:39
ast::EGMSource::eSpecifiedValue
@ eSpecifiedValue
用户指定的引力常数
ast::EBodyAttractionType
EBodyAttractionType
天体引力模型类型
定义
BodyAttraction.hpp:39
ast::EBodyAttractionType::ePointMass
@ ePointMass
中心天体点质量引力模型
src
AstCore
ForceModel
PointMassForce.hpp
制作者
1.12.0