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

#include <BlockGravity.hpp>

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

Public 成员函数

 BlockGravity (const GravityField &gravityField, int degree, int order, Axes *gravityAxes=nullptr, Axes *propagationAxes=nullptr)
 
 BlockGravity (GravityField &&gravityField, int degree, int order, Axes *gravityAxes=nullptr, Axes *propagationAxes=nullptr)
 
errc_t run (const SimTime &simTime) final
 
void setConsiderVariations (bool considerVariations)
 
- Public 成员函数 继承自 ast::BlockDerivative
 ~BlockDerivative () override=default
 
const std::vector< DataPort > & getDerivativePorts () const
 
std::vector< DataPort > & getDerivativePorts ()
 
- Public 成员函数 继承自 ast::FuncBlock
const std::vector< DataPort > & getInputPorts () const
 
std::vector< DataPort > & getInputPorts ()
 
const std::vector< DataPort > & getOutputPorts () const
 
std::vector< DataPort > & getOutputPorts ()
 
size_t getNumInputPorts () const
 
size_t getNumOutputPorts () const
 
DataPortgetInputPort (StringView portName)
 
DataPortgetOutputPort (StringView portName)
 
DataPortgetInputPort (size_t portIndex)
 
DataPortgetOutputPort (size_t portIndex)
 
DataPort::EValueType getInputPortDataType (size_t portIndex)
 
DataPort::EValueType getOutputPortDataType (size_t portIndex)
 
void * getInputPortSignal (size_t portIndex)
 
void * getOutputPortSignal (size_t portIndex)
 
double * getInputPortRealSignal (size_t portIndex)
 
double * getOutputPortRealSignal (size_t portIndex)
 
int getInputPortWidth (size_t portIndex)
 
int getOutputPortWidth (size_t portIndex)
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 ast::FuncBlock
static errc_t connect (FuncBlock *src, StringView srcPortName, FuncBlock *dst, StringView dstPortName)
 
static errc_t connect (FuncBlock *src, size_t srcPortIndex, FuncBlock *dst, size_t dstPortIndex)
 
- Protected 属性 继承自 ast::BlockDerivative
std::vector< DataPortderivativePorts_
 
- Protected 属性 继承自 ast::FuncBlock
std::vector< DataPortinputPorts_
 
std::vector< DataPortoutputPorts_
 

详细描述

重力场函数块

使用球谐展开模型计算非球形天体的重力加速度。

工作流程:

  1. 将预报坐标系下的位置旋转变换到重力场固连坐标系
  2. 调用 GravityCalculator 计算固连系下的重力加速度
  3. 将加速度逆变换回报坐标系
  4. 累加到速度导数上

输入端口:

  • "Pos":位置向量(3维,预报坐标系下)

输出端口:

  • "AccGravity":重力加速度(3维,预报坐标系下)

导数端口:

  • "Vel":速度导数(3维),累加重力加速度
注解
当 degree=0 时退化为二体引力,此时应使用 BlockTwoBody 以提高效率

成员函数说明

◆ run()

errc_t ast::BlockGravity::run ( const SimTime & simTime)
finalvirtual

计算函数块

参数
simTime仿真时间
返回
错误码

实现了 ast::FuncBlock.


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