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

#include <BlendingAtmosphere.hpp>

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

Public 成员函数

 BlendingAtmosphere (Atmosphere *mainModel, Atmosphere *lowAltModel, double blendAltitude, double blendRange)
 
 BlendingAtmosphere (Atmosphere *mainModel, Atmosphere *lowAltModel)
 
double getDensity (const TimePoint &tp, const Vector3d &posInBodyFixed) const override
 
Frame * getFrame () const override
 
BodyShape * getShape () const override
 
Atmosphere * mainModel () const
 
void setMainModel (Atmosphere *mainModel)
 
Atmosphere * lowAltModel () const
 
void setLowAltModel (Atmosphere *lowAltModel)
 
double blendAltitude () const
 
void setBlendAltitude (double blendAltitude)
 
double blendRange () const
 
void setBlendRange (double blendRange)
 
- Public 成员函数 继承自 ast::Atmosphere

额外继承的成员函数

- Protected 成员函数 继承自 ast::Atmosphere
double getAltitude (const Vector3d &posInBodyFixed) const
 

详细描述

主/低高度大气密度模型的混合过渡模型

在过渡高度附近,将"主大气模型"(高高度模型)与"低高度模型"按高度线性混合:

  • 高度 ≤ blendAltitude - blendRange/2:全部使用低高度模型;
  • 高度 ≥ blendAltitude + blendRange/2:全部使用主模型;
  • 过渡带内:对两者按高度线性加权(低高度偏重低高度模型,高高度偏重主模型)。

构造及析构函数说明

◆ BlendingAtmosphere()

ast::BlendingAtmosphere::BlendingAtmosphere ( Atmosphere * mainModel,
Atmosphere * lowAltModel,
double blendAltitude,
double blendRange )

构造混合过渡大气模型

参数
mainModel主(高高度)大气模型
lowAltModel低高度大气模型
blendAltitude过渡带中心高度(单位:米)
blendRange过渡带宽度(单位:米),≤0 时不做过渡,直接按 blendAltitude 二选一

成员函数说明

◆ getDensity()

double ast::BlendingAtmosphere::getDensity ( const TimePoint & tp,
const Vector3d & posInBodyFixed ) const
overridevirtual

获取大气密度

参数
tp当前时间
posInBodyFixed当前位置(相对于getFrame()返回的坐标系)
返回
大气密度(单位:kg/m³)

实现了 ast::Atmosphere.

◆ getFrame()

Frame * ast::BlendingAtmosphere::getFrame ( ) const
overridevirtual

获取大气模型的参考坐标系

实现了 ast::Atmosphere.

◆ getShape()

BodyShape * ast::BlendingAtmosphere::getShape ( ) const
overridevirtual

获取大气模型对应的天体形状

重载 ast::Atmosphere .


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